X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_util.c;h=3d6006c18a362ef3863bfc36ef7828f2a0507fca;hb=522a6e0eac9adeaac533a5b700f42d85d46e2dd7;hp=b7f5ffa28ce5b99f22167ebfd887d65899842ef7;hpb=67b2649dc4b6726c6d11fb0e41429ae5de82b0e8;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_util.c b/src/xcb_util.c index b7f5ffa..3d6006c 100644 --- a/src/xcb_util.c +++ b/src/xcb_util.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -197,22 +196,3 @@ int XCBSync(XCBConnection *c, XCBGenericError **e) free(reply); return reply != 0; } - -/* The functions beyond this point still use only public interfaces, - * but are not themselves part of the public interface. So their - * prototypes are in xcbint.h. */ - -#include "xcbint.h" - -int _xcb_set_fd_flags(const int fd) -{ - long flags = fcntl(fd, F_GETFL, 0); - if(flags == -1) - return 0; - flags |= O_NONBLOCK; - if(fcntl(fd, F_SETFL, flags) == -1) - return 0; - if(fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) - return 0; - return 1; -}