getuid(3)
DESCRIPTION
Returns the calling process's real user ID.
SYNOPSIS
#include <unistd.h> uid_t getuid(void);
RETURN VALUE
- Returns the real UID. A syscall failure is reported as the unsigned conversion of the negative result by this wrapper.
ERRORS
No userspace argument is invalid.
NOTES
The value is inherited by fork and spawn.