Hi Kristian, here are the rest of my OS compatibility wrappers for Wayland. Every wrapper, except accept4, has two unit tests: a normal one and a forced fallback one.
The accept4 patch adds a configure test for it, the others seemed to work by preprocessor directives. There are also some wrapper and test cleanups, and the last patch fixes a theoretical bug (I believe). Thanks to Thiago Macieira for feedback on the wrappers, and also to vapula on #wayland. http://cgit.collabora.com/git/user/pq/wayland.git/log/?h=for-krh The following changes since commit e7dd32710f3fcff0bbbaf33807fb65b78a43e2fb: tests: Test invoking closures built with wl_closure_vmarshal() (2012-04-22 14:17:27 -0400) are available in the git repository at: git://git.collabora.co.uk/git/user/pq/wayland.git for-krh Pekka Paalanen (8): os: remove unneeded errno assignment os: define SOCK_CLOEXEC on Linux os: wrap F_DUPFD_CLOEXEC tests: silence warnings from pipe() os: wrap recvmsg(MSG_CMSG_CLOEXEC) os: wrap epoll_create os: wrap accept4(SOCK_CLOEXEC) server: do not create wl_client if accept() failed configure.ac | 2 + src/connection.c | 5 +- src/event-loop.c | 3 +- src/wayland-os.c | 101 +++++++++++++++- src/wayland-os.h | 34 +++++ src/wayland-server.c | 14 +-- tests/os-wrappers-test.c | 306 ++++++++++++++++++++++++++++++++++++++++++++-- tests/sanity-test.c | 8 +- 8 files changed, 444 insertions(+), 29 deletions(-) Thanks, pq _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
