Skip to content

Commit 23086f1

Browse files
committed
Add EPOLL_CTL defines and normalize epoll_event with other systems
1 parent be7fe77 commit 23086f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/unix/redox/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ s! {
6464

6565
pub struct epoll_event {
6666
pub events: u32,
67-
pub data: u64,
67+
pub u64: u64,
6868
_pad: u64,
6969
}
7070

@@ -406,6 +406,9 @@ extern {
406406

407407
// sys/epoll.h
408408
pub const EPOLL_CLOEXEC: ::c_int = 0x0100_0000;
409+
pub const EPOLL_CTL_ADD: ::c_int = 1;
410+
pub const EPOLL_CTL_DEL: ::c_int = 2;
411+
pub const EPOLL_CTL_MOD: ::c_int = 3;
409412
pub const EPOLLIN: ::c_int = 1;
410413
pub const EPOLLPRI: ::c_int = 0;
411414
pub const EPOLLOUT: ::c_int = 2;

0 commit comments

Comments
 (0)