Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (f - i) getuid(2)
NAME
getuid - Gets the the real user ID of the current process
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsecsrl
H-series OSS processes: /G/system/zdllnnn/zsecdll
SYNOPSIS
#include <sys/types.h> /* optional except for POSIX.1 */
#include <unistd.h>
uid_t getuid(void);
DESCRIPTION
The getuid() function returns the real user ID of the current process.
NOTES
A process’s real user ID is not always numerically equal to its operating system creator access ID
(CAID).
RETURN VALUES
The getuid() function returns the requested user ID. It is always successful.
When the authentication information for a process is uninitialized, the "uninitialized" user ID
(hexadecimal 80000000) is returned.
RELATED INFORMATION
Functions: geteuid(2), setuid(2).
527186-003 Hewlett-Packard Company 3−59