[Xcb] [PATCH] Use recv(2) instead of read(2).

Jamey Sharp jamey at minilop.net
Thu Apr 22 21:18:06 PDT 2010

On Thu, Apr 22, 2010 at 8:59 PM, Alan Coopersmith
<alan.coopersmith at oracle.com> wrote:
> Jamey Sharp wrote:
>> The X protocol is only usable over sockets anyway,
> System V machines have long supported streams & pipe based transports
> as well as sockets.
> Solaris currently supports X11 connections over TCP sockets,
> Unix domain sockets (/tmp/.X11-unix/*) and named pipes/fifos
> (/tmp/.X11-pipe/*).  The only other recently active OS that
> had transports such as these I can remember is SCO, but libxtrans
> is littered with older bits for HP-UX and AIX and the like.

Oh. This is why I asked. :-)

Is that a NAK to the patch? Or does recv work for those transports on
those systems? Or does nobody care about those transports any more?

I guess the true version of my note is that nobody has implemented
support in XCB for opening a connection over anything but a socket,
and that means when libX11 is built --with-xcb it doesn't support
non-sockets either. We also don't have code to call
XauGetBestAuthByAddr without a struct sockaddr.

As Solaris starts shipping Xlib/XCB, are we going to get a patch for
named pipe support?

Are Solaris named pipes bidirectional, or are we going to somehow need
to gain support for using two fds as one connection?


More information about the Xcb mailing list