From 0747adb3a22b873adeec30f9fa00f316d00cf70a Mon Sep 17 00:00:00 2001 From: jmc Date: Mon, 4 Aug 2008 07:08:23 +0000 Subject: [PATCH] improve SEE ALSO links; from Ingo Schwarze ok otto millert --- lib/libc/sys/getgid.2 | 10 +++++----- lib/libc/sys/getgroups.2 | 6 +++--- lib/libc/sys/getuid.2 | 5 +++-- lib/libc/sys/setregid.2 | 13 ++++++------- lib/libc/sys/setreuid.2 | 12 ++++++------ lib/libc/sys/setuid.2 | 8 ++++---- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/libc/sys/getgid.2 b/lib/libc/sys/getgid.2 index 930d73d8b77..9d62af41805 100644 --- a/lib/libc/sys/getgid.2 +++ b/lib/libc/sys/getgid.2 @@ -1,4 +1,4 @@ -.\" $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 @@ -30,7 +30,7 @@ .\" .\" @(#)getgid.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: August 4 2008 $ .Dt GETGID 2 .Os .Sh NAME @@ -68,11 +68,11 @@ and 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 diff --git a/lib/libc/sys/getgroups.2 b/lib/libc/sys/getgroups.2 index edaea955374..61567978269 100644 --- a/lib/libc/sys/getgroups.2 +++ b/lib/libc/sys/getgroups.2 @@ -1,4 +1,4 @@ -.\" $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 @@ -30,7 +30,7 @@ .\" .\" @(#)getgroups.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: August 4 2008 $ .Dt GETGROUPS 2 .Os .Sh NAME @@ -84,7 +84,7 @@ The argument specifies an invalid address. .El .Sh SEE ALSO -.Xr getegid 2 , +.Xr getgid 2 , .Xr setgid 2 , .Xr setgroups 2 , .Xr initgroups 3 diff --git a/lib/libc/sys/getuid.2 b/lib/libc/sys/getuid.2 index dd6e4ed97c0..720f0d9b1c4 100644 --- a/lib/libc/sys/getuid.2 +++ b/lib/libc/sys/getuid.2 @@ -1,4 +1,4 @@ -.\" $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 @@ -30,7 +30,7 @@ .\" .\" @(#)getuid.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: August 4 2008 $ .Dt GETUID 2 .Os .Sh NAME @@ -69,6 +69,7 @@ functions are always successful, and no return value is reserved to indicate an error. .Sh SEE ALSO .Xr getgid 2 , +.Xr getresuid 2 , .Xr setreuid 2 , .Xr setuid 2 .Sh STANDARDS diff --git a/lib/libc/sys/setregid.2 b/lib/libc/sys/setregid.2 index f90ae876549..26b0d334034 100644 --- a/lib/libc/sys/setregid.2 +++ b/lib/libc/sys/setregid.2 @@ -1,4 +1,4 @@ -.\" $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. @@ -29,7 +29,7 @@ .\" .\" @(#)setregid.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: August 4 2008 $ .Dt SETREGID 2 .Os .Sh NAME @@ -62,12 +62,11 @@ 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 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. @@ -86,7 +85,7 @@ was specified. .Xr setegid 2 , .Xr setgid 2 , .Xr setresgid 2 , -.Xr setuid 2 +.Xr setreuid 2 .Sh STANDARDS The .Fn setregid diff --git a/lib/libc/sys/setreuid.2 b/lib/libc/sys/setreuid.2 index 004c992322b..4cf45bb4328 100644 --- a/lib/libc/sys/setreuid.2 +++ b/lib/libc/sys/setreuid.2 @@ -1,4 +1,4 @@ -.\" $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. @@ -29,7 +29,7 @@ .\" .\" @(#)setreuid.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: August 4 2008 $ .Dt SETREUID 2 .Os .Sh NAME @@ -62,12 +62,11 @@ function was intended to allow swapping the real and 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. @@ -84,6 +83,7 @@ was specified. .Sh SEE ALSO .Xr getuid 2 , .Xr seteuid 2 , +.Xr setregid 2 , .Xr setresuid 2 , .Xr setuid 2 .Sh STANDARDS diff --git a/lib/libc/sys/setuid.2 b/lib/libc/sys/setuid.2 index deb3353270c..7db735a39ec 100644 --- a/lib/libc/sys/setuid.2 +++ b/lib/libc/sys/setuid.2 @@ -1,4 +1,4 @@ -.\" $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 @@ -30,7 +30,7 @@ .\" .\" @(#)setuid.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: August 4 2008 $ .Dt SETUID 2 .Os .Sh NAME @@ -100,12 +100,12 @@ specified is not the real, effective, or saved ID, 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 -- 2.20.1