File tree 5 files changed +8
-6
lines changed
src/unix/linux_like/linux
5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2643,6 +2643,12 @@ fn test_linux(target: &str) {
2643
2643
2644
2644
"MS_RMT_MASK" if uclibc => true , // updated in glibc 2.22 and musl 1.1.13
2645
2645
2646
+ // These are not defined in uclibc but will be passed through to the kernel
2647
+ // so they will be supported if the kernel supports them. Otherwise the
2648
+ // kernel will return runtime errors. Since they're required for tokio
2649
+ // support, we except them from the tests here.
2650
+ // See https://github.com/rust-lang/libc/pull/2019#issuecomment-754351482
2651
+ "EPOLLEXCLUSIVE" | "EPOLLWAKEUP" if uclibc => true ,
2646
2652
_ => false ,
2647
2653
}
2648
2654
} ) ;
Original file line number Diff line number Diff line change @@ -885,8 +885,6 @@ pub const PTRACE_INTERRUPT: ::c_uint = 0x4207;
885
885
pub const PTRACE_LISTEN : :: c_uint = 0x4208 ;
886
886
pub const PTRACE_PEEKSIGINFO : :: c_uint = 0x4209 ;
887
887
888
- pub const EPOLLWAKEUP : :: c_int = 0x20000000 ;
889
-
890
888
// linux/rtnetlink.h
891
889
pub const TCA_PAD : :: c_ushort = 9 ;
892
890
pub const TCA_DUMP_INVISIBLE : :: c_ushort = 10 ;
Original file line number Diff line number Diff line change @@ -1373,6 +1373,8 @@ pub const SHM_HUGETLB: ::c_int = 0o4000;
1373
1373
pub const SHM_NORESERVE : :: c_int = 0o10000 ;
1374
1374
1375
1375
pub const EPOLLRDHUP : :: c_int = 0x2000 ;
1376
+ pub const EPOLLEXCLUSIVE : :: c_int = 0x10000000 ;
1377
+ pub const EPOLLWAKEUP : :: c_int = 0x20000000 ;
1376
1378
pub const EPOLLONESHOT : :: c_int = 0x40000000 ;
1377
1379
1378
1380
pub const QFMT_VFS_OLD : :: c_int = 1 ;
Original file line number Diff line number Diff line change @@ -582,8 +582,6 @@ pub const PF_NFC: ::c_int = AF_NFC;
582
582
pub const PF_VSOCK : :: c_int = AF_VSOCK ;
583
583
pub const PF_XDP : :: c_int = AF_XDP ;
584
584
585
- pub const EPOLLWAKEUP : :: c_int = 0x20000000 ;
586
-
587
585
pub const EFD_NONBLOCK : :: c_int = :: O_NONBLOCK ;
588
586
589
587
pub const SFD_NONBLOCK : :: c_int = :: O_NONBLOCK ;
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ pub const SA_RESETHAND: ::c_int = 0x80000000;
28
28
pub const SA_RESTART : :: c_int = 0x10000000 ;
29
29
pub const SA_NOCLDSTOP : :: c_int = 0x00000001 ;
30
30
31
- pub const EPOLLEXCLUSIVE : :: c_int = 0x10000000 ; // from linux/mod.rs
32
- pub const EPOLLWAKEUP : :: c_int = 0x20000000 ; // from linux/other/mod.rs
33
31
pub const EPOLL_CLOEXEC : :: c_int = 0x80000 ;
34
32
35
33
pub const EFD_CLOEXEC : :: c_int = 0x80000 ;
You can’t perform that action at this time.
0 commit comments