Skip to content

Commit

Permalink
redox: correct EPOLL constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed May 6, 2024
1 parent 3e7a91e commit 5eff703
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/unix/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,22 +677,22 @@ pub const EPOLL_CLOEXEC: ::c_int = 0x0100_0000;
pub const EPOLL_CTL_ADD: ::c_int = 1;
pub const EPOLL_CTL_DEL: ::c_int = 2;
pub const EPOLL_CTL_MOD: ::c_int = 3;
pub const EPOLLIN: ::c_int = 1;
pub const EPOLLPRI: ::c_int = 0;
pub const EPOLLOUT: ::c_int = 2;
pub const EPOLLRDNORM: ::c_int = 0;
pub const EPOLLNVAL: ::c_int = 0;
pub const EPOLLRDBAND: ::c_int = 0;
pub const EPOLLWRNORM: ::c_int = 0;
pub const EPOLLWRBAND: ::c_int = 0;
pub const EPOLLMSG: ::c_int = 0;
pub const EPOLLERR: ::c_int = 0;
pub const EPOLLHUP: ::c_int = 0;
pub const EPOLLRDHUP: ::c_int = 0;
pub const EPOLLEXCLUSIVE: ::c_int = 0;
pub const EPOLLWAKEUP: ::c_int = 0;
pub const EPOLLONESHOT: ::c_int = 0;
pub const EPOLLET: ::c_int = 0;
pub const EPOLLIN: ::c_int = 0x001;
pub const EPOLLPRI: ::c_int = 0x002;
pub const EPOLLOUT: ::c_int = 0x004;
pub const EPOLLERR: ::c_int = 0x008;
pub const EPOLLHUP: ::c_int = 0x010;
pub const EPOLLNVAL: ::c_int = 0x020;
pub const EPOLLRDNORM: ::c_int = 0x040;
pub const EPOLLRDBAND: ::c_int = 0x080;
pub const EPOLLWRNORM: ::c_int = 0x100;
pub const EPOLLWRBAND: ::c_int = 0x200;
pub const EPOLLMSG: ::c_int = 0x400;
pub const EPOLLRDHUP: ::c_int = 0x2000;
pub const EPOLLEXCLUSIVE: ::c_int = 1 << 28;
pub const EPOLLWAKEUP: ::c_int = 1 << 29;
pub const EPOLLONESHOT: ::c_int = 1 << 30;
pub const EPOLLET: ::c_int = 1 << 31;

// sys/stat.h
pub const S_IFMT: ::c_int = 0o0_170_000;
Expand Down

0 comments on commit 5eff703

Please sign in to comment.