diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-06 01:08:35 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-06 01:10:02 +0100 |
commit | 50ee13566dad2f57cc3619b0804195227bcb3d49 (patch) | |
tree | 37e241e4711b67fc7de75756cebbb07b2dd3b82a | |
parent | 7d345dd8d745e6abbd21a2e250d0532eb882c94e (diff) |
Add epoll_create().
-rw-r--r-- | epoll.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -32,6 +32,7 @@ export EPOLLHUP; export EPOLLONESHOT; export EPOLLET; export epoll_event; +export epoll_create; export epoll_create1; export epoll_ctl; export epoll_wait; @@ -77,6 +78,10 @@ native mod __glibc { timeout: c_int) -> c_int; } +fn epoll_create() -> int { + epoll_create1(0) +} + fn epoll_create1(flags: int) -> int { __glibc::epoll_create1(flags as c_int) as int } |