File tree 4 files changed +24
-12
lines changed
4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,13 @@ pub const NOTE_FFCTRLMASK = 3221225472;
557
557
pub const NOTE_FFCOPY = 3221225472 ;
558
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
567
pub const stack_t = extern struct {
561
568
sp : [* ]u8 ,
562
569
size : isize ,
Original file line number Diff line number Diff line change @@ -1153,6 +1153,13 @@ pub const T = struct {
1153
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
1163
pub const winsize = extern struct {
1157
1164
ws_row : u16 ,
1158
1165
ws_col : u16 ,
Original file line number Diff line number Diff line change @@ -806,12 +806,11 @@ pub const T = struct {
806
806
pub const IOCXMTFRAME = 0x80087444 ;
807
807
};
808
808
809
- // Commands passed to tcsetattr() for setting the termios structure.
810
- pub const TCSA = struct {
811
- pub const NOW = 0 ; // make change immediate
812
- pub const DRAIN = 1 ; // drain output, then chage
813
- pub const FLUSH = 2 ; // drain output, flush input
814
- pub const SOFT = 0x10 ; // flag - don't alter h.w. state
809
+ pub const TCSA = enum (c_uint ) {
810
+ NOW ,
811
+ DRAIN ,
812
+ FLUSH ,
813
+ _ ,
815
814
};
816
815
817
816
pub const TCIFLUSH = 1 ;
Original file line number Diff line number Diff line change @@ -768,12 +768,11 @@ pub const AUTH = struct {
768
768
pub const ALLOW : c_int = (OKAY | ROOTOKAY | SECURE );
769
769
};
770
770
771
- // Commands passed to tcsetattr() for setting the termios structure.
772
- pub const TCSA = struct {
773
- pub const NOW = 0 ; // make change immediate
774
- pub const DRAIN = 1 ; // drain output, then change
775
- pub const FLUSH = 2 ; // drain output, flush input
776
- pub const SOFT = 0x10 ; // flag - don't alter h.w. state
771
+ pub const TCSA = enum (c_uint ) {
772
+ NOW ,
773
+ DRAIN ,
774
+ FLUSH ,
775
+ _ ,
777
776
};
778
777
779
778
pub const TCIFLUSH = 1 ;
You can’t perform that action at this time.
0 commit comments