gid_t getuid(void);
Returns the real user ID of the current process.
geteuid, setuid, seteuid, setreuid