Skip to content

Commit 3fa2809

Browse files
committed
Add IBSHIFT constant for Linux and Android.
1 parent 3643f01 commit 3fa2809

File tree

8 files changed

+10
-1
lines changed

8 files changed

+10
-1
lines changed

libc-test/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,6 +1663,7 @@ fn test_android(target: &str) {
16631663

16641664
// FIXME: conflicts with standard C headers and is tested in
16651665
// `linux_termios.rs` below:
1666+
"IBSHIFT" => true,
16661667
"TCGETS2" | "TCSETS2" | "TCSETSW2" | "TCSETSF2" => true,
16671668

16681669
_ => false,
@@ -2915,6 +2916,7 @@ fn test_linux(target: &str) {
29152916
// FIXME: conflicts with glibc headers and is tested in
29162917
// `linux_termios.rs` below:
29172918
| "BOTHER"
2919+
| "IBSHIFT"
29182920
| "TCGETS2"
29192921
| "TCSETS2"
29202922
| "TCSETSW2"
@@ -3274,7 +3276,7 @@ fn test_linux_like_apis(target: &str) {
32743276
.skip_static(|_| true)
32753277
.skip_fn(|_| true)
32763278
.skip_const(|c| match c {
3277-
"BOTHER" => false,
3279+
"BOTHER" | "IBSHIFT" => false,
32783280
"TCGETS2" | "TCSETS2" | "TCSETSW2" | "TCSETSF2" => false,
32793281
_ => true,
32803282
})

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ GRPQUOTA
665665
HPFS_SUPER_MAGIC
666666
HUGETLBFS_MAGIC
667667
HUPCL
668+
IBSHIFT
668669
ICANON
669670
ICRNL
670671
IEXTEN

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ GLOB_NOSORT
645645
GLOB_NOSPACE
646646
GRND_NONBLOCK
647647
GRND_RANDOM
648+
IBSHIFT
648649
IFA_ADDRESS
649650
IFA_ANYCAST
650651
IFA_BROADCAST

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,7 @@ pub const B2500000: ::speed_t = 0o010014;
15381538
pub const B3000000: ::speed_t = 0o010015;
15391539
pub const B3500000: ::speed_t = 0o010016;
15401540
pub const B4000000: ::speed_t = 0o010017;
1541+
pub const IBSHIFT: ::tcflag_t = 16;
15411542

15421543
pub const EAI_AGAIN: ::c_int = 2;
15431544
pub const EAI_BADFLAGS: ::c_int = 3;

src/unix/linux_like/linux/arch/generic/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,4 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
134134
pub const TIOCM_DSR: ::c_int = 0x100;
135135

136136
pub const BOTHER: ::speed_t = 0o010000;
137+
pub const IBSHIFT: ::tcflag_t = 16;

src/unix/linux_like/linux/arch/mips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
130130
pub const TIOCM_DSR: ::c_int = 0x400;
131131

132132
pub const BOTHER: ::speed_t = 0o010000;
133+
pub const IBSHIFT: ::tcflag_t = 16;

src/unix/linux_like/linux/arch/powerpc/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
108108
pub const TIOCM_DSR: ::c_int = 0x100;
109109

110110
pub const BOTHER: ::speed_t = 0o0037;
111+
pub const IBSHIFT: ::tcflag_t = 16;

src/unix/linux_like/linux/arch/sparc/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,4 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
122122
pub const TIOCM_DSR: ::c_int = 0x100;
123123

124124
pub const BOTHER: ::speed_t = 0x1000;
125+
pub const IBSHIFT: ::tcflag_t = 16;

0 commit comments

Comments
 (0)