diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-12 16:43:51 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-02-12 16:43:51 -0700 |
| commit | 47643cc5cc4db4c0fb2aaa7f37cedb049fce7def (patch) | |
| tree | b1028914cc897c70278973d47239dfb41efb57c1 /lib/std/os.zig | |
| parent | 0c88f927f161224f5c5ce2b12a76133a421af081 (diff) | |
| download | zig-47643cc5cc4db4c0fb2aaa7f37cedb049fce7def.tar.gz zig-47643cc5cc4db4c0fb2aaa7f37cedb049fce7def.zip | |
std.os.termios: add type safety to iflag field
This creates `tc_iflag_t` even though such a type is not defined by
libc.
I also collected the missing flag bits from all the operating systems.
Diffstat (limited to 'lib/std/os.zig')
| -rw-r--r-- | lib/std/os.zig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index f686e867ff..de994e4f14 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -106,7 +106,6 @@ pub const MFD = system.MFD; pub const MMAP2_UNIT = system.MMAP2_UNIT; pub const MSG = system.MSG; pub const NAME_MAX = system.NAME_MAX; -pub const NCCS = system.NCCS; pub const O = system.O; pub const PATH_MAX = system.PATH_MAX; pub const POLL = system.POLL; @@ -173,9 +172,7 @@ pub const siginfo_t = system.siginfo_t; pub const sigset_t = system.sigset_t; pub const sockaddr = system.sockaddr; pub const socklen_t = system.socklen_t; -pub const speed_t = system.speed_t; pub const stack_t = system.stack_t; -pub const tcflag_t = system.tcflag_t; pub const termios = system.termios; pub const time_t = system.time_t; pub const timespec = system.timespec; @@ -187,6 +184,11 @@ pub const uid_t = system.uid_t; pub const user_desc = system.user_desc; pub const utsname = system.utsname; +pub const NCCS = system.NCCS; +pub const speed_t = system.speed_t; +pub const tcflag_t = system.tcflag_t; +pub const tc_iflag_t = system.tc_iflag_t; + pub const F_OK = system.F_OK; pub const R_OK = system.R_OK; pub const W_OK = system.W_OK; |
