Jeetu Golani
2dcf8b025b
Replaced read() in read_block and _xcb_in_read() with recv for all
...
platforms. MSG_WAITALL is undefined in MinGW so it's been explicitly
defined in xcb_in.c
2010-04-23 00:47:16 +05:30
Jeetu Golani
56962e42a5
Set errno=0 in read_block. On Win32 there is no errno and this makes the
...
do..while loop execute only once. Also set the return value to -1 in
_xcb_open if control reaches the end - if all goes well it shouldn't
reach there.
2010-04-22 23:23:27 +05:30
Jeetu Golani
0e0c80e749
xcb_in.c #ifndef _WIN32 inside of #if USE_POLL redundant and removed
2010-03-31 22:00:04 +05:30
Jeetu Golani
e8009194c9
restablished inclusion of fcntl.h and netinet/tcp.h in xcb_util.c -- without these the code no longer compiled on *ix
2010-03-31 09:50:51 +05:30
Jeetu Golani
d302f1e9b1
changes in xcb_windefs.h - the flag _XCB_WINDEFS_H replaces WINDEFS_H
2010-03-29 22:37:33 +05:30
Jeetu Golani
36c9a985aa
windefs.h is now called xcb_windefs.h - changed all includes to reflect that.Replaced one instance ofWIN32 with _WIN32 in each xcb_in.c and xcb_conn.c
2010-03-29 22:31:49 +05:30
Jeetu Golani
bce72f63d2
Win32 code for xcb-1.5
2010-03-26 09:40:09 +05:30
Rémi Denis-Courmont
53a9834e4c
Open the X11 socket with close-on-exec flag
...
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-17 10:09:43 +01:00
Peter Harris
367882fa32
Support xcb_discard_reply
...
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-02-11 14:35:37 -05:00
Rémi Denis-Courmont
be7e528eae
xcb_connect_to_fd: fix descriptor leak on memory error path
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-01-07 18:03:30 +01:00
Jeremy Huddleston
c7a57043da
configure.ac: Fix a typo on the last commit.
...
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-12-11 17:24:43 -08:00
Jeremy Huddleston
58c96da928
darwin: xnu doesn't support poll on ttys on the master side.
...
<rdar://problem/7360546>
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-12-11 17:15:16 -08:00
Jim Ingram
1e746fd89a
Tutorial code fix
...
Accessed elements of names[] after freeing them in the first example.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-08 09:41:26 +01:00
Rémi Cardona
a470579ba2
DRI2 extension requires xcb-proto 1.6 or newer
...
Signed-off-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-05 11:54:39 +01:00
Julien Danjou
6e875a82a8
build: simplify extension building
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03 11:34:18 +01:00
Julien Danjou
48217ac986
Release libxcb 1.5
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03 10:09:06 +01:00
Adam Jackson
1cf2a87def
setsockopt(SO_KEEPALIVE) on TCP display connections.
...
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-12-02 14:31:56 -05:00
Eric Anholt
e82c34c2f7
Add DRI2 support. (v2)
...
v2: Build fix from jcristau.
2009-10-19 09:47:06 -07:00
Eric Anholt
a27c77ccae
Fix typo in the tutorial.
2009-10-15 13:49:47 -07:00
Paulo R. Zanoni
17af34b4a4
Don't build docs if 'dot' is not found Signed-off-by: Paulo R. Zanoni <pzanoni@mandriva.com>
2009-09-18 17:14:04 -04:00
Julien Cristau
29207e2943
Fix check dependency
...
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-31 17:51:36 +02:00
Yaakov Selkowitz
ff2e2e35bc
Cygwin build fix: Add -no-undefined to libtool flags
...
-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-08-31 17:48:32 +02:00
Arnaud Fontaine
96ff5fb635
Release libxcb 1.4
2009-07-15 16:15:02 +01:00
Arnaud Fontaine
f4c2794bf5
Add majorCode, minorCode and resourceID fields to X generic error
2009-07-15 16:03:56 +01:00
Jamey Sharp
e06955ed66
Fix precedence bug: wrong length for big-requests preceded by sync.
...
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-07-06 13:14:35 -07:00
Julien Cristau
9e191c722a
Fix libxcb-randr version info
...
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-29 17:05:11 +02:00
Julien Danjou
f44dc519c5
Release libxcb 1.3
2009-05-29 08:28:53 +02:00
elupus
ee89850e68
Disable Nagle on TCP socket
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-26 16:14:48 +02:00
Bob Ham
62fe187e2d
Store xcbproto version libxcb was compiled with
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-25 12:20:23 +02:00
Julien Danjou
efbe96ee0a
depends on recent xcb-proto and bump version of randr
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-09 17:39:34 +02:00
Bart Massey
010e566126
Fix XDM-AUTHORIZATION-1 (bug #14202 )
...
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-21 08:41:34 +02:00
Julien Danjou
ca978a9dae
util: remove useless strlen calls from decnet opening
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10 09:59:49 +02:00
Julien Danjou
cc19143141
util: merge common code for xcb_connect
...
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-10 09:59:49 +02:00
Julien Danjou
8797e053b2
util: open_abstract gets filelen as parameters
...
That saves us from a couple of strlen() calls.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10 09:59:49 +02:00
Julien Danjou
f0b2981974
auth: use snprintf() return value
...
That save us from a strlen().
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10 09:59:49 +02:00
Julien Danjou
9f24c91f91
auth: precompute authnameslen
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10 09:59:49 +02:00
Jeremy Huddleston
2a4f1cf380
darwin: Don't use poll() on versions of darwin before darwin10
2009-04-09 05:12:02 -07:00
Samuel Thibault
6e2e87d0bb
Local socket connections do not work on hurd-i386
...
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-04-06 16:53:11 +02:00
Michael Ost
f916062edf
use poll() instead of select() when available
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-30 11:09:32 +02:00
Bart Massey
beccb0be15
kludgily hand-merged xid fixes
...
Signed-off-by: Bart Massey <bart@cs.pdx.edu>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-28 14:59:01 +01:00
Julien Danjou
1e9c0f1012
Fix do_append() arguments
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-16 10:26:37 +01:00
Julien Danjou
fcb433db80
Copy full IPv4 mapping (Bug #20665 )
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-15 19:57:56 +01:00
Peter Harris
eaa71eac02
Avoid name collisions between xidtype and enum.
...
These changes are necessary to build with latest xcb/proto.
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-03-14 12:34:31 -04:00
Peter Harris
e986d1ee5a
Revert "Don't use enums in generated C code"
...
This commit broke xcb/util.
This reverts commit 9984b72888 .
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-03-13 15:25:30 -04:00
Peter Harris
9984b72888
Don't use enums in generated C code - use integer constants instead.
...
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-02-25 19:07:23 -05:00
Julien Danjou
b08e1535cf
Release libxcb 1.2
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-17 13:37:29 +01:00
Julien Danjou
2e65188f91
Stop providing autogenerated files in tarball
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-16 11:44:20 +01:00
Julien Danjou
37f5ce3ef4
Release libxcb 1.1.93
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-11 11:17:13 +01:00
Jeremy Huddleston
f896ae8c53
Shutup compiler warning about unused variable...
2008-11-23 17:25:21 -08:00
Jeremy Huddleston
d79621b25b
Apple: Apple launchd cleanup
...
Added --with-launchd option instead of just using __APPLE__
Fixed opening launchd fd when displayname=NULL
2008-11-23 17:23:17 -08:00