Define TCSANOW et al for MIPS.

Define `TCSANOW`, `TCSADRAIN`, and `TCSAFLUSH` for MIPS, since MIPS
defines these differently from all other architectures, and in a way
that bindgen doesn't support.
This commit is contained in:
Dan Gohman
2022-04-08 15:01:10 -07:00
parent 1b7dfcdda0
commit ee19b8a9bb
3 changed files with 13 additions and 0 deletions
+7
View File
@@ -331,4 +331,11 @@ struct mmsghdr {
#if defined(__mips)
#define POLLWRNORM 0x4
#undef TCSANOW
#undef TCSADRAIN
#undef TCSAFLUSH
#define TCSANOW 0x540e
#define TCSADRAIN 0x540f
#define TCSAFLUSH 0x5410
#endif
+3
View File
@@ -2457,6 +2457,9 @@ pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1;
pub const UFFDIO_COPY_MODE_WP: u32 = 2;
pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1;
pub const POLLWRNORM: u32 = 4;
pub const TCSANOW: u32 = 21518;
pub const TCSADRAIN: u32 = 21519;
pub const TCSAFLUSH: u32 = 21520;
pub type size_t = crate::ctypes::c_uint;
pub type ssize_t = crate::ctypes::c_int;
pub type __s8 = crate::ctypes::c_schar;
+3
View File
@@ -2395,6 +2395,9 @@ pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1;
pub const UFFDIO_COPY_MODE_WP: u32 = 2;
pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1;
pub const POLLWRNORM: u32 = 4;
pub const TCSANOW: u32 = 21518;
pub const TCSADRAIN: u32 = 21519;
pub const TCSAFLUSH: u32 = 21520;
pub type size_t = crate::ctypes::c_ulong;
pub type ssize_t = crate::ctypes::c_long;
pub type __s8 = crate::ctypes::c_schar;