geteuid(2)

DESCRIPTION

Returns the calling process's effective user ID.

SYNOPSIS

long geteuid(void);

RETURN VALUE

  • Returns the effective UID, or -ESRCH when no current process exists.

ERRORS

  • -ESRCH
    • There is no current process.

NOTES

The effective UID selects owner permission checks.