mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 17:15:37 +00:00
os/bits/linux: add the termios cc bits
This commit is contained in:
parent
ec9158305d
commit
3468872d83
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user