Sun Studio 12: Fortran Library Reference

1.4.23.1 getuid: Get User ID of the Process

The function is called by:

INTEGER*4 getuid

uid = getuid()

Return value 

INTEGER*4

Output 

User ID of the process