Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Remove note about portability, since PF_UNSPEC ...



details:   https://anonhg.NetBSD.org/src/rev/22d1323ff6d1
branches:  trunk
changeset: 750189:22d1323ff6d1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Dec 19 23:00:10 2009 +0000

description:
Remove note about portability, since PF_UNSPEC will cause socketpair()
to EAFNOSUPPORT on NetBSD(!).  Additionally, at least slowaris and
linux talk only about PF_LOCAL.  Finally, since I'm reading a NetBSD
man page, I foremost care about the code working on NetBSD.

diffstat:

 lib/libc/sys/socketpair.2 |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (32 lines):

diff -r 34e28c6a4409 -r 22d1323ff6d1 lib/libc/sys/socketpair.2
--- a/lib/libc/sys/socketpair.2 Sat Dec 19 20:28:27 2009 +0000
+++ b/lib/libc/sys/socketpair.2 Sat Dec 19 23:00:10 2009 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: socketpair.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
+.\"    $NetBSD: socketpair.2,v 1.20 2009/12/19 23:00:10 pooka Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)socketpair.2       8.1 (Berkeley) 6/4/93
 .\"
-.Dd August 18, 2002
+.Dd December 20, 2009
 .Dt SOCKETPAIR 2
 .Os
 .Sh NAME
@@ -89,12 +89,5 @@
 .Bx 4.2 .
 .Sh BUGS
 This call is currently implemented only for the
-.Tn LOCAL
+.Dv PF_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.



Home | Main Index | Thread Index | Old Index