Skip to content

Commit f1a3f91

Browse files
authored
Merge pull request rust-lang#328 from kubo39/add-epoll_create1
Add epoll_create1.
2 parents c32ac0d + 357f97f commit f1a3f91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/notbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,8 @@ pub const EPOLL_CTL_ADD: ::c_int = 1;
501501
pub const EPOLL_CTL_MOD: ::c_int = 3;
502502
pub const EPOLL_CTL_DEL: ::c_int = 2;
503503

504+
pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
505+
504506
pub const MNT_DETACH: ::c_int = 0x2;
505507
pub const MNT_EXPIRE: ::c_int = 0x4;
506508

@@ -749,6 +751,7 @@ extern {
749751
pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int;
750752
pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int;
751753
pub fn epoll_create(size: ::c_int) -> ::c_int;
754+
pub fn epoll_create1(flags: ::c_int) -> ::c_int;
752755
pub fn epoll_ctl(epfd: ::c_int,
753756
op: ::c_int,
754757
fd: ::c_int,

0 commit comments

Comments
 (0)