Skip to content

Commit efc8c95

Browse files
committed
add const
1 parent 8492b7a commit efc8c95

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,9 @@ cfg_if! {
144144
pub type intptr_t = isize;
145145
pub type uintptr_t = usize;
146146
pub type ssize_t = isize;
147-
148147
pub enum FILE {}
149148
pub enum fpos_t {} // TODO: fill this out with a struct
150-
149+
pub const EPOLLRDHUP: c_int = 8192;
151150
extern {
152151
pub fn isalnum(c: c_int) -> c_int;
153152
pub fn isalpha(c: c_int) -> c_int;

src/unix/solaris/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ pub const EPOLLMSG: ::c_int = 0x400;
4747
pub const EPOLLERR: ::c_int = 0x8;
4848
pub const EPOLLHUP: ::c_int = 0x10;
4949
pub const EPOLLET: ::c_int = 0x80000000;
50+
pub const EPOLLRDHUP: ::c_int = 0x2000;
51+
pub const EPOLLEXCLUSIVE: ::c_int = 0x10000000;
52+
pub const EPOLLONESHOT: ::c_int = 0x40000000;
53+
5054

5155
pub const EPOLL_CTL_ADD: ::c_int = 1;
5256
pub const EPOLL_CTL_MOD: ::c_int = 3;

0 commit comments

Comments
 (0)