aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/bits/linux.zig
diff options
context:
space:
mode:
authorVincent Rischmann <vincent@rischmann.fr>2020-11-19 00:46:35 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-01-11 15:39:36 -0800
commit3468872d8376602fdbfdb5b0d6d582c278ad1990 (patch)
tree7172cb3b28be067c9336069637a846360f0dec31 /lib/std/os/bits/linux.zig
parentec9158305d0131c8f218120f6bd75a95a37cbf18 (diff)
downloadzig-3468872d8376602fdbfdb5b0d6d582c278ad1990.tar.gz
zig-3468872d8376602fdbfdb5b0d6d582c278ad1990.zip
os/bits/linux: add the termios cc bits
Diffstat (limited to 'lib/std/os/bits/linux.zig')
-rw-r--r--lib/std/os/bits/linux.zig81
1 files changed, 81 insertions, 0 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig
index 9a813a2800..8d3d5c49a3 100644
--- a/lib/std/os/bits/linux.zig
+++ b/lib/std/os/bits/linux.zig
@@ -1966,6 +1966,87 @@ pub const B3000000 = 0o0010015;
pub const B3500000 = 0o0010016;
pub const B4000000 = 0o0010017;
+pub usingnamespace switch (builtin.arch) {
+ .powerpc, .powerpc64, .powerpc64le => struct {
+ pub const VINTR = 0;
+ pub const VQUIT = 1;
+ pub const VERASE = 2;
+ pub const VKILL = 3;
+ pub const VEOF = 4;
+ pub const VMIN = 5;
+ pub const VEOL = 6;
+ pub const VTIME = 7;
+ pub const VEOL2 = 8;
+ pub const VSWTC = 9;
+ pub const VWERASE = 10;
+ pub const VREPRINT = 11;
+ pub const VSUSP = 12;
+ pub const VSTART = 13;
+ pub const VSTOP = 14;
+ pub const VLNEXT = 15;
+ pub const VDISCARD = 16;
+ },
+ .sparc, .sparcv9 => struct {
+ pub const VINTR = 0;
+ pub const VQUIT = 1;
+ pub const VERASE = 2;
+ pub const VKILL = 3;
+ pub const VEOF = 4;
+ pub const VEOL = 5;
+ pub const VEOL2 = 6;
+ pub const VSWTC = 7;
+ pub const VSTART = 8;
+ pub const VSTOP = 9;
+ pub const VSUSP = 10;
+ pub const VDSUSP = 11;
+ pub const VREPRINT = 12;
+ pub const VDISCARD = 13;
+ pub const VWERASE = 14;
+ pub const VLNEXT = 15;
+ pub const VMIN = VEOF;
+ pub const VTIME = VEOL;
+ },
+ .mips, .mipsel, .mips64, .mips64el => struct {
+ pub const VINTR = 0;
+ pub const VQUIT = 1;
+ pub const VERASE = 2;
+ pub const VKILL = 3;
+ pub const VMIN = 4;
+ pub const VTIME = 5;
+ pub const VEOL2 = 6;
+ pub const VSWTC = 7;
+ pub const VSWTCH = 7;
+ pub const VSTART = 8;
+ pub const VSTOP = 9;
+ pub const VSUSP = 10;
+ pub const VREPRINT = 12;
+ pub const VDISCARD = 13;
+ pub const VWERASE = 14;
+ pub const VLNEXT = 15;
+ pub const VEOF = 16;
+ pub const VEOL = 17;
+ },
+ else => struct {
+ pub const VINTR = 0;
+ pub const VQUIT = 1;
+ pub const VERASE = 2;
+ pub const VKILL = 3;
+ pub const VEOF = 4;
+ pub const VTIME = 5;
+ pub const VMIN = 6;
+ pub const VSWTC = 7;
+ pub const VSTART = 8;
+ pub const VSTOP = 9;
+ pub const VSUSP = 10;
+ pub const VEOL = 11;
+ pub const VREPRINT = 12;
+ pub const VDISCARD = 13;
+ pub const VWERASE = 14;
+ pub const VLNEXT = 15;
+ pub const VEOL2 = 16;
+ },
+};
+
pub const IGNBRK = 1;
pub const BRKINT = 2;
pub const IGNPAR = 4;