mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
std.os.termios: add/fix std.c.TCSA for BSDs
This commit is contained in:
parent
50cdb75034
commit
2ff64c7cb2
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user