Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2014 10:53:18 +0800
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        Garrett Wollman <wollman@csail.mit.edu>
Cc:        freebsd-standards@freebsd.org
Subject:   Re: Is AF_UNIX really deprecated?
Message-ID:  <20140620025318.GA39576@ns.kevlo.org>
In-Reply-To: <21411.3294.418186.992207@khavrinen.csail.mit.edu>
References:  <20140619054743.GA33893@ns.kevlo.org> <21411.3294.418186.992207@khavrinen.csail.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 19, 2014 at 12:16:30PM -0400, Garrett Wollman wrote:
> 
> <<On Thu, 19 Jun 2014 13:47:43 +0800, Kevin Lo <kevlo@FreeBSD.org> said:
> 
> > IEEE Std 1003.1g-2000 and later POSIX standards [1] do not include
> > AF_LOCAL and mention only AF_UNIX, but according to socket(2) man page it
> > mentions AF_UNIX is deprecated, use AF_LOCAL instead.
> 
> > I'd like to add support -f local to netstat(1), I'm wondering if AF_UNIX
> > is really deprecated.
> 
> AF_UNIX was deprecated in 4.4BSD (or maybe 4.3-net/2) due to issues
> with the Unix trademark.  However, POSIX standardized it anyway (much
> later), and since POSIX standardization is now handled by the
> organization that owns the Unix trademark this is probably no longer
> an issue.

It seems that the word "deprecated" may lead to misunderstanding.
The diff below removes "deprecated" to socket(2).  Does it look ok?  Thanks.

Index: lib/libc/sys/socket.2
===================================================================
--- lib/libc/sys/socket.2	(revision 267659)
+++ lib/libc/sys/socket.2	(working copy)
@@ -28,7 +28,7 @@
 .\"     From: @(#)socket.2	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd March 19, 2013
+.Dd June 20, 2014
 .Dt SOCKET 2
 .Os
 .Sh NAME
@@ -58,7 +58,7 @@ The currently understood formats are:
 .Pp
 .Bd -literal -offset indent -compact
 PF_LOCAL	Host-internal protocols, formerly called PF_UNIX,
-PF_UNIX		Host-internal protocols, deprecated, use PF_LOCAL,
+PF_UNIX		Host-internal protocols,
 PF_INET		Internet version 4 protocols,
 PF_PUP		PUP protocols, like BSP,
 PF_APPLETALK	AppleTalk protocols,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140620025318.GA39576>