summaryrefslogtreecommitdiff
path: root/src/unix/notbsd/linux/mips/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/unix/notbsd/linux/mips/mod.rs')
-rw-r--r--src/unix/notbsd/linux/mips/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/mips/mod.rs b/src/unix/notbsd/linux/mips/mod.rs
index 7681999cc1..6e91f442db 100644
--- a/src/unix/notbsd/linux/mips/mod.rs
+++ b/src/unix/notbsd/linux/mips/mod.rs
@@ -25,6 +25,17 @@ s! {
__size: [::c_char; 32],
__align: [::c_long; 0],
}
+
+ pub struct termios2 {
+ pub c_iflag: ::tcflag_t,
+ pub c_oflag: ::tcflag_t,
+ pub c_cflag: ::tcflag_t,
+ pub c_lflag: ::tcflag_t,
+ pub c_line: ::cc_t,
+ pub c_cc: [::cc_t; 23],
+ pub c_ispeed: ::speed_t,
+ pub c_ospeed: ::speed_t,
+ }
}
pub const SFD_CLOEXEC: ::c_int = 0x080000;
@@ -614,6 +625,7 @@ pub const B19200: ::speed_t = 0o000016;
pub const B38400: ::speed_t = 0o000017;
pub const EXTA: ::speed_t = B19200;
pub const EXTB: ::speed_t = B38400;
+pub const BOTHER: ::speed_t = 0o010000;
pub const B57600: ::speed_t = 0o010001;
pub const B115200: ::speed_t = 0o010002;
pub const B230400: ::speed_t = 0o010003;