| ... | @@ -89,6 +89,7 @@ pub const user_desc = arch_bits.user_desc; | ... | @@ -89,6 +89,7 @@ pub const user_desc = arch_bits.user_desc; |
| 89 | pub const tls = @import("linux/tls.zig"); | 89 | pub const tls = @import("linux/tls.zig"); |
| 90 | pub const pie = @import("linux/start_pie.zig"); | 90 | pub const pie = @import("linux/start_pie.zig"); |
| 91 | pub const BPF = @import("linux/bpf.zig"); | 91 | pub const BPF = @import("linux/bpf.zig"); |
| | 92 | pub const IOCTL = @import("linux/ioctl.zig"); |
| 92 | | 93 | |
| 93 | pub const MAP = struct { | 94 | pub const MAP = struct { |
| 94 | pub usingnamespace arch_bits.MAP; | 95 | pub usingnamespace arch_bits.MAP; |
| ... | @@ -2585,18 +2586,18 @@ pub const T = struct { | ... | @@ -2585,18 +2586,18 @@ pub const T = struct { |
| 2585 | pub const IOCGSID = 0x5429; | 2586 | pub const IOCGSID = 0x5429; |
| 2586 | pub const IOCGRS485 = 0x542E; | 2587 | pub const IOCGRS485 = 0x542E; |
| 2587 | pub const IOCSRS485 = 0x542F; | 2588 | pub const IOCSRS485 = 0x542F; |
| 2588 | pub const IOCGPTN = 0x80045430; | 2589 | pub const IOCGPTN = IOCTL.IOR('T', 0x30, c_uint); |
| 2589 | pub const IOCSPTLCK = 0x40045431; | 2590 | pub const IOCSPTLCK = IOCTL.IOW('T', 0x31, c_int); |
| 2590 | pub const IOCGDEV = 0x80045432; | 2591 | pub const IOCGDEV = IOCTL.IOR('T', 0x32, c_uint); |
| 2591 | pub const CGETX = 0x5432; | 2592 | pub const CGETX = 0x5432; |
| 2592 | pub const CSETX = 0x5433; | 2593 | pub const CSETX = 0x5433; |
| 2593 | pub const CSETXF = 0x5434; | 2594 | pub const CSETXF = 0x5434; |
| 2594 | pub const CSETXW = 0x5435; | 2595 | pub const CSETXW = 0x5435; |
| 2595 | pub const IOCSIG = 0x40045436; | 2596 | pub const IOCSIG = IOCTL.IOW('T', 0x36, c_int); |
| 2596 | pub const IOCVHANGUP = 0x5437; | 2597 | pub const IOCVHANGUP = 0x5437; |
| 2597 | pub const IOCGPKT = 0x80045438; | 2598 | pub const IOCGPKT = IOCTL.IOR('T', 0x38, c_int); |
| 2598 | pub const IOCGPTLCK = 0x80045439; | 2599 | pub const IOCGPTLCK = IOCTL.IOR('T', 0x39, c_int); |
| 2599 | pub const IOCGEXCL = 0x80045440; | 2600 | pub const IOCGEXCL = IOCTL.IOR('T', 0x40, c_int); |
| 2600 | }; | 2601 | }; |
| 2601 | | 2602 | |
| 2602 | pub const EPOLL = struct { | 2603 | pub const EPOLL = struct { |