Skip to content

Commit bd7dfd1

Browse files
committed
Add termios control character indices
1 parent 14a3a11 commit bd7dfd1

File tree

16 files changed

+32
-0
lines changed

16 files changed

+32
-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
pub const ONOCR: ::tcflag_t = 0x20;
866867
pub const ONLRET: ::tcflag_t = 0x40;

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
@@ -626,6 +626,7 @@ pub const ISIG: ::tcflag_t = 0x00000001;
626626
pub const ICANON: ::tcflag_t = 0x00000002;
627627
pub const PENDIN: ::tcflag_t = 0x00004000;
628628
pub const NOFLSH: ::tcflag_t = 0x00000080;
629+
pub const VSWTC: usize = 7;
629630
pub const OLCUC: ::tcflag_t = 0o000002;
630631
pub const NLDLY: ::tcflag_t = 0o000400;
631632
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
@@ -492,6 +492,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
492492
pub const NOFLSH: ::tcflag_t = 0x00000080;
493493
pub const CIBAUD: ::tcflag_t = 0o02003600000;
494494
pub const CBAUDEX: ::tcflag_t = 0o010000;
495+
pub const VSWTC: usize = 7;
495496
pub const OLCUC: ::tcflag_t = 0o000002;
496497
pub const NLDLY: ::tcflag_t = 0o000400;
497498
pub const CRDLY: ::tcflag_t = 0o003000;

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,8 @@ pub const ITIMER_PROF: ::c_int = 2;
711711
pub const XATTR_CREATE: ::c_int = 0x1;
712712
pub const XATTR_REPLACE: ::c_int = 0x2;
713713

714+
pub const _POSIX_VDISABLE: ::cc_t = 0;
715+
714716
// On Linux, libc doesn't define this constant, libattr does instead.
715717
// We still define it for Linux as it's defined by libc on other platforms,
716718
// and it's mentioned in the man pages for getxattr and setxattr.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ pub const NOFLSH: ::tcflag_t = 0x00000080;
283283
pub const CMSPAR: ::tcflag_t = 0o10000000000;
284284
pub const CIBAUD: ::tcflag_t = 0o02003600000;
285285
pub const CBAUDEX: ::tcflag_t = 0o010000;
286+
pub const VSWTC: usize = 7;
286287
pub const OLCUC: ::tcflag_t = 0o000002;
287288
pub const NLDLY: ::tcflag_t = 0o000400;
288289
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
@@ -143,6 +143,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
143143
pub const NOFLSH: ::tcflag_t = 0x00000080;
144144
pub const CIBAUD: ::tcflag_t = 0o02003600000;
145145
pub const CBAUDEX: ::tcflag_t = 0o010000;
146+
pub const VSWTC: usize = 7;
146147
pub const OLCUC: ::tcflag_t = 0o000002;
147148
pub const NLDLY: ::tcflag_t = 0o000400;
148149
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
@@ -144,6 +144,7 @@ pub const ISIG: ::tcflag_t = 0x80;
144144
pub const ICANON: ::tcflag_t = 0x100;
145145
pub const PENDIN: ::tcflag_t = 0x20000000;
146146
pub const NOFLSH: ::tcflag_t = 0x80000000;
147+
pub const VSWTC: usize = 9;
147148
pub const OLCUC: ::tcflag_t = 0o000004;
148149
pub const NLDLY: ::tcflag_t = 0o001400;
149150
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
@@ -249,6 +249,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
249249
pub const NOFLSH: ::tcflag_t = 0x00000080;
250250
pub const CIBAUD: ::tcflag_t = 0o02003600000;
251251
pub const CBAUDEX: ::tcflag_t = 0o010000;
252+
pub const VSWTC: usize = 7;
252253
pub const OLCUC: ::tcflag_t = 0o000002;
253254
pub const NLDLY: ::tcflag_t = 0o000400;
254255
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
@@ -387,6 +387,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
387387
pub const NOFLSH: ::tcflag_t = 0x00000080;
388388
pub const CIBAUD: ::tcflag_t = 0o02003600000;
389389
pub const CBAUDEX: ::tcflag_t = 0o010000;
390+
pub const VSWTC: usize = 7;
390391
pub const OLCUC: ::tcflag_t = 0o000002;
391392
pub const NLDLY: ::tcflag_t = 0o000400;
392393
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
@@ -383,6 +383,7 @@ pub const ISIG: ::tcflag_t = 0x80;
383383
pub const ICANON: ::tcflag_t = 0x100;
384384
pub const PENDIN: ::tcflag_t = 0x20000000;
385385
pub const NOFLSH: ::tcflag_t = 0x80000000;
386+
pub const VSWTC: usize = 9;
386387
pub const OLCUC: ::tcflag_t = 0o000004;
387388
pub const NLDLY: ::tcflag_t = 0o001400;
388389
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
@@ -344,6 +344,7 @@ pub const PENDIN: ::tcflag_t = 0x4000;
344344
pub const NOFLSH: ::tcflag_t = 0x80;
345345
pub const CIBAUD: ::tcflag_t = 0o02003600000;
346346
pub const CBAUDEX: ::tcflag_t = 0x00001000;
347+
pub const VSWTC: usize = 7;
347348
pub const OLCUC: ::tcflag_t = 0o000002;
348349
pub const NLDLY: ::tcflag_t = 0o000400;
349350
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
@@ -507,6 +507,7 @@ pub const PENDIN: ::tcflag_t = 0x00004000;
507507
pub const NOFLSH: ::tcflag_t = 0x00000080;
508508
pub const CIBAUD: ::tcflag_t = 0o02003600000;
509509
pub const CBAUDEX: ::tcflag_t = 0o010000;
510+
pub const VSWTC: usize = 7;
510511
pub const OLCUC: ::tcflag_t = 0o000002;
511512
pub const NLDLY: ::tcflag_t = 0o000400;
512513
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;

0 commit comments

Comments
 (0)