Returns the real user ID (UID).
Syntax | 
  | 
   #include <sys/types.h>
   #include <unistd.h>
   uid_t getuid (void);
  | 
Parameters | 
  | 
None.
Return Values | 
  | 
The real UID of the calling process.
Description | 
  | 
The getuid() function returns the real user ID (UID) of the calling process.
Implementation Considerations | 
  | 
None.
Errors | 
  | 
None.
See Also | 
  | 
geteuid(), getegid(), getgid(), POSIX.1 (Section 4.2.1)