Skip to content

Commit 982224f

Browse files
author
red75prime
committed
Fix formatting
1 parent 4f97910 commit 982224f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/unix/uclibc/arm/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 20;
3030
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4;
3131
pub const NCCS: usize = 32;
3232

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
3435
pub const AIO_ALLDONE: ::c_int = 2; // from linux/mod.rs
3536
pub const AIO_CANCELED: ::c_int = 0; // from linux/mod.rs
3637
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
4647
pub const LIO_WAIT: ::c_int = 0; // from linux/mod.rs
4748
pub const LIO_WRITE: ::c_int = 1; // from linux/mod.rs
4849
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;
5051
pub const RB_KEXEC: ::c_int = 0x45584543u32 as i32; // from linux/mod.rs
5152
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
5857
pub const _POSIX_VDISABLE: ::cc_t = 0; // from linux/mod.rs
5958
pub const AT_EMPTY_PATH: ::c_int = 0x1000; // from notbsd/mod.rs
6059

@@ -526,7 +525,8 @@ s! {
526525

527526
pub struct sigaction {
528527
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`
530530
pub sa_flags: ::c_int,
531531
pub sa_restorer: *mut ::c_void,
532532
pub sa_mask: sigset_t,

0 commit comments

Comments
 (0)