Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

GETUID

Portability Function: Returns the user ID of the calling process.

Module

USE IFPORT

result = GETUID( )

Results

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:

  • Linux and macOS

    This function returns the user identity for the current process.

  • Windows

    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.

Example
USE IFPORT
integer(4) istat
istat = GETUID( )