summaryrefslogtreecommitdiff
path: root/src/unix/notbsd/linux/other/b64/x86_64.rs
diff options
context:
space:
mode:
authorZac Berkowitz <zac.berkowitz@gmail.com>2017-02-21 00:06:31 +0000
committerZac Berkowitz <zac.berkowitz@gmail.com>2017-02-21 00:16:10 +0000
commit1a9112d2d82e86dd0f01c6cc454ac24badf54a8b (patch)
tree7b391fa01951e50ed7e563a9f6045e82628c5d0e /src/unix/notbsd/linux/other/b64/x86_64.rs
parente393a2d4a09ac7c3792c2545f49b16e1b6983021 (diff)
downloadrust-libc-1a9112d2d82e86dd0f01c6cc454ac24badf54a8b.tar.gz
Moved linux baud constants into individual archs.
Having the B* constants in `unix/notbsd/mod.rs` passed CI tests except for powerpc. So we'll try moving into individual arch/ABI that the CI tests cover for now. This commit should pass for the following: - mips32 - mips64 - musl32 - musl64 - android32 - android64 - arm32 - aarch64 - x86 - x86_64 Then we can figure out the powerpc variants. This also prevents potential errors for sparc64 which is not covered by CI.
Diffstat (limited to 'src/unix/notbsd/linux/other/b64/x86_64.rs')
-rw-r--r--src/unix/notbsd/linux/other/b64/x86_64.rs34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/other/b64/x86_64.rs b/src/unix/notbsd/linux/other/b64/x86_64.rs
index d7bf149caa..f93c4f76f1 100644
--- a/src/unix/notbsd/linux/other/b64/x86_64.rs
+++ b/src/unix/notbsd/linux/other/b64/x86_64.rs
@@ -406,6 +406,40 @@ pub const ICANON: ::tcflag_t = 0x00000002;
pub const PENDIN: ::tcflag_t = 0x00004000;
pub const NOFLSH: ::tcflag_t = 0x00000080;
+pub const B0: ::speed_t = 0o000000;
+pub const B50: ::speed_t = 0o000001;
+pub const B75: ::speed_t = 0o000002;
+pub const B110: ::speed_t = 0o000003;
+pub const B134: ::speed_t = 0o000004;
+pub const B150: ::speed_t = 0o000005;
+pub const B200: ::speed_t = 0o000006;
+pub const B300: ::speed_t = 0o000007;
+pub const B600: ::speed_t = 0o000010;
+pub const B1200: ::speed_t = 0o000011;
+pub const B1800: ::speed_t = 0o000012;
+pub const B2400: ::speed_t = 0o000013;
+pub const B4800: ::speed_t = 0o000014;
+pub const B9600: ::speed_t = 0o000015;
+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 B57600: ::speed_t = 0o010001;
+pub const B115200: ::speed_t = 0o010002;
+pub const B230400: ::speed_t = 0o010003;
+pub const B460800: ::speed_t = 0o010004;
+pub const B500000: ::speed_t = 0o010005;
+pub const B576000: ::speed_t = 0o010006;
+pub const B921600: ::speed_t = 0o010007;
+pub const B1000000: ::speed_t = 0o010010;
+pub const B1152000: ::speed_t = 0o010011;
+pub const B1500000: ::speed_t = 0o010012;
+pub const B2000000: ::speed_t = 0o010013;
+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 VEOL: usize = 11;
pub const VEOL2: usize = 16;
pub const VMIN: usize = 6;