diff --git a/lib/std/c/dragonfly.zig b/lib/std/c/dragonfly.zig index 4070ec9ea8..9e4f27bf04 100644 --- a/lib/std/c/dragonfly.zig +++ b/lib/std/c/dragonfly.zig @@ -557,6 +557,13 @@ pub const NOTE_FFCTRLMASK = 3221225472; pub const NOTE_FFCOPY = 3221225472; pub const NOTE_PCTRLMASK = 4026531840; +pub const TCSA = enum(c_uint) { + NOW, + DRAIN, + FLUSH, + _, +}; + pub const stack_t = extern struct { sp: [*]u8, size: isize, diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index 561b940a81..94854cf090 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -1153,6 +1153,13 @@ pub const T = struct { pub const IOCSIG = 0x2004745f; }; +pub const TCSA = enum(c_uint) { + NOW, + DRAIN, + FLUSH, + _, +}; + pub const winsize = extern struct { ws_row: u16, ws_col: u16, diff --git a/lib/std/c/netbsd.zig b/lib/std/c/netbsd.zig index 3d78230290..5961b3f490 100644 --- a/lib/std/c/netbsd.zig +++ b/lib/std/c/netbsd.zig @@ -806,12 +806,11 @@ pub const T = struct { pub const IOCXMTFRAME = 0x80087444; }; -// Commands passed to tcsetattr() for setting the termios structure. -pub const TCSA = struct { - pub const NOW = 0; // make change immediate - pub const DRAIN = 1; // drain output, then chage - pub const FLUSH = 2; // drain output, flush input - pub const SOFT = 0x10; // flag - don't alter h.w. state +pub const TCSA = enum(c_uint) { + NOW, + DRAIN, + FLUSH, + _, }; pub const TCIFLUSH = 1; diff --git a/lib/std/c/openbsd.zig b/lib/std/c/openbsd.zig index 21f025f8f0..4b02517bef 100644 --- a/lib/std/c/openbsd.zig +++ b/lib/std/c/openbsd.zig @@ -768,12 +768,11 @@ pub const AUTH = struct { pub const ALLOW: c_int = (OKAY | ROOTOKAY | SECURE); }; -// Commands passed to tcsetattr() for setting the termios structure. -pub const TCSA = struct { - pub const NOW = 0; // make change immediate - pub const DRAIN = 1; // drain output, then change - pub const FLUSH = 2; // drain output, flush input - pub const SOFT = 0x10; // flag - don't alter h.w. state +pub const TCSA = enum(c_uint) { + NOW, + DRAIN, + FLUSH, + _, }; pub const TCIFLUSH = 1;