From: Bram Senders Date: 2007-02-18T19:53:58+09:00 Subject: Re: [ ruby-Bugs-8597 ] Socket library should support abstract unix sockets On Sun, Feb 18, 2007 at 11:27:58AM +0900, Nobuyoshi Nakada wrote: > Hi, > > At Sun, 18 Feb 2007 06:25:30 +0900, > Bram Senders wrote in [ruby-core:10360]: > > + addrlen = (long) ((char *) &((struct sockaddr_un *) 0)->sun_path) + > > Equivalent to offsetof()? Yes, that was my intention... I didn't know about the existence of the offsetof() function. Bram Senders