This started as a seemingly simple bugfix/RFE:
6442434 Solaris should have AF_LOCAL/PF_LOCAL/AF_FILE/PF_FILE as synonyms for
AF_UNIX/PF_UNIX
which has turned into a mild pain due to additional macros like:
SUN_LEN(struct sockaddr_un *)
showing up in various open-source packages. As far as I can tell, this macro
defines the length of the sun_family (two-bytes on OpenSolaris), plus the
string length of the pathname WITHOUT THE NULL TERMINATOR.
It appears that our sockets can do the right thing here (see copyin_name() in
$SRC/uts/common/fs/sockfs/socksyscalls.c), so I was curious if anyone would
have objections to inserting SUN_LEN() into our own <sys/un.h> or not?
Thanks,
Dan
p.s. Webrev so far is at:
http://cr.opensolaris.org/~danmcd/af_local/
p.p.s. I know this is ARC-worthy just so it's on the ARC record.
_______________________________________________
networking-discuss mailing list
[email protected]