summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-07-13xkb: updated configure.ac/Makefile.amChristoph Reimann
2010-07-13added xcb_sumof() with restriction to uint8_tChristoph Reimann
2010-05-14xcb_open: Improve protocol/host parsingJeremy Huddleston
Support scenarios where host is not set and protocol is. eg: DISPLAY=tcp/:0 as well as the "inet" and "inet6" alias for "tcp" for compatability with Xlib Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-05-14Add ~ operator support in code generatorMarcin Kościelnicki
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-04-30Fix GCC error on undeclared variable when not using abstract socketArnaud Fontaine
This is a regression found by tinderbox in previous commit: xcb_util.c: In function '_xcb_open': xcb_util.c:213: error: 'fd' undeclared (first use in this function)
2010-04-30Get rid of PATH_MAX and MAXPATHLENArnaud Fontaine
There could be no upper limit on the length of a path according to POSIX, therefore these macros may not be defined at all on some systems (such as GNU Hurd). Signed-off-by: Arnaud Fontaine <arnau@debian.org> Reviewed-by: Peter Harris <pharris@opentext.com>
2010-04-23Use limits.h instead of syslimits.hJeremy Huddleston
Regression found by tinderbox in 89b3485dadef47a30264a5bf150b96522183376b xcb_util.c:31:27: error: sys/syslimits.h: No such file or directory xcb_util.c: In function '_xcb_open': xcb_util.c:148: error: 'PATH_MAX' undeclared (first use in this function) Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-23Reworked launchd support to work better with _xcb_parse_displayJeremy Huddleston
Fixes: http://xquartz.macosforge.org/trac/ticket/390 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-17Always wake up readers after writing.Jamey Sharp
Since writers must make sure they read as well, threads may have gone to sleep waiting for the opportunity to read. The writer must wake up one of those readers or the application can hang. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Josh Triplett <josh@freedesktop.org>
2010-04-17Fix strict-aliasing warning when getting generic event length.Jamey Sharp
xcb_ge_event_t has its length field in the same place that xcb_generic_reply_t does, so there's no need to cast the generic reply. Signed-off-by: Jamey Sharp <jamey@minilop.net> Cc: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Julien Danjou <julien@danjou.info>
2010-04-17Delete a useless level of indirection from _xcb_out_send's parameters.Jamey Sharp
_xcb_out_send needs _xcb_conn_wait to store back its progress so it can be reinvoked to pick up where it left off---but then _xcb_out_send guarantees that it leaves either an empty output vector or a shut-down connection, so *its* callers never care how much progress was made. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Josh Triplett <josh@freedesktop.org>
2010-04-09Release libxcb 1.61.6Julien Danjou
2010-04-08Fail if fd is too big and poll() is not availableRémi Denis-Courmont
Depending on the process file limit, a file descriptor can be larger than the capacity of fd_set. There is no portable way to create a large enough fd_set at run-time. So we just fail if the file descriptor number is too high and poll() is not available. Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-03-13Fix authentication on hpux and HurdSamuel Thibault
libxcb's 010e5661 (Fix XDM-AUTHORIZATION-1 (bug #14202)) mistakenly inverted a few lines of code, making local socket authentication fail on hpux and Hurd: when getpeername fails, sockname needs to be initialized by getsockname before its address family can be checked. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-02-17Open the X11 socket with close-on-exec flagRémi Denis-Courmont
This saves the X11 connection from leaking into children processes. On Linux, this is fully thread-safe using SOCK_CLOEXEC. On other systems, there is a small race condition. Signed-off-by: Julien Danjou <julien@danjou.info>
2010-02-11Support xcb_discard_replyPeter Harris
This function is useful for dynamic language garbage collectors. Frequently a GC cycle may run before you want to block wainting for a reply. This function is also marginally useful for libxcb apps that issue speculative requests (eg. xlsclients). Reviewed-by: Jamey Sharp <jamey@minilop.net> Tested-by: Eamon Walsh <efw@eamonwalsh.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2010-01-07xcb_connect_to_fd: fix descriptor leak on memory error pathRémi Denis-Courmont
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-11configure.ac: Fix a typo on the last commit.Jeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-12-11darwin: xnu doesn't support poll on ttys on the master side.Jeremy Huddleston
<rdar://problem/7360546> Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-12-08Tutorial code fixJim Ingram
Accessed elements of names[] after freeing them in the first example. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-05DRI2 extension requires xcb-proto 1.6 or newerRémi Cardona
Signed-off-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03build: simplify extension buildingJulien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03Release libxcb 1.51.5Julien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-02setsockopt(SO_KEEPALIVE) on TCP display connections.Adam Jackson
This matches xtrans behaviour in SocketINETConnect, and makes it so apps don't hang forever if their display dies. Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-10-19Add DRI2 support. (v2)Eric Anholt
v2: Build fix from jcristau.
2009-10-15Fix typo in the tutorial.Eric Anholt
2009-09-18Don't build docs if 'dot' is not found Signed-off-by: Paulo R. Zanoni ↵Paulo R. Zanoni
<pzanoni@mandriva.com>
2009-08-31Fix check dependencyJulien Cristau
Bugzilla #21992 make -j check fails because the check-local rule gets executed before the tests actually ran, so CheckLog*.xml doesn't exist. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31Cygwin build fix: Add -no-undefined to libtool flagsYaakov Selkowitz
-no-undefined is needed to tell libtool a shared library can be built on platforms which require all references to be statisfied at link time. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-15Release libxcb 1.41.4Arnaud Fontaine
2009-07-15Add majorCode, minorCode and resourceID fields to X generic errorArnaud Fontaine
2009-07-06Fix precedence bug: wrong length for big-requests preceded by sync.Jamey Sharp
Also replace excessively clever use of bitwise OR with equivalent addition. Reported-by: Geoffrey Li <geoffrey@seitopos.com> Signed-off-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Josh Triplett <josh@joshtriplett.org>
2009-05-29Fix libxcb-randr version infoJulien Cristau
The SONAME shouldn't have been bumped in 1.3, only new symbols were added. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-29Release libxcb 1.31.3Julien Danjou
2009-05-26Disable Nagle on TCP socketelupus
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-25Store xcbproto version libxcb was compiled withBob Ham
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-09depends on recent xcb-proto and bump version of randrJulien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-21Fix XDM-AUTHORIZATION-1 (bug #14202)Bart Massey
With this patch, we know use correctly the socket address or peer address for authentication purpose. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10util: remove useless strlen calls from decnet openingJulien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10util: merge common code for xcb_connectJulien Danjou
Many code was duplicated between xcb_connect_to_display_with_auth_info and xcb_connect(). We merge both, since the difference is just about the xcb_auth_info_t pointer being supplied, or not. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10util: open_abstract gets filelen as parametersJulien Danjou
That saves us from a couple of strlen() calls. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10auth: use snprintf() return valueJulien Danjou
That save us from a strlen(). Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10auth: precompute authnameslenJulien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-09darwin: Don't use poll() on versions of darwin before darwin10Jeremy Huddleston
2009-04-06Local socket connections do not work on hurd-i386Samuel Thibault
Local socket connections currently do not work on hurd-i386 because xcb_auth calls getpeername() on the client socket, but hurd-i386 does not implement anything in that case (I actually wonder what reasonable value could be returned). In such case the xcb code does not actually need the peer name anyway. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-30use poll() instead of select() when availableMichael Ost
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-28kludgily hand-merged xid fixesBart Massey
Signed-off-by: Bart Massey <bart@cs.pdx.edu> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-16Fix do_append() argumentsJulien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-15Copy full IPv4 mapping (Bug #20665)Julien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-14Avoid name collisions between xidtype and enum.Peter Harris
These changes are necessary to build with latest xcb/proto. Signed-off-by: Peter Harris <pharris@opentext.com>