Is AF_UNIX really deprecated?
kevlo at FreeBSD.org
Fri Jun 20 04:48:21 UTC 2014
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 at FreeBSD.org> said:
> > IEEE Std 1003.1g-2000 and later POSIX standards  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.
--- 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
-.Dd March 19, 2013
+.Dd June 20, 2014
.Dt SOCKET 2
@@ -58,7 +58,7 @@ The currently understood formats are:
.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,
More information about the freebsd-standards