Commit 2ff64c7cb2
Changed files (4)
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,
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,
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;
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;