os: wrap F_DUPFD_CLOEXEC
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 23 Apr 2012 10:55:55 +0000 (13:55 +0300)
committerPekka Paalanen <ppaalanen@gmail.com>
Wed, 25 Apr 2012 06:32:58 +0000 (09:32 +0300)
commit1463a41f893b0705c30035182bb070a95f822b1c
tree6188458f3283df4ef6521255067ac20f3a539856
parent3b29783dc8f0e856afce7a9edf10c0ca4d12f284
os: wrap F_DUPFD_CLOEXEC

Some system C libraries do not have F_DUPFD_CLOEXEC. Provide a fallback.

Add tests for the new wl_os_dupfd_cloexec() wrapper.

Add per-wrapper call counters in os_wrappers-test.c. Makes it easier to
determine the minimum required number of wrapped calls.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/connection.c
src/wayland-os.c
src/wayland-os.h
tests/os-wrappers-test.c