getuid(2)
DESCRIPTION
Returns the calling process's real user ID.
SYNOPSIS
long getuid(void);
RETURN VALUE
- Returns the real UID, or -ESRCH when no current process exists.
ERRORS
-ESRCH- There is no current process.
NOTES
The value is the process credential inherited across fork and spawn.