@@ -30,7 +30,8 @@ pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 20;
30
30
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4 ;
31
31
pub const NCCS : usize = 32 ;
32
32
33
- // I wasn't able to find those constants in uclibc build environment for armv7
33
+ // I wasn't able to find those constants
34
+ // in uclibc build environment for armv7
34
35
pub const AIO_ALLDONE : :: c_int = 2 ; // from linux/mod.rs
35
36
pub const AIO_CANCELED : :: c_int = 0 ; // from linux/mod.rs
36
37
pub const AIO_NOTCANCELED : :: c_int = 1 ; // from linux/mod.rs
@@ -46,15 +47,13 @@ pub const LIO_READ: ::c_int = 0; // from linux/mod.rs
46
47
pub const LIO_WAIT : :: c_int = 0 ; // from linux/mod.rs
47
48
pub const LIO_WRITE : :: c_int = 1 ; // from linux/mod.rs
48
49
pub const MAP_HUGETLB : :: c_int = 0x040000 ; // from linux/other/mod.rs
49
- pub const O_TMPFILE : :: c_int = 0o20000000 | O_DIRECTORY ;
50
+ pub const O_TMPFILE : :: c_int = 0o20000000 | O_DIRECTORY ;
50
51
pub const RB_KEXEC : :: c_int = 0x45584543u32 as i32 ; // from linux/mod.rs
51
52
pub const RB_SW_SUSPEND : :: c_int = 0xd000fce2u32 as i32 ; // from linux/mod.rs
52
- pub const SO_BUSY_POLL : :: c_int = 46 ; // not defined in asm-generic/socket.h for armv7
53
- pub const SO_PEEK_OFF : :: c_int = 42 ; // not defined in asm-generic/socket.h for armv7
54
- pub const SO_REUSEPORT : :: c_int = 15 ; // not defined in asm-generic/socket.h for armv7
55
- pub const SOL_NETLINK : :: c_int = 270 ; // took it from src/unix/notbsd/mod.rs, I wasn't able to find it in headers
56
-
57
- // TODO: check those
53
+ pub const SO_BUSY_POLL : :: c_int = 46 ; // from src/unix/notbsd/mod.rs
54
+ pub const SO_PEEK_OFF : :: c_int = 42 ; // from src/unix/notbsd/mod.rs
55
+ pub const SO_REUSEPORT : :: c_int = 15 ; // from src/unix/notbsd/mod.rs
56
+ pub const SOL_NETLINK : :: c_int = 270 ; // from src/unix/notbsd/mod.rs
58
57
pub const _POSIX_VDISABLE: :: cc_t = 0 ; // from linux/mod.rs
59
58
pub const AT_EMPTY_PATH : :: c_int = 0x1000 ; // from notbsd/mod.rs
60
59
526
525
527
526
pub struct sigaction {
528
527
pub sa_sigaction: :: sighandler_t,
529
- // uClibc defines sa_flags as `unsigned long int`, but nix crate expects `int`
528
+ // uClibc defines sa_flags as `unsigned long int`,
529
+ // but nix crate expects `int`
530
530
pub sa_flags: :: c_int,
531
531
pub sa_restorer: * mut :: c_void,
532
532
pub sa_mask: sigset_t,
0 commit comments