diff options
Diffstat (limited to 'lib/libc/sys/getpeereid.2')
-rw-r--r-- | lib/libc/sys/getpeereid.2 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/libc/sys/getpeereid.2 b/lib/libc/sys/getpeereid.2 index 305c03946b3..6db0ff8eafa 100644 --- a/lib/libc/sys/getpeereid.2 +++ b/lib/libc/sys/getpeereid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpeereid.2,v 1.8 2007/05/31 19:19:32 jmc Exp $ +.\" $OpenBSD: getpeereid.2,v 1.9 2009/12/29 10:25:43 sobrado Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -26,7 +26,7 @@ .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: December 29 2009 $ .Dt GETPEEREID 2 .Os .Sh NAME @@ -41,8 +41,8 @@ .Fn getpeereid returns the effective user ID and group ID of the peer connected to a -.Ux -domain socket (see +.Ux Ns -domain +socket (see .Xr unix 4 ) . The argument .Fa s @@ -50,9 +50,8 @@ must be of type .Dv SOCK_STREAM . .Pp One common use is for -.Ux -domain servers to determine the credentials -of clients that have connected to it. +.Ux Ns -domain +servers to determine the credentials of clients that have connected to it. .Pp .Fn getpeereid takes three parameters: @@ -98,8 +97,7 @@ The argument is a file, not a socket. .It Bq Er EOPNOTSUPP The socket is not in the -.Ux -domain. +.Ux Ns -domain . .It Bq Er ENOTCONN The socket is not connected. .It Bq Er ENOBUFS |