File tree 5 files changed +9
-6
lines changed
src/unix/linux_like/linux
5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2657,6 +2657,13 @@ fn test_linux(target: &str) {
2657
2657
2658
2658
"MS_RMT_MASK" if uclibc => true , // updated in glibc 2.22 and musl 1.1.13
2659
2659
2660
+ // These are not defined in uclibc but will be passed through to the kernel
2661
+ // so they will be supported if the kernel supports them. Otherwise the
2662
+ // kernel will return runtime errors. Since they're required for tokio
2663
+ // support, we except them from the tests here.
2664
+ // See https://github.com/rust-lang/libc/pull/2019#issuecomment-754351482
2665
+ "EPOLLEXCLUSIVE" | "EPOLLWAKEUP" if uclibc => true ,
2666
+
2660
2667
// FIXME: Requires recent kernel headers (5.8):
2661
2668
"STATX_MNT_ID" => true ,
2662
2669
Original file line number Diff line number Diff line change @@ -887,8 +887,6 @@ pub const PTRACE_INTERRUPT: ::c_uint = 0x4207;
887
887
pub const PTRACE_LISTEN : :: c_uint = 0x4208 ;
888
888
pub const PTRACE_PEEKSIGINFO : :: c_uint = 0x4209 ;
889
889
890
- pub const EPOLLWAKEUP : :: c_int = 0x20000000 ;
891
-
892
890
// linux/fs.h
893
891
894
892
// Flags for preadv2/pwritev2
Original file line number Diff line number Diff line change @@ -1375,6 +1375,8 @@ pub const SHM_HUGETLB: ::c_int = 0o4000;
1375
1375
pub const SHM_NORESERVE : :: c_int = 0o10000 ;
1376
1376
1377
1377
pub const EPOLLRDHUP : :: c_int = 0x2000 ;
1378
+ pub const EPOLLEXCLUSIVE : :: c_int = 0x10000000 ;
1379
+ pub const EPOLLWAKEUP : :: c_int = 0x20000000 ;
1378
1380
pub const EPOLLONESHOT : :: c_int = 0x40000000 ;
1379
1381
1380
1382
pub const QFMT_VFS_OLD : :: c_int = 1 ;
Original file line number Diff line number Diff line change @@ -585,8 +585,6 @@ pub const PF_NFC: ::c_int = AF_NFC;
585
585
pub const PF_VSOCK : :: c_int = AF_VSOCK ;
586
586
pub const PF_XDP : :: c_int = AF_XDP ;
587
587
588
- pub const EPOLLWAKEUP : :: c_int = 0x20000000 ;
589
-
590
588
pub const EFD_NONBLOCK : :: c_int = :: O_NONBLOCK ;
591
589
592
590
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