getresuid, getresgid - get real, effective and saved user/group IDs


   #define _GNU_SOURCE         /* See feature_test_macros(7) */
   #include <unistd.h>

   int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
   int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);


   getresuid() returns the real UID, the effective UID, and the saved set-
   user-ID of the calling process, in the arguments ruid, euid, and  suid,
   respectively.    getresgid()   performs  the  analogous  task  for  the
   process's group IDs.


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


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


   These system calls appeared on Linux starting with kernel 2.1.44.

   The prototypes  are  given  by  glibc  since  version  2.3.2,  provided
   _GNU_SOURCE is defined.


   These  calls are nonstandard; they also appear on HP-UX and some of the


   The original Linux getresuid() and getresgid() system  calls  supported
   only  16-bit  user  and  group  IDs.   Subsequently,  Linux  2.4  added
   getresuid32() and getresgid32(),  supporting  32-bit  IDs.   The  glibc
   getresuid()  and  getresgid() wrapper functions transparently deal with
   the variations across kernel versions.


   getuid(2), setresuid(2), setreuid(2), setuid(2), credentials(7)


   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at

More Linux Commands

HeightMMOfScreen(3) - screen information functions and macro
The BlackPixelOfScreen macro returns the black pixel value of the specified screen. The WhitePixelOfScreen macro returns the white pixel value of the specified

tolower(3) - convert letter to upper or lower case (ManPage)
These functions convert lowercase letters to uppercase, and vice versa. If c is a lowercase letter, toupper() returns its uppercase equivalent, if an uppercase

gimp-2.6(1) - an image manipulation and paint program.......
gimp-2.6.1 - GIMP is the GNU Image Manipulation Program. It is used to edit and manipulate images. It can load and save a variety of image formats and can be us

kmag(1) - Screen magnifier (Commands - Linux manual page)...
kmag, also known as KMagnifier is a screen magnifier. You can use KMagnifier to magnify a part of the screen just as you would use a lens to magnify a newspaper

pcre32_pattern_to_host_byte_order(3) Perl-compatible regular
This function ensures that the bytes in 2-byte and 4-byte values in a compiled pattern are in the correct order for the current host. It is useful when a patter

ckpasswd(8) - nnrpd password authenticator - Linux man page
ckpasswd is the basic password authenticator for nnrpd, suitable for being run from an auth stanza in readers.conf. See readers.conf(5) for more information on

gxl2gv(1) - GXL-GV converters (Commands - Linux man page)...
gxl2gv converts between graphs represented in GXL and in the GV language. Unless a conversion type is specified using a flag, gxl2gv will deduce the type of con

curl_easy_perform(3) - Perform a file transfer (Man Page)...
This function is called after the init and all the curl_easy_setopt(3) calls are made, and will perform the transfer as described in the options. It must be cal

version(1ssl) - print OpenSSL version information (ManPage)
This command is used to print out version information about OpenSSL. OPTIONS -a all information, this is the same as setting all the other flags. -v the current

glGetPixelMapusv(3gl) - return the specified pixel map......
See the glPixelMap reference page for a description of the acceptable values for the map parameter. glGetPixelMap returns in values the contents of the pixel ma

Apache::TestRun(3pm) - Run the test suite - Linux man page
The Apache::TestRun package controls the configuration and running of the test suite. METHODS Several methods are sub-classable, if the default behavior should

rundig(1) - sample script to create a search database for ht
rundig is a sample script to create a search database for the ht://Dig search engine. OPTIONS -v Verbose mode. This increases the verbosity of the program. -a U

We can't live, work or learn in freedom unless the software we use is free.