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

  man pages->FreeBSD man pages -> getuid (2)              
Title
Content
Arch
Section
 

GETUID(2)

Contents


NAME    [Toc]    [Back]

     getuid, geteuid -- get user identification

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

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

     uid_t
     getuid(void);

     uid_t
     geteuid(void);

DESCRIPTION    [Toc]    [Back]

     The getuid() system call returns the real user ID of the calling process.
     The geteuid() system call 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() system calls are always successful, and no
     return value is reserved to indicate an error.

SEE ALSO    [Toc]    [Back]

      
      
     getgid(2), issetugid(2), setgid(2), setreuid(2), setuid(2)

STANDARDS    [Toc]    [Back]

     The geteuid() and getuid() system calls are expected to conform to
     ISO/IEC 9945-1:1990 (``POSIX.1'').

HISTORY    [Toc]    [Back]

     The getuid() and geteuid() functions appeared in Version 7 AT&T UNIX.


FreeBSD 5.2.1			 June 4, 1993			 FreeBSD 5.2.1
[ 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