getresuid(2) System Calls Manual getresuid(2)

getresuid, getresgid - devuelve el ID real, efectivo o guardado del usuario o grupo

Biblioteca Estándar C (libc, -lc)

#define _GNU_SOURCE         /* Vea 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.

En caso de éxito se devuelve cero. En caso de error se devuelve -1, y errno se configura para indicar el error.

Uno de los argumentos especificó una dirección fuera del rango del espacio de direcciones del programa.

None. These calls also appear on HP-UX and some of the BSDs.

Linux 2.1.44, glibc 2.3.2.

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)

La traducción al español de esta página del manual fue creada por Juan Piernas <piernas@ditec.um.es> y Marcos Fouces <marcos@debian.org>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.

31 Octubre 2023 Páginas de manual de Linux 6.06