MirBSD manpage: geteuid(2), getuid(2)

GETUID(2)                  BSD Programmer's Manual                   GETUID(2)

NAME

     getuid, geteuid - get user identification

SYNOPSIS

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

     uid_t
     getuid(void);

     uid_t
     geteuid(void);

DESCRIPTION

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

     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 execu-
     tion of "set-user-ID" mode processes, getuid() is used to determine the
     real user ID of the calling process.

ERRORS

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

SEE ALSO

     getgid(2), setreuid(2), setuid(2)

STANDARDS

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

MirBSD #10-current               June 4, 1993                                1

Generated on 2022-12-24 01:00:14 by $MirOS: src/scripts/roff2htm,v 1.113 2022/12/21 23:14:31 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2022 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.

Kontakt / Impressum & Datenschutzerklärung