Intel® Fortran Compiler 18.0 Developer Guide and Reference
Portability Function: Returns the user ID of the calling process.
USE IFPORT
result = GETUID( )
The result type is INTEGER(4). The result corresponds to the user identity under which the program is running. The result is returned as follows:
On Windows* systems, this function returns the last subauthority of the security identifier for the process. This is unique on a local machine and unique within a domain for domain accounts.
Note that on Windows systems, domain accounts and local accounts can overlap.
On Linux* and macOS* systems, this function returns the user identity for the current process.
USE IFPORT
integer(4) istat
istat = GETUID( )