mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
Adds the `tcflag_t` type to the termios constants. This is made to allow bitwise operations on the termios constants without an integer cast, e.g.: ```zig var raw = try std.os.tcgetattr(std.os.STDIN_FILENO); raw.lflag &= std.os.linux.ECHO | std.os.linux.ICANON; ``` instead of ```zig var raw = try std.os.tcgetattr(std.os.STDIN_FILENO); raw.lflag &= ~@intCast(u32, std.os.linux.ECHO | std.os.linux.ICANON); ``` Contributes to #10181 |
||
|---|---|---|
| .. | ||
| darwin.zig | ||
| dragonfly.zig | ||
| emscripten.zig | ||
| freebsd.zig | ||
| fuchsia.zig | ||
| haiku.zig | ||
| hermit.zig | ||
| linux.zig | ||
| minix.zig | ||
| netbsd.zig | ||
| openbsd.zig | ||
| solaris.zig | ||
| tokenizer.zig | ||
| wasi.zig | ||
| windows.zig | ||