diff options
author | dd <dd@FreeBSD.org> | 2001-04-15 19:40:22 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-04-15 19:40:22 +0000 |
commit | e91392f0b63acbe83893a432f73353804f19cdc3 (patch) | |
tree | 55af2e33131c984b99000599d5d24e4dcc47d692 /lib | |
parent | c7790304defd50842d2d5c8eb946fef9393baec4 (diff) | |
download | FreeBSD-src-e91392f0b63acbe83893a432f73353804f19cdc3.zip FreeBSD-src-e91392f0b63acbe83893a432f73353804f19cdc3.tar.gz |
Document getresgid and getresuid calls.
Reviewed by: ru
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/setresuid.2 | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/lib/libc/sys/setresuid.2 b/lib/libc/sys/setresuid.2 index e6bae06..fe7e202 100644 --- a/lib/libc/sys/setresuid.2 +++ b/lib/libc/sys/setresuid.2 @@ -19,19 +19,25 @@ .\" .\" $FreeBSD$ .\" -.Dd January 17, 2000 +.Dd April 13, 2001 .Dt SETRESUID 2 .Os .Sh NAME +.Nm getresgid , +.Nm getresuid , .Nm setresgid , .Nm setresuid -.Nd set real, effective and saved user or group ID +.Nd "get or set real, effective and saved user or group ID" .Sh LIBRARY .Lb libc .Sh SYNOPSIS .Fd #include <sys/types.h> .Fd #include <unistd.h> .Ft int +.Fn getresgid "gid_t *rgid" "gid_t *egid" "gid_t *sgid" +.Ft int +.Fn getresuid "uit_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 suid" @@ -51,6 +57,13 @@ in that each of the new IDs must match one of the current IDs. .Pp Passing -1 as an argument causes the corresponding value to remain unchanged. +.Pp +The +.Fn getresgid +and +.Fn getresuid +calls retrieve the real, effective, and saved group and user IDs of +the current process, respectively. .Sh RETURN VALUES These functions return the value 0 if successful; otherwise the value -1 is returned @@ -64,6 +77,12 @@ 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. +.It Bq Er EFAULT +An address passed to +.Fn getresgid +or +.Fn getresuid +was invalid. .El .Sh SEE ALSO .Xr getegid 2 , |