-.\" $OpenBSD: getgid.2,v 1.15 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: getgid.2,v 1.16 2008/08/04 07:08:23 jmc Exp $
.\" $NetBSD: getgid.2,v 1.5 1995/02/27 12:32:53 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)getgid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 4 2008 $
.Dt GETGID 2
.Os
.Sh NAME
functions are always successful, and no return value is reserved to
indicate an error.
.Sh SEE ALSO
+.Xr getgroups 2 ,
+.Xr getresgid 2 ,
.Xr getuid 2 ,
.Xr setgid 2 ,
-.Xr setgroups 2 ,
-.Xr setregid 2 ,
-.Xr setreuid 2
+.Xr setregid 2
.Sh STANDARDS
The
.Fn getgid
-.\" $OpenBSD: getgroups.2,v 1.10 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: getgroups.2,v 1.11 2008/08/04 07:08:23 jmc Exp $
.\" $NetBSD: getgroups.2,v 1.8 1995/02/27 12:32:57 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)getgroups.2 8.2 (Berkeley) 4/16/94
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 4 2008 $
.Dt GETGROUPS 2
.Os
.Sh NAME
specifies an invalid address.
.El
.Sh SEE ALSO
-.Xr getegid 2 ,
+.Xr getgid 2 ,
.Xr setgid 2 ,
.Xr setgroups 2 ,
.Xr initgroups 3
-.\" $OpenBSD: getuid.2,v 1.12 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: getuid.2,v 1.13 2008/08/04 07:08:23 jmc Exp $
.\" $NetBSD: getuid.2,v 1.6 1995/02/27 12:33:37 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\"
.\" @(#)getuid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 4 2008 $
.Dt GETUID 2
.Os
.Sh NAME
indicate an error.
.Sh SEE ALSO
.Xr getgid 2 ,
+.Xr getresuid 2 ,
.Xr setreuid 2 ,
.Xr setuid 2
.Sh STANDARDS
-.\" $OpenBSD: setregid.2,v 1.5 2007/05/31 19:19:33 jmc Exp $
+.\" $OpenBSD: setregid.2,v 1.6 2008/08/04 07:08:23 jmc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)setregid.2 8.2 (Berkeley) 4/16/94
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 4 2008 $
.Dt SETREGID 2
.Os
.Sh NAME
effective group IDs in set-group-ID programs to temporarily relinquish
the set-group-ID value.
This purpose is now better served by the use of the
-.Fn setegid
-function (see
-.Xr setuid 2 ) .
+.Xr setegid 2
+function.
.Pp
When setting the real and effective group IDs to the same value, the
-.Fn setgid
+.Xr setgid 2
function is preferred.
.Sh RETURN VALUES
Upon successful completion, a value of 0 is returned.
.Xr setegid 2 ,
.Xr setgid 2 ,
.Xr setresgid 2 ,
-.Xr setuid 2
+.Xr setreuid 2
.Sh STANDARDS
The
.Fn setregid
-.\" $OpenBSD: setreuid.2,v 1.6 2007/05/31 19:19:33 jmc Exp $
+.\" $OpenBSD: setreuid.2,v 1.7 2008/08/04 07:08:23 jmc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)setreuid.2 8.2 (Berkeley) 4/16/94
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 4 2008 $
.Dt SETREUID 2
.Os
.Sh NAME
effective user IDs in set-user-ID programs to temporarily relinquish
the set-user-ID value.
This purpose is now better served by the use of the
-.Fn seteuid
-function (see
-.Xr setuid 2 ) .
+.Xr seteuid 2
+function.
.Pp
When setting the real and effective user IDs to the same value, the
-.Fn setuid
+.Xr setuid 2
function is preferred.
.Sh RETURN VALUES
Upon successful completion, a value of 0 is returned.
.Sh SEE ALSO
.Xr getuid 2 ,
.Xr seteuid 2 ,
+.Xr setregid 2 ,
.Xr setresuid 2 ,
.Xr setuid 2
.Sh STANDARDS
-.\" $OpenBSD: setuid.2,v 1.19 2007/05/31 19:19:33 jmc Exp $
+.\" $OpenBSD: setuid.2,v 1.20 2008/08/04 07:08:23 jmc Exp $
.\" $NetBSD: setuid.2,v 1.3 1995/02/27 12:37:06 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)setuid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 4 2008 $
.Dt SETUID 2
.Os
.Sh NAME
these functions return \-1.
.Sh SEE ALSO
.Xr getgid 2 ,
-.Xr getgroups 2 ,
.Xr getuid 2 ,
.Xr issetugid 2 ,
-.Xr setgid 2 ,
.Xr setgroups 2 ,
.Xr setregid 2 ,
+.Xr setresgid 2 ,
+.Xr setresuid 2 ,
.Xr setreuid 2
.Sh STANDARDS
The