make setreuid and setregid take uid_t/gid_t's, for
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 16 Apr 1994 23:46:24 +0000 (15:46 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 16 Apr 1994 23:46:24 +0000 (15:46 -0800)
consistency with the C library source code.
From: "Chris G. Demetriou" <cgd@vangogh.CS.Berkeley.EDU>

SCCS-vsn: lib/libc/compat-43/setregid.2 8.2
SCCS-vsn: lib/libc/compat-43/setreuid.2 8.2

usr/src/lib/libc/compat-43/setregid.2
usr/src/lib/libc/compat-43/setreuid.2

index 841814e..4b318b0 100644 (file)
@@ -1,9 +1,9 @@
-.\" Copyright (c) 1980, 1991, 1993
+.\" Copyright (c) 1980, 1991, 1993, 1994
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"     @(#)setregid.2 8.1 (Berkeley) %G%
+.\"     @(#)setregid.2 8.2 (Berkeley) %G%
 .\"
 .Dd 
 .Dt SETREGID 2
 .\"
 .Dd 
 .Dt SETREGID 2
@@ -14,7 +14,7 @@
 .Sh SYNOPSIS
 .Fd #include <unistd.h>
 .Ft int
 .Sh SYNOPSIS
 .Fd #include <unistd.h>
 .Ft int
-.Fn setregid "int rgid" "int egid"
+.Fn setregid "gid_t rgid" "gid_t egid"
 .Sh DESCRIPTION
 The real and effective group ID's of the current process
 are set to the arguments.
 .Sh DESCRIPTION
 The real and effective group ID's of the current process
 are set to the arguments.
@@ -27,7 +27,8 @@ group ID forces the system to substitute the current
 ID in place of the -1 parameter.
 .Pp
 The
 ID in place of the -1 parameter.
 .Pp
 The
-.Fn setregid function was intended to allow swapping
+.Fn setregid
+function was intended to allow swapping
 the real and effective group IDs
 in set-group-ID programs to temporarily relinquish the set-group-ID value.
 This function did not work correctly,
 the real and effective group IDs
 in set-group-ID programs to temporarily relinquish the set-group-ID value.
 This function did not work correctly,
index c044964..647000e 100644 (file)
@@ -1,9 +1,9 @@
-.\" Copyright (c) 1980, 1991, 1993
+.\" Copyright (c) 1980, 1991, 1993, 1994
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"     @(#)setreuid.2 8.1 (Berkeley) %G%
+.\"     @(#)setreuid.2 8.2 (Berkeley) %G%
 .\"
 .Dd 
 .Dt SETREUID 2
 .\"
 .Dd 
 .Dt SETREUID 2
@@ -14,7 +14,7 @@
 .Sh SYNOPSIS
 .Fd #include <unistd.h>
 .Ft int
 .Sh SYNOPSIS
 .Fd #include <unistd.h>
 .Ft int
-.Fn setreuid "int ruid" "int euid"
+.Fn setreuid "uid_t ruid" "uid_t euid"
 .Sh DESCRIPTION
 The real and effective user IDs of the
 current process are set according to the arguments.
 .Sh DESCRIPTION
 The real and effective user IDs of the
 current process are set according to the arguments.