1GETRESUID(2)               Linux Programmer's Manual              GETRESUID(2)
2
3
4

NAME

6       getresuid, getresgid - get real, effective and saved user or group ID
7

SYNOPSIS

9       #define _GNU_SOURCE
10       #include <unistd.h>
11
12       int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
13       int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
14

DESCRIPTION

16       getresuid()  and  getresgid() (both introduced in Linux 2.1.44) get the
17       real UID, effective UID, and saved set-user-ID (resp.  group  ID's)  of
18       the current process.
19
20

RETURN VALUE

22       On  success,  zero is returned.  On error, -1 is returned, and errno is
23       set appropriately.
24

ERRORS

26       EFAULT One of the arguments specified an address  outside  the  calling
27              program's address space.
28

CONFORMING TO

30       These calls are non-standard; they also appear on HP-UX and some of the
31       BSDs.
32
33       The  prototype  is  given  by  glibc  since  version   2.3.2   provided
34       _GNU_SOURCE is defined.
35

SEE ALSO

37       getuid(2), setresuid(2), setreuid(2), setuid(2), feature_test_macros(7)
38
39
40
41Linux 2.4                         2003-05-26                      GETRESUID(2)
Impressum