Skip to content

Commit e4ecf4b

Browse files
committed
Reorder EPOLL flag constants
Put them in ascending order, which matches the order Linux defines them.
1 parent e4da444 commit e4ecf4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/linux_like/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,13 +1028,13 @@ pub const FD_SETSIZE: usize = 1024;
10281028
pub const EPOLLIN: ::c_int = 0x1;
10291029
pub const EPOLLPRI: ::c_int = 0x2;
10301030
pub const EPOLLOUT: ::c_int = 0x4;
1031+
pub const EPOLLERR: ::c_int = 0x8;
1032+
pub const EPOLLHUP: ::c_int = 0x10;
10311033
pub const EPOLLRDNORM: ::c_int = 0x40;
10321034
pub const EPOLLRDBAND: ::c_int = 0x80;
10331035
pub const EPOLLWRNORM: ::c_int = 0x100;
10341036
pub const EPOLLWRBAND: ::c_int = 0x200;
10351037
pub const EPOLLMSG: ::c_int = 0x400;
1036-
pub const EPOLLERR: ::c_int = 0x8;
1037-
pub const EPOLLHUP: ::c_int = 0x10;
10381038
pub const EPOLLET: ::c_int = 0x80000000;
10391039

10401040
pub const EPOLL_CTL_ADD: ::c_int = 1;

0 commit comments

Comments
 (0)