diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-26 22:40:43 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-26 22:40:43 +0000 |
commit | 5b11a8e4c92cb7765423e7f7a9b7f973b5bcca41 (patch) | |
tree | ffaeb38638a32045d25c40954b18211756655af3 /lib/libc | |
parent | 1a3d554a37377a473de7f9e734f3f9adde871e60 (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.2 | 17 |
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 |