Rechercher une page de manuel
getresgid.2freebsd
Langue: en
Version: 266024 (debian - 07/07/09)
Section: 2 (Appels système)
BSD mandoc
NAME
getresgid getresuid setresgid setresuid - get or set real, effective and saved user or group IDLIBRARY
Lb libcSYNOPSIS
In sys/types.h In unistd.h Ft int Fn getresgid gid_t *rgid gid_t *egid gid_t *sgid Ft int Fn getresuid uid_t *ruid uid_t *euid uid_t *suid Ft int Fn setresgid gid_t rgid gid_t egid gid_t sgid Ft int Fn setresuid uid_t ruid uid_t euid uid_t suidDESCRIPTION
The Fn setresuid system call sets the real, effective and saved user IDs of the current process. The analogous Fn setresgid sets the real, effective and saved group IDs.Privileged processes may set these IDs to arbitrary values. Unprivileged processes are restricted in that each of the new IDs must match one of the current IDs.
Passing -1 as an argument causes the corresponding value to remain unchanged.
The Fn getresgid and Fn getresuid calls retrieve the real, effective, and saved group and user IDs of the current process, respectively.
RETURN VALUES
Rv -stdERRORS
- Bq Er EPERM
- The calling process was not privileged and tried to change one or more IDs to a value which was not the current real ID, the current effective ID nor the current saved ID.
- Bq Er EFAULT
- An address passed to Fn getresgid or Fn getresuid was invalid.
SEE ALSO
getegid(2), geteuid(2), getgid(2), getuid(2), issetugid(2), setgid(2), setregid(2), setreuid(2), setuid(2)STANDARDS
These system calls are not available on many platforms. They exist in Fx to support Linux binaries linked against GNU libc2.HISTORY
These functions first appeared in HP-UX.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre