[PATCH 3/7] Add xcb_send_fd API

Keith Packard keithp at keithp.com
Wed Nov 6 06:58:41 PST 2013


Mark Kettenis <mark.kettenis at xs4all.nl> writes:

>> From: Keith Packard <keithp at keithp.com>
>> Date: Tue,  5 Nov 2013 16:41:23 -0800
>> 
>> This uses sendmsg to transmit file descriptors from the application to
>> the X server
>
> Same issue as with the libxtrans code; you're not using the CMSG_ API
> correctly.

Someone who can figure that out needs to fix it then; I cannot code to a
spec without being able to verify that it works. I did try to make it
work when first implementing this stuff, but I never managed.

What I could do is make this all Linux-only until someone figures out
how to use the CMSG_API in the way that works for more systems.

> Also perhaps instead of checking HAVE_SENDMSG you should simply check
> SCM_RIGHTS.  All platforms that support the latter should have
> sendmsg(2) while I'm not completely this is true the other way around.

That'd be easy, but I'd like to know why this test would be better?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131106/ee89ad1a/attachment.pgp>


More information about the xorg-devel mailing list