summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2012-04-22 02:21:49 +0000
committermatthew <matthew@openbsd.org>2012-04-22 02:21:49 +0000
commitd1a8edab2779c0ebfcf268d58c621850c662b63a (patch)
tree26a3b80f669ffe42be48af8d2520c79dd0223bd4
parentFix math in previous. Oops. (diff)
downloadwireguard-openbsd-d1a8edab2779c0ebfcf268d58c621850c662b63a.tar.xz
wireguard-openbsd-d1a8edab2779c0ebfcf268d58c621850c662b63a.zip
Document that getpeereid() works for SOCK_SEQPACKET sockets too.
-rw-r--r--lib/libc/net/getpeereid.38
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/net/getpeereid.3 b/lib/libc/net/getpeereid.3
index c1671a75167..8e777d3ca6a 100644
--- a/lib/libc/net/getpeereid.3
+++ b/lib/libc/net/getpeereid.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpeereid.3,v 1.1 2010/07/01 19:15:30 deraadt Exp $
+.\" $OpenBSD: getpeereid.3,v 1.2 2012/04/22 02:21:49 matthew 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: July 1 2010 $
+.Dd $Mdocdate: April 22 2012 $
.Dt GETPEEREID 3
.Os
.Sh NAME
@@ -47,7 +47,9 @@ socket (see
The argument
.Fa s
must be of type
-.Dv SOCK_STREAM .
+.Dv SOCK_STREAM
+or
+.Dv SOCK_SEQPACKET .
.Pp
One common use is for
.Ux Ns -domain