Download Fortran Library Reference

Transcript
Example: getlog:
character*18 name
call getlog( name )
write(*,*) "'", name, "'"
end
See also getlogin(3).
getpid: Get Process ID
The function is called by:
INTEGER*4 getpid
pid = getpid()
Return value
INTEGER*4
Output
Process ID of the current process
Example: getpid:
INTEGER*4 getpid, pid
pid = getpid()
write(*,*) 'process id = ', pid
end
See also getpid(2).
getuid, getgid: Get User or Group ID
of Process
getuid and getgid get the user or group ID of the process, respectively.
50
Fortran Library Reference • May 2000