Skip to content

Commit 67615b4

Browse files
author
Jorge Aparicio
committed
tidy and last minute fixes
1 parent 540d140 commit 67615b4

File tree

6 files changed

+27
-6
lines changed

6 files changed

+27
-6
lines changed

src/unix/notbsd/linux/other/b32/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ s! {
6363
}
6464
}
6565

66+
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
67+
pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
68+
6669
pub const RLIMIT_NOFILE: ::c_int = 7;
6770
pub const RLIMIT_NPROC: ::c_int = 6;
6871

src/unix/notbsd/linux/other/b64/aarch64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ s! {
8282
}
8383
}
8484

85+
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
86+
pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
87+
8588
pub const RLIMIT_NOFILE: ::c_int = 7;
8689
pub const RLIMIT_NPROC: ::c_int = 6;
8790

src/unix/notbsd/linux/other/b64/powerpc64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ s! {
8080
}
8181
}
8282

83+
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
84+
pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
85+
8386
pub const RLIMIT_NOFILE: ::c_int = 7;
8487
pub const RLIMIT_NPROC: ::c_int = 6;
8588

src/unix/notbsd/linux/other/b64/sparc64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ s! {
8282
}
8383
}
8484

85+
pub const TIOCGSOFTCAR: ::c_ulong = 0x40047464;
86+
pub const TIOCSSOFTCAR: ::c_ulong = 0x80047465;
87+
8588
pub const RLIMIT_NOFILE: ::c_int = 6;
8689
pub const RLIMIT_NPROC: ::c_int = 7;
8790

src/unix/notbsd/linux/other/b64/x86_64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ s! {
121121
}
122122
}
123123

124+
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
125+
pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
126+
124127
pub const RLIMIT_NOFILE: ::c_int = 7;
125128
pub const RLIMIT_NPROC: ::c_int = 6;
126129

src/unix/notbsd/linux/other/mod.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,22 @@ s! {
4242
pub ut_host: [::c_char; __UT_HOSTSIZE],
4343
pub ut_exit: __exit_status,
4444

45-
#[cfg(any(target_arch = "aarch64", target_arch = "sparc64", target_pointer_width = "32"))]
45+
#[cfg(any(target_arch = "aarch64",
46+
target_arch = "sparc64",
47+
target_pointer_width = "32"))]
4648
pub ut_session: ::c_long,
47-
#[cfg(any(target_arch = "aarch64", target_arch = "sparc64", target_pointer_width = "32"))]
49+
#[cfg(any(target_arch = "aarch64",
50+
target_arch = "sparc64",
51+
target_pointer_width = "32"))]
4852
pub ut_tv: ::timeval,
4953

50-
#[cfg(not(any(target_arch = "aarch64", target_arch = "sparc64", target_pointer_width = "32")))]
54+
#[cfg(not(any(target_arch = "aarch64",
55+
target_arch = "sparc64",
56+
target_pointer_width = "32")))]
5157
pub ut_session: ::int32_t,
52-
#[cfg(not(any(target_arch = "aarch64", target_arch = "sparc64", target_pointer_width = "32")))]
58+
#[cfg(not(any(target_arch = "aarch64",
59+
target_arch = "sparc64",
60+
target_pointer_width = "32")))]
5361
pub ut_tv: __timeval,
5462

5563
pub ut_addr_v6: [::int32_t; 4],
@@ -339,8 +347,6 @@ pub const TCSANOW: ::c_int = 0;
339347
pub const TCSADRAIN: ::c_int = 1;
340348
pub const TCSAFLUSH: ::c_int = 2;
341349

342-
pub const TIOCGSOFTCAR: ::c_ulong = 0x40047464;
343-
pub const TIOCSSOFTCAR: ::c_ulong = 0x80047465;
344350
pub const TIOCLINUX: ::c_ulong = 0x541C;
345351
pub const TIOCGSERIAL: ::c_ulong = 0x541E;
346352

0 commit comments

Comments
 (0)