*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> getuid (2)              



NAME    [Toc]    [Back]

     getuid, geteuid - get user identification

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>



DESCRIPTION    [Toc]    [Back]

     The getuid() function returns the real user ID of the calling process.
     The geteuid() function returns the effective user ID of the calling process.

     The real user ID is that of the user who has invoked the program.  As the
     effective user ID gives the process additional permissions during execution
 of ``set-user-ID'' mode processes, getuid() is used to determine the
     real-user-id of the calling process.

ERRORS    [Toc]    [Back]

     The getuid() and geteuid() functions are always successful, and no return
     value is reserved to indicate an error.

SEE ALSO    [Toc]    [Back]

     getgid(2), setreuid(2)

STANDARDS    [Toc]    [Back]

     The geteuid() and getuid() functions conform to ISO/IEC 9945-1:1990

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
getpeereid OpenBSD get effective user and group identification of
uname FreeBSD get system identification
getpid Linux get process identification
uname NetBSD get system identification
uname OpenBSD get system identification
model HP-UX HP-UX machine identification
getgid FreeBSD get group process identification
getgid OpenBSD get group process identification
what HP-UX get SCCS identification information
ttytype HP-UX terminal identification program
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service