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 11, 2021
1 parent 1add3c5 commit 9f88c82
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
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 9f88c82

Please sign in to comment.