[slime-devel] Supporting the Abstract Namespace in Unix Domain Sockets

Matthew D.Swank akopa.gmane.poster at gmail.com
Fri Jun 27 01:37:30 UTC 2008


There is a problem in trying to use the abstract namespace for AF_LOCAL. 
Address in the abstract namespace are _not_ C strings.

>From man 7 unix (domain sockets):
 Address Format
       A  Unix  address  is  defined  as  a filename in the filesystem or as a
       unique string in the abstract namespace.  
       
      ...

       *If  sun_path  starts with a null byte (’’ ’), then it refers to the
       abstract namespace maintained by the Unix protocol  module.   The
       socket’s  address  in  this namespace  is  given  by  the rest of the
       bytes in sun_path.  Note that names in the abstract namespace are not
       zero-terminated.*

Would it be possible to pass a byte array as an address, or support a subtype of
LOCAL-SOCKET that requires #\Nul characters to be specified explicitly?

Matt





More information about the slime-devel mailing list