Fwd: CMSG_LEN, CMSG_SPACE not there on illumos

Jeremy Allison jra at samba.org
Tue Apr 28 09:48:54 MDT 2015


On Tue, Apr 28, 2015 at 10:41:15AM -0400, Gordon Ross wrote:
> In some previous email on this list, Jeremy posted some Solaris
> patches that introduced an #ifdef HAVE_STRUCT_MSGHDR_MSG_CONTROL to
> deal with this in source3/lib/unix_msg.c.
> 
> If I go the "add another #ifdef" route, what's the appropriate thing to do here?
> I looked the the unix_msg.c changes and it seems that the
> #ifdef HAVE_STRUCT_MSGHDR_MSG_CONTROL just omits all the code related
> to FD passing.  Does that work?   Is that not needed?
> If it helps, illumos _does_ support FD passing via control messages,
> just not these CMSG_LEN, CMSG_SPACE macros etc.
> 
> Any help and advice appreciated.

Can you point me at the man pages for Solaris/Illumos that
show how it's doing the same thing ?


More information about the samba-technical mailing list