diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-11-27 14:31:25 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-11-27 14:31:25 +0000 |
commit | dac9e2378e720b36efd8db5233285b63392bbfa2 (patch) | |
tree | 54959c110373bff07062bd1c83aaa89f445339f7 /lib | |
parent | dda23ed639e2bedcbff5149b0a6891b04ae63e1f (diff) |
document that `s' must be of type SOCK_STREAM; from Alf Schlichting;
also .Xr unix(4);
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/getpeereid.2 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/sys/getpeereid.2 b/lib/libc/sys/getpeereid.2 index d556dbd7fd1..3fc91e9841a 100644 --- a/lib/libc/sys/getpeereid.2 +++ b/lib/libc/sys/getpeereid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpeereid.2,v 1.5 2003/06/02 20:18:39 millert Exp $ +.\" $OpenBSD: getpeereid.2,v 1.6 2003/11/27 14:31:24 jmc Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -40,8 +40,12 @@ .Sh DESCRIPTION .Fn getpeereid returns the effective user ID and group ID of the peer connected to -the UNIX domain socket -.Fa s . +a UNIX domain socket (see +.Xr unix 4 ) . +The argument +.Fa s +must be of type +.Dv SOCK_STREAM . .Pp One common use is for UNIX domain servers to determine the credentials of clients that have connected to it. @@ -106,7 +110,8 @@ process address space. .Xr bind 2 , .Xr getpeername 2 , .Xr getsockname 2 , -.Xr socket 2 +.Xr socket 2 , +.Xr unix 4 .Sh HISTORY The .Fn getpeereid |