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

  man pages->OpenBSD man pages -> geteuid (2)              
Title
Content
Arch
Section
 

GETUID(2)

Contents


NAME    [Toc]    [Back]

     getuid, geteuid - get user identification

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <unistd.h>

     uid_t
     getuid(void);

     uid_t
     geteuid(void);

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), setuid(2)

STANDARDS    [Toc]    [Back]

     The getuid() and geteuid() functions  conform  to  IEEE  Std
1003.1-1988
     (``POSIX'').

OpenBSD      3.6                           June      4,      1993
[ 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