Skip to content

Commit 13c7558

Browse files
committed
Add termios control character indices
1 parent 1f1f9d4 commit 13c7558

File tree

16 files changed

+31
-0
lines changed

16 files changed

+31
-0
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ pub const AT_REMOVEDIR: ::c_int = 2;
412412
pub const AT_EACCESS: ::c_int = 4;
413413
pub const AT_SYMLINK_FOLLOW: ::c_int = 8;
414414

415+
pub const VCHECKPT: usize = 19;
416+
415417
extern {
416418
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
417419
-> ::c_int;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ pub const EXTB: speed_t = 38400;
861861
pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
862862

863863
pub const CRTSCTS: ::tcflag_t = 0x00030000;
864+
pub const VERASE2: usize = 7;
864865
pub const OCRNL: ::tcflag_t = 0x10;
865866

866867
f! {

src/unix/bsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,15 @@ pub const VREPRINT: usize = 6;
233233
pub const VINTR: usize = 8;
234234
pub const VQUIT: usize = 9;
235235
pub const VSUSP: usize = 10;
236+
pub const VDSUSP: usize = 11;
236237
pub const VSTART: usize = 12;
237238
pub const VSTOP: usize = 13;
238239
pub const VLNEXT: usize = 14;
239240
pub const VDISCARD: usize = 15;
240241
pub const VMIN: usize = 16;
241242
pub const VTIME: usize = 17;
243+
pub const VSTATUS: usize = 18;
244+
pub const _POSIX_VDISABLE: ::cc_t = 0xff;
242245
pub const IGNBRK: ::tcflag_t = 0x00000001;
243246
pub const BRKINT: ::tcflag_t = 0x00000002;
244247
pub const IGNPAR: ::tcflag_t = 0x00000004;

src/unix/haiku/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,19 @@ pub const P_ALL: idtype_t = 0;
686686
pub const P_PID: idtype_t = 1;
687687
pub const P_PGID: idtype_t = 2;
688688

689+
pub const VINTR: usize = 0;
690+
pub const VQUIT: usize = 1;
691+
pub const VERASE: usize = 2;
692+
pub const VKILL: usize = 3;
693+
pub const VEOF: usize = 4;
694+
pub const VEOL: usize = 5;
695+
pub const VMIN: usize = 4;
696+
pub const VTIME: usize = 5;
697+
pub const VEOL2: usize = 6;
698+
pub const VSWTCH: usize = 7;
699+
pub const VSTART: usize = 8;
700+
pub const VSTOP: usize = 9;
701+
pub const VSUSP: usize = 10;
689702
pub const OLCUC: ::tcflag_t = 0o000002;
690703
pub const OCRNL: ::tcflag_t = 0o000010;
691704
pub const ONOCR: ::tcflag_t = 0o000020;

src/unix/notbsd/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ pub const ISIG: ::tcflag_t = 0x00000001;
627627
pub const ICANON: ::tcflag_t = 0x00000002;
628628
pub const PENDIN: ::tcflag_t = 0x00004000;
629629
pub const NOFLSH: ::tcflag_t = 0x00000080;
630+
pub const VSWTC: usize = 7;
630631
pub const OLCUC: ::tcflag_t = 0o000002;
631632
pub const NLDLY: ::tcflag_t = 0o000400;
632633
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/mips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
493493
pub const NOFLSH: ::tcflag_t = 0x00000080;
494494
pub const CIBAUD: ::tcflag_t = 0o02003600000;
495495
pub const CBAUDEX: ::tcflag_t = 0o010000;
496+
pub const VSWTC: usize = 7;
496497
pub const OLCUC: ::tcflag_t = 0o000002;
497498
pub const NLDLY: ::tcflag_t = 0o000400;
498499
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/musl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ pub const NOFLSH: ::tcflag_t = 0x00000080;
284284
pub const CMSPAR: ::tcflag_t = 0o10000000000;
285285
pub const CIBAUD: ::tcflag_t = 0o02003600000;
286286
pub const CBAUDEX: ::tcflag_t = 0o010000;
287+
pub const VSWTC: usize = 7;
287288
pub const OLCUC: ::tcflag_t = 0o000002;
288289
pub const NLDLY: ::tcflag_t = 0o000400;
289290
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/other/b32/arm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
144144
pub const NOFLSH: ::tcflag_t = 0x00000080;
145145
pub const CIBAUD: ::tcflag_t = 0o02003600000;
146146
pub const CBAUDEX: ::tcflag_t = 0o010000;
147+
pub const VSWTC: usize = 7;
147148
pub const OLCUC: ::tcflag_t = 0o000002;
148149
pub const NLDLY: ::tcflag_t = 0o000400;
149150
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/other/b32/powerpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ pub const ISIG: ::tcflag_t = 0x80;
145145
pub const ICANON: ::tcflag_t = 0x100;
146146
pub const PENDIN: ::tcflag_t = 0x20000000;
147147
pub const NOFLSH: ::tcflag_t = 0x80000000;
148+
pub const VSWTC: usize = 9;
148149
pub const OLCUC: ::tcflag_t = 0o000004;
149150
pub const NLDLY: ::tcflag_t = 0o001400;
150151
pub const CRDLY: ::tcflag_t = 0o030000;

src/unix/notbsd/linux/other/b32/x86.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
250250
pub const NOFLSH: ::tcflag_t = 0x00000080;
251251
pub const CIBAUD: ::tcflag_t = 0o02003600000;
252252
pub const CBAUDEX: ::tcflag_t = 0o010000;
253+
pub const VSWTC: usize = 7;
253254
pub const OLCUC: ::tcflag_t = 0o000002;
254255
pub const NLDLY: ::tcflag_t = 0o000400;
255256
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/other/b64/aarch64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
388388
pub const NOFLSH: ::tcflag_t = 0x00000080;
389389
pub const CIBAUD: ::tcflag_t = 0o02003600000;
390390
pub const CBAUDEX: ::tcflag_t = 0o010000;
391+
pub const VSWTC: usize = 7;
391392
pub const OLCUC: ::tcflag_t = 0o000002;
392393
pub const NLDLY: ::tcflag_t = 0o000400;
393394
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/other/b64/powerpc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ pub const ISIG: ::tcflag_t = 0x80;
384384
pub const ICANON: ::tcflag_t = 0x100;
385385
pub const PENDIN: ::tcflag_t = 0x20000000;
386386
pub const NOFLSH: ::tcflag_t = 0x80000000;
387+
pub const VSWTC: usize = 9;
387388
pub const OLCUC: ::tcflag_t = 0o000004;
388389
pub const NLDLY: ::tcflag_t = 0o001400;
389390
pub const CRDLY: ::tcflag_t = 0o030000;

src/unix/notbsd/linux/other/b64/sparc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ pub const PENDIN: ::tcflag_t = 0x4000;
345345
pub const NOFLSH: ::tcflag_t = 0x80;
346346
pub const CIBAUD: ::tcflag_t = 0o02003600000;
347347
pub const CBAUDEX: ::tcflag_t = 0x00001000;
348+
pub const VSWTC: usize = 7;
348349
pub const OLCUC: ::tcflag_t = 0o000002;
349350
pub const NLDLY: ::tcflag_t = 0o000400;
350351
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/other/b64/x86_64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
508508
pub const NOFLSH: ::tcflag_t = 0x00000080;
509509
pub const CIBAUD: ::tcflag_t = 0o02003600000;
510510
pub const CBAUDEX: ::tcflag_t = 0o010000;
511+
pub const VSWTC: usize = 7;
511512
pub const OLCUC: ::tcflag_t = 0o000002;
512513
pub const NLDLY: ::tcflag_t = 0o000400;
513514
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/s390x.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ pub const SYS_gettid: ::c_long = 236;
693693
pub const SYS_perf_event_open: ::c_long = 331;
694694

695695
pub const CMSPAR: ::tcflag_t = 0o10000000000;
696+
pub const VSWTC: usize = 7;
696697
pub const OLCUC: ::tcflag_t = 0o000002;
697698
pub const NLDLY: ::tcflag_t = 0o000400;
698699
pub const NL1: ::tcflag_t = 0x00000100;

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ pub const TAB0: ::tcflag_t = 0o000000;
684684
pub const BS0: ::tcflag_t = 0o000000;
685685
pub const FF0: ::tcflag_t = 0o000000;
686686
pub const VT0: ::tcflag_t = 0o000000;
687+
pub const _POSIX_VDISABLE: ::cc_t = 0;
687688

688689
pub const CLONE_VM: ::c_int = 0x100;
689690
pub const CLONE_FS: ::c_int = 0x200;

0 commit comments

Comments
 (0)