DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

getuid(S)


getuid, geteuid, getgid, getegid -- get real user, effective user, real group, and effective group IDs

Synopsis

   #include <sys/types.h>
   #include <unistd.h>
   

uid_t getuid(void);

uid_t geteuid(void);

gid_t getgid(void);

gid_t getegid(void);

Description

getuid returns the real user ID of the calling process.

geteuid returns the effective user ID of the calling process.

getgid returns the real group ID of the calling process.

getegid returns the effective group ID of the calling process.

References

intro(S), setuid(S)

Notices

Considerations for threads programming

These ID numbers are attributes of the containing process and are shared by sibling threads.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005