mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 20:13:21 +00:00
std.os.linux.T: translate more MIPS values
This fixes the broken terminal for me and thus fixes #13198.
This commit is contained in:
parent
694d8831c3
commit
b83e4d9656
@ -2823,46 +2823,46 @@ pub const DT = struct {
|
||||
|
||||
pub const T = struct {
|
||||
pub const CGETS = if (is_mips) 0x540D else 0x5401;
|
||||
pub const CSETS = 0x5402;
|
||||
pub const CSETSW = 0x5403;
|
||||
pub const CSETSF = 0x5404;
|
||||
pub const CGETA = 0x5405;
|
||||
pub const CSETA = 0x5406;
|
||||
pub const CSETAW = 0x5407;
|
||||
pub const CSETAF = 0x5408;
|
||||
pub const CSBRK = 0x5409;
|
||||
pub const CXONC = 0x540A;
|
||||
pub const CFLSH = 0x540B;
|
||||
pub const IOCEXCL = 0x540C;
|
||||
pub const IOCNXCL = 0x540D;
|
||||
pub const IOCSCTTY = 0x540E;
|
||||
pub const IOCGPGRP = 0x540F;
|
||||
pub const IOCSPGRP = 0x5410;
|
||||
pub const CSETS = if (is_mips) 0x540e else 0x5402;
|
||||
pub const CSETSW = if (is_mips) 0x540f else 0x5403;
|
||||
pub const CSETSF = if (is_mips) 0x5410 else 0x5404;
|
||||
pub const CGETA = if (is_mips) 0x5401 else 0x5405;
|
||||
pub const CSETA = if (is_mips) 0x5402 else 0x5406;
|
||||
pub const CSETAW = if (is_mips) 0x5403 else 0x5407;
|
||||
pub const CSETAF = if (is_mips) 0x5404 else 0x5408;
|
||||
pub const CSBRK = if (is_mips) 0x5405 else 0x5409;
|
||||
pub const CXONC = if (is_mips) 0x5406 else 0x540A;
|
||||
pub const CFLSH = if (is_mips) 0x5407 else 0x540B;
|
||||
pub const IOCEXCL = if (is_mips) 0x740d else 0x540C;
|
||||
pub const IOCNXCL = if (is_mips) 0x740e else 0x540D;
|
||||
pub const IOCSCTTY = if (is_mips) 0x7472 else 0x540E;
|
||||
pub const IOCGPGRP = if (is_mips) 0x5472 else 0x540F;
|
||||
pub const IOCSPGRP = if (is_mips) 0x741d else 0x5410;
|
||||
pub const IOCOUTQ = if (is_mips) 0x7472 else 0x5411;
|
||||
pub const IOCSTI = 0x5412;
|
||||
pub const IOCSTI = if (is_mips) 0x5472 else 0x5412;
|
||||
pub const IOCGWINSZ = if (is_mips or is_ppc64) 0x40087468 else 0x5413;
|
||||
pub const IOCSWINSZ = if (is_mips or is_ppc64) 0x80087467 else 0x5414;
|
||||
pub const IOCMGET = 0x5415;
|
||||
pub const IOCMBIS = 0x5416;
|
||||
pub const IOCMBIC = 0x5417;
|
||||
pub const IOCMSET = 0x5418;
|
||||
pub const IOCGSOFTCAR = 0x5419;
|
||||
pub const IOCSSOFTCAR = 0x541A;
|
||||
pub const IOCMGET = if (is_mips) 0x741d else 0x5415;
|
||||
pub const IOCMBIS = if (is_mips) 0x741b else 0x5416;
|
||||
pub const IOCMBIC = if (is_mips) 0x741c else 0x5417;
|
||||
pub const IOCMSET = if (is_mips) 0x741a else 0x5418;
|
||||
pub const IOCGSOFTCAR = if (is_mips) 0x5481 else 0x5419;
|
||||
pub const IOCSSOFTCAR = if (is_mips) 0x5482 else 0x541A;
|
||||
pub const FIONREAD = if (is_mips) 0x467F else 0x541B;
|
||||
pub const IOCINQ = FIONREAD;
|
||||
pub const IOCLINUX = 0x541C;
|
||||
pub const IOCCONS = 0x541D;
|
||||
pub const IOCGSERIAL = 0x541E;
|
||||
pub const IOCSSERIAL = 0x541F;
|
||||
pub const IOCPKT = 0x5420;
|
||||
pub const FIONBIO = 0x5421;
|
||||
pub const IOCNOTTY = 0x5422;
|
||||
pub const IOCSETD = 0x5423;
|
||||
pub const IOCGETD = 0x5424;
|
||||
pub const CSBRKP = 0x5425;
|
||||
pub const IOCLINUX = if (is_mips) 0x5483 else 0x541C;
|
||||
pub const IOCCONS = if (is_mips) IOCTL.IOW('t', 120, c_int) else 0x541D;
|
||||
pub const IOCGSERIAL = if (is_mips) 0x5484 else 0x541E;
|
||||
pub const IOCSSERIAL = if (is_mips) 0x5485 else 0x541F;
|
||||
pub const IOCPKT = if (is_mips) 0x5470 else 0x5420;
|
||||
pub const FIONBIO = if (is_mips) 0x667e else 0x5421;
|
||||
pub const IOCNOTTY = if (is_mips) 0x5471 else 0x5422;
|
||||
pub const IOCSETD = if (is_mips) 0x7401 else 0x5423;
|
||||
pub const IOCGETD = if (is_mips) 0x7400 else 0x5424;
|
||||
pub const CSBRKP = if (is_mips) 0x5486 else 0x5425;
|
||||
pub const IOCSBRK = 0x5427;
|
||||
pub const IOCCBRK = 0x5428;
|
||||
pub const IOCGSID = 0x5429;
|
||||
pub const IOCGSID = if (is_mips) 0x7416 else 0x5429;
|
||||
pub const IOCGRS485 = 0x542E;
|
||||
pub const IOCSRS485 = 0x542F;
|
||||
pub const IOCGPTN = IOCTL.IOR('T', 0x30, c_uint);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user