diff options
| author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-03-22 15:02:05 +0200 |
|---|---|---|
| committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-04-25 09:37:42 +0300 |
| commit | b2eaf870cf8e8cb842ba29ea4718b596101252a6 (patch) | |
| tree | ce24bd654adfd6ad7f4634f86cc074cef2b1924c /src/wayland-os.h | |
| parent | os: wrap recvmsg(MSG_CMSG_CLOEXEC) (diff) | |
| download | wayland-b2eaf870cf8e8cb842ba29ea4718b596101252a6.tar wayland-b2eaf870cf8e8cb842ba29ea4718b596101252a6.tar.gz wayland-b2eaf870cf8e8cb842ba29ea4718b596101252a6.tar.bz2 wayland-b2eaf870cf8e8cb842ba29ea4718b596101252a6.tar.lz wayland-b2eaf870cf8e8cb842ba29ea4718b596101252a6.tar.xz wayland-b2eaf870cf8e8cb842ba29ea4718b596101252a6.tar.zst wayland-b2eaf870cf8e8cb842ba29ea4718b596101252a6.zip | |
os: wrap epoll_create
Some system C libraries do not have epoll_create1() nor EPOLL_CLOEXEC,
provide a fallback.
Add tests for the wrapper.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'src/wayland-os.h')
| -rw-r--r-- | src/wayland-os.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wayland-os.h b/src/wayland-os.h index 43c317b..f6827f1 100644 --- a/src/wayland-os.h +++ b/src/wayland-os.h @@ -32,6 +32,9 @@ wl_os_dupfd_cloexec(int fd, long minfd); ssize_t wl_os_recvmsg_cloexec(int sockfd, struct msghdr *msg, int flags); +int +wl_os_epoll_create_cloexec(void); + /* * The following are for wayland-os.c and the unit tests. |
