| author | |
| committer | |
| log | 2ff64c7cb235c549f5da60a9d2e785cf2c51c6ba |
| tree | c8adfabe812fbff8598b389bb48f8e8af5252286 |
| parent | 50cdb750346b80ecb50c5454ed99996762b06b96 |
| signature |
4 files changed, 24 insertions(+), 12 deletions(-)
lib/std/c/dragonfly.zig+7| ... | @@ -557,6 +557,13 @@ pub const NOTE_FFCTRLMASK = 3221225472; | ... | @@ -557,6 +557,13 @@ pub const NOTE_FFCTRLMASK = 3221225472; |
| 557 | pub const NOTE_FFCOPY = 3221225472; | 557 | pub const NOTE_FFCOPY = 3221225472; |
| 558 | pub const NOTE_PCTRLMASK = 4026531840; | 558 | pub const NOTE_PCTRLMASK = 4026531840; |
| 559 | 559 | ||
| 560 | pub const TCSA = enum(c_uint) { | ||
| 561 | NOW, | ||
| 562 | DRAIN, | ||
| 563 | FLUSH, | ||
| 564 | _, | ||
| 565 | }; | ||
| 566 | |||
| 560 | pub const stack_t = extern struct { | 567 | pub const stack_t = extern struct { |
| 561 | sp: [*]u8, | 568 | sp: [*]u8, |
| 562 | size: isize, | 569 | size: isize, |
lib/std/c/freebsd.zig+7| ... | @@ -1153,6 +1153,13 @@ pub const T = struct { | ... | @@ -1153,6 +1153,13 @@ pub const T = struct { |
| 1153 | pub const IOCSIG = 0x2004745f; | 1153 | pub const IOCSIG = 0x2004745f; |
| 1154 | }; | 1154 | }; |
| 1155 | 1155 | ||
| 1156 | pub const TCSA = enum(c_uint) { | ||
| 1157 | NOW, | ||
| 1158 | DRAIN, | ||
| 1159 | FLUSH, | ||
| 1160 | _, | ||
| 1161 | }; | ||
| 1162 | |||
| 1156 | pub const winsize = extern struct { | 1163 | pub const winsize = extern struct { |
| 1157 | ws_row: u16, | 1164 | ws_row: u16, |
| 1158 | ws_col: u16, | 1165 | ws_col: u16, |
lib/std/c/netbsd.zig+5-6| ... | @@ -806,12 +806,11 @@ pub const T = struct { | ... | @@ -806,12 +806,11 @@ pub const T = struct { |
| 806 | pub const IOCXMTFRAME = 0x80087444; | 806 | pub const IOCXMTFRAME = 0x80087444; |
| 807 | }; | 807 | }; |
| 808 | 808 | ||
| 809 | // Commands passed to tcsetattr() for setting the termios structure. | 809 | pub const TCSA = enum(c_uint) { |
| 810 | pub const TCSA = struct { | 810 | NOW, |
| 811 | pub const NOW = 0; // make change immediate | 811 | DRAIN, |
| 812 | pub const DRAIN = 1; // drain output, then chage | 812 | FLUSH, |
| 813 | pub const FLUSH = 2; // drain output, flush input | 813 | _, |
| 814 | pub const SOFT = 0x10; // flag - don't alter h.w. state | ||
| 815 | }; | 814 | }; |
| 816 | 815 | ||
| 817 | pub const TCIFLUSH = 1; | 816 | pub const TCIFLUSH = 1; |
lib/std/c/openbsd.zig+5-6| ... | @@ -768,12 +768,11 @@ pub const AUTH = struct { | ... | @@ -768,12 +768,11 @@ pub const AUTH = struct { |
| 768 | pub const ALLOW: c_int = (OKAY | ROOTOKAY | SECURE); | 768 | pub const ALLOW: c_int = (OKAY | ROOTOKAY | SECURE); |
| 769 | }; | 769 | }; |
| 770 | 770 | ||
| 771 | // Commands passed to tcsetattr() for setting the termios structure. | 771 | pub const TCSA = enum(c_uint) { |
| 772 | pub const TCSA = struct { | 772 | NOW, |
| 773 | pub const NOW = 0; // make change immediate | 773 | DRAIN, |
| 774 | pub const DRAIN = 1; // drain output, then change | 774 | FLUSH, |
| 775 | pub const FLUSH = 2; // drain output, flush input | 775 | _, |
| 776 | pub const SOFT = 0x10; // flag - don't alter h.w. state | ||
| 777 | }; | 776 | }; |
| 778 | 777 | ||
| 779 | pub const TCIFLUSH = 1; | 778 | pub const TCIFLUSH = 1; |