geteuid

Returns the effective user ID.

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

Syntax

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

Return Values

If successful, returns the local directory entry ID. If unsuccessful, returns 0.

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 geteuid function has the same functionality as the getuid function.

See Also