mirror of
https://github.com/openharmony/third_party_rust_linux-raw-sys.git
synced 2026-07-21 00:25:54 -04:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user