Skip to content

Commit

Permalink
Add IBSHIFT constant for Linux and Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
de-vri-es committed Nov 13, 2021
1 parent 3643f01 commit 3fa2809
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libc-test/build.rs
Expand Up @@ -1663,6 +1663,7 @@ fn test_android(target: &str) {

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

_ => false,
Expand Down Expand Up @@ -2915,6 +2916,7 @@ fn test_linux(target: &str) {
// FIXME: conflicts with glibc headers and is tested in
// `linux_termios.rs` below:
| "BOTHER"
| "IBSHIFT"
| "TCGETS2"
| "TCSETS2"
| "TCSETSW2"
Expand Down Expand Up @@ -3274,7 +3276,7 @@ fn test_linux_like_apis(target: &str) {
.skip_static(|_| true)
.skip_fn(|_| true)
.skip_const(|c| match c {
"BOTHER" => false,
"BOTHER" | "IBSHIFT" => false,
"TCGETS2" | "TCSETS2" | "TCSETSW2" | "TCSETSF2" => false,
_ => true,
})
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Expand Up @@ -665,6 +665,7 @@ GRPQUOTA
HPFS_SUPER_MAGIC
HUGETLBFS_MAGIC
HUPCL
IBSHIFT
ICANON
ICRNL
IEXTEN
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Expand Up @@ -645,6 +645,7 @@ GLOB_NOSORT
GLOB_NOSPACE
GRND_NONBLOCK
GRND_RANDOM
IBSHIFT
IFA_ADDRESS
IFA_ANYCAST
IFA_BROADCAST
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/android/mod.rs
Expand Up @@ -1538,6 +1538,7 @@ pub const B2500000: ::speed_t = 0o010014;
pub const B3000000: ::speed_t = 0o010015;
pub const B3500000: ::speed_t = 0o010016;
pub const B4000000: ::speed_t = 0o010017;
pub const IBSHIFT: ::tcflag_t = 16;

pub const EAI_AGAIN: ::c_int = 2;
pub const EAI_BADFLAGS: ::c_int = 3;
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/arch/generic/mod.rs
Expand Up @@ -134,3 +134,4 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
pub const TIOCM_DSR: ::c_int = 0x100;

pub const BOTHER: ::speed_t = 0o010000;
pub const IBSHIFT: ::tcflag_t = 16;
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/arch/mips/mod.rs
Expand Up @@ -130,3 +130,4 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
pub const TIOCM_DSR: ::c_int = 0x400;

pub const BOTHER: ::speed_t = 0o010000;
pub const IBSHIFT: ::tcflag_t = 16;
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/arch/powerpc/mod.rs
Expand Up @@ -108,3 +108,4 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
pub const TIOCM_DSR: ::c_int = 0x100;

pub const BOTHER: ::speed_t = 0o0037;
pub const IBSHIFT: ::tcflag_t = 16;
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/arch/sparc/mod.rs
Expand Up @@ -122,3 +122,4 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
pub const TIOCM_DSR: ::c_int = 0x100;

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

0 comments on commit 3fa2809

Please sign in to comment.