UNIX domain addressing for 4.2bsd IPC

sam at ucbvax.UUCP sam at ucbvax.UUCP
Wed Dec 14 09:51:45 AEST 1983


I sure would like to see the "4 lines of code" which would fix the UNIX
domain addressing problems.  To be simple, naming in the UNIX domain
needs an extensive overhaul.  Because the sockets are tied to inodes
one can't simply record bound names and expect them to remain constant
across the lifetime of a socket (remember the socket could be be moved
elsewhere in the file system while it's in use).  Also, since socket
names are pathnames, each send requires a call to namei resulting in
abominable performance.  There's an obvious need to be able to "bind"
(not bind(2)) UNIX domain sockets to files in the UNIX file system, but
the way it's done now was as much for expediency as anything else.

P.S. You could probably fix the wandering name problem which
currently exists by putting pwd in the kernel...just kidding Rob.



More information about the Comp.unix.wizards mailing list