CMSG_LEN, CMSG_SPACE not there on illumos

Ralph Böhme rb at sernet.de
Tue Apr 28 23:09:24 MDT 2015


On Tue, Apr 28, 2015 at 08:48:54AM -0700, Jeremy Allison wrote:
> 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 ?

fwiw:
<https://bugzilla.samba.org/attachment.cgi?id=10623>

-Ralph

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de


More information about the samba-technical mailing list