summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-04-26 22:40:43 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-04-26 22:40:43 +0000
commit5b11a8e4c92cb7765423e7f7a9b7f973b5bcca41 (patch)
treeffaeb38638a32045d25c40954b18211756655af3 /lib/libc
parent1a3d554a37377a473de7f9e734f3f9adde871e60 (diff)
Allow PF_LOCAL as the proto arg in socketpair(2). Previously, only
PF_UNSPEC would work. Needed for general sanity as well as XPG4.2.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/socketpair.217
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2
index f5ae7ebfb8d..77a533cb1ee 100644
--- a/lib/libc/sys/socketpair.2
+++ b/lib/libc/sys/socketpair.2
@@ -1,3 +1,4 @@
+.\" $OpenBSD: socketpair.2,v 1.2 1998/04/26 22:40:41 millert Exp $
.\" $NetBSD: socketpair.2,v 1.5 1995/02/27 12:38:00 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -84,8 +85,22 @@ process address space.
.Xr pipe 2
.Sh BUGS
This call is currently implemented only for the
-.Tn UNIX
+.Tn LOCAL
domain.
+Many operating systems only accept a
+.Ar protocol
+of
+.Ev
+PF_UNSPEC ,
+so that should be used instead of
+.Ev
+PF_LOCAL
+for maximal portability.
+.Sh STANDARDS
+The
+.Fn socketpair
+function conforms to
+.St -xpg4.2 .
.Sh HISTORY
The
.Fn socketpair