getuid

Returns the local directory entry ID.

Library:LibC
Classification:POSIX
Service:File and Directory I/O

Syntax

  #include <pwd.h> 
   
  uid_t getuid ( void );
  

Return Values

If successful, returns local directory entry ID associated with the server connection.

Remarks

The geteuid function returns the local entry ID for the server connection. This directory ID is specific to the local directory database. This ID can be passed to the getpwuid function to obtain more information.

On NetWare, the getuid function has the same functionality as the geteuid function.

See Also