Skip to content

Commit 8fa7876

Browse files
committed
Correct datatype for various termios constants
1 parent 66f00d2 commit 8fa7876

File tree

13 files changed

+132
-132
lines changed

13 files changed

+132
-132
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,34 +2446,34 @@ pub const NOTE_TRACK: ::uint32_t = 0x00000001;
24462446
pub const NOTE_TRACKERR: ::uint32_t = 0x00000002;
24472447
pub const NOTE_CHILD: ::uint32_t = 0x00000004;
24482448

2449-
pub const OCRNL: ::c_int = 0x00000010;
2450-
pub const ONOCR: ::c_int = 0x00000020;
2451-
pub const ONLRET: ::c_int = 0x00000040;
2452-
pub const OFILL: ::c_int = 0x00000080;
2453-
pub const NLDLY: ::c_int = 0x00000300;
2454-
pub const TABDLY: ::c_int = 0x00000c04;
2455-
pub const CRDLY: ::c_int = 0x00003000;
2456-
pub const FFDLY: ::c_int = 0x00004000;
2457-
pub const BSDLY: ::c_int = 0x00008000;
2458-
pub const VTDLY: ::c_int = 0x00010000;
2459-
pub const OFDEL: ::c_int = 0x00020000;
2460-
2461-
pub const NL0: ::c_int = 0x00000000;
2462-
pub const NL1: ::c_int = 0x00000100;
2463-
pub const TAB0: ::c_int = 0x00000000;
2464-
pub const TAB1: ::c_int = 0x00000400;
2465-
pub const TAB2: ::c_int = 0x00000800;
2466-
pub const CR0: ::c_int = 0x00000000;
2467-
pub const CR1: ::c_int = 0x00001000;
2468-
pub const CR2: ::c_int = 0x00002000;
2469-
pub const CR3: ::c_int = 0x00003000;
2470-
pub const FF0: ::c_int = 0x00000000;
2471-
pub const FF1: ::c_int = 0x00004000;
2472-
pub const BS0: ::c_int = 0x00000000;
2473-
pub const BS1: ::c_int = 0x00008000;
2474-
pub const TAB3: ::c_int = 0x00000004;
2475-
pub const VT0: ::c_int = 0x00000000;
2476-
pub const VT1: ::c_int = 0x00010000;
2449+
pub const OCRNL: ::tcflag_t = 0x00000010;
2450+
pub const ONOCR: ::tcflag_t = 0x00000020;
2451+
pub const ONLRET: ::tcflag_t = 0x00000040;
2452+
pub const OFILL: ::tcflag_t = 0x00000080;
2453+
pub const NLDLY: ::tcflag_t = 0x00000300;
2454+
pub const TABDLY: ::tcflag_t = 0x00000c04;
2455+
pub const CRDLY: ::tcflag_t = 0x00003000;
2456+
pub const FFDLY: ::tcflag_t = 0x00004000;
2457+
pub const BSDLY: ::tcflag_t = 0x00008000;
2458+
pub const VTDLY: ::tcflag_t = 0x00010000;
2459+
pub const OFDEL: ::tcflag_t = 0x00020000;
2460+
2461+
pub const NL0: ::tcflag_t = 0x00000000;
2462+
pub const NL1: ::tcflag_t = 0x00000100;
2463+
pub const TAB0: ::tcflag_t = 0x00000000;
2464+
pub const TAB1: ::tcflag_t = 0x00000400;
2465+
pub const TAB2: ::tcflag_t = 0x00000800;
2466+
pub const CR0: ::tcflag_t = 0x00000000;
2467+
pub const CR1: ::tcflag_t = 0x00001000;
2468+
pub const CR2: ::tcflag_t = 0x00002000;
2469+
pub const CR3: ::tcflag_t = 0x00003000;
2470+
pub const FF0: ::tcflag_t = 0x00000000;
2471+
pub const FF1: ::tcflag_t = 0x00004000;
2472+
pub const BS0: ::tcflag_t = 0x00000000;
2473+
pub const BS1: ::tcflag_t = 0x00008000;
2474+
pub const TAB3: ::tcflag_t = 0x00000004;
2475+
pub const VT0: ::tcflag_t = 0x00000000;
2476+
pub const VT1: ::tcflag_t = 0x00010000;
24772477
pub const IUTF8: ::tcflag_t = 0x00004000;
24782478
pub const CRTSCTS: ::tcflag_t = 0x00030000;
24792479

src/unix/notbsd/android/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,15 +1119,15 @@ pub const MCL_CURRENT: ::c_int = 0x0001;
11191119
pub const MCL_FUTURE: ::c_int = 0x0002;
11201120

11211121
pub const CBAUD: ::tcflag_t = 0o0010017;
1122-
pub const TAB1: ::c_int = 0x00000800;
1123-
pub const TAB2: ::c_int = 0x00001000;
1124-
pub const TAB3: ::c_int = 0x00001800;
1125-
pub const CR1: ::c_int = 0x00000200;
1126-
pub const CR2: ::c_int = 0x00000400;
1127-
pub const CR3: ::c_int = 0x00000600;
1128-
pub const FF1: ::c_int = 0x00008000;
1129-
pub const BS1: ::c_int = 0x00002000;
1130-
pub const VT1: ::c_int = 0x00004000;
1122+
pub const TAB1: ::tcflag_t = 0x00000800;
1123+
pub const TAB2: ::tcflag_t = 0x00001000;
1124+
pub const TAB3: ::tcflag_t = 0x00001800;
1125+
pub const CR1: ::tcflag_t = 0x00000200;
1126+
pub const CR2: ::tcflag_t = 0x00000400;
1127+
pub const CR3: ::tcflag_t = 0x00000600;
1128+
pub const FF1: ::tcflag_t = 0x00008000;
1129+
pub const BS1: ::tcflag_t = 0x00002000;
1130+
pub const VT1: ::tcflag_t = 0x00004000;
11311131
pub const VWERASE: usize = 14;
11321132
pub const VREPRINT: usize = 12;
11331133
pub const VSUSP: usize = 10;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -591,15 +591,15 @@ pub const MCL_FUTURE: ::c_int = 0x0002;
591591
pub const SIGSTKSZ: ::size_t = 8192;
592592
pub const MINSIGSTKSZ: ::size_t = 2048;
593593
pub const CBAUD: ::tcflag_t = 0o0010017;
594-
pub const TAB1: ::c_int = 0x00000800;
595-
pub const TAB2: ::c_int = 0x00001000;
596-
pub const TAB3: ::c_int = 0x00001800;
597-
pub const CR1: ::c_int = 0x00000200;
598-
pub const CR2: ::c_int = 0x00000400;
599-
pub const CR3: ::c_int = 0x00000600;
600-
pub const FF1: ::c_int = 0x00008000;
601-
pub const BS1: ::c_int = 0x00002000;
602-
pub const VT1: ::c_int = 0x00004000;
594+
pub const TAB1: ::tcflag_t = 0x00000800;
595+
pub const TAB2: ::tcflag_t = 0x00001000;
596+
pub const TAB3: ::tcflag_t = 0x00001800;
597+
pub const CR1: ::tcflag_t = 0x00000200;
598+
pub const CR2: ::tcflag_t = 0x00000400;
599+
pub const CR3: ::tcflag_t = 0x00000600;
600+
pub const FF1: ::tcflag_t = 0x00008000;
601+
pub const BS1: ::tcflag_t = 0x00002000;
602+
pub const VT1: ::tcflag_t = 0x00004000;
603603
pub const VWERASE: usize = 14;
604604
pub const VREPRINT: usize = 12;
605605
pub const VSUSP: usize = 10;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ pub const MCL_FUTURE: ::c_int = 0x0002;
145145
pub const SIGSTKSZ: ::size_t = 8192;
146146
pub const MINSIGSTKSZ: ::size_t = 2048;
147147
pub const CBAUD: ::tcflag_t = 0o0010017;
148-
pub const TAB1: ::c_int = 0x00000800;
149-
pub const TAB2: ::c_int = 0x00001000;
150-
pub const TAB3: ::c_int = 0x00001800;
151-
pub const CR1: ::c_int = 0x00000200;
152-
pub const CR2: ::c_int = 0x00000400;
153-
pub const CR3: ::c_int = 0x00000600;
154-
pub const FF1: ::c_int = 0x00008000;
155-
pub const BS1: ::c_int = 0x00002000;
156-
pub const VT1: ::c_int = 0x00004000;
148+
pub const TAB1: ::tcflag_t = 0x00000800;
149+
pub const TAB2: ::tcflag_t = 0x00001000;
150+
pub const TAB3: ::tcflag_t = 0x00001800;
151+
pub const CR1: ::tcflag_t = 0x00000200;
152+
pub const CR2: ::tcflag_t = 0x00000400;
153+
pub const CR3: ::tcflag_t = 0x00000600;
154+
pub const FF1: ::tcflag_t = 0x00008000;
155+
pub const BS1: ::tcflag_t = 0x00002000;
156+
pub const VT1: ::tcflag_t = 0x00004000;
157157
pub const VWERASE: usize = 14;
158158
pub const VREPRINT: usize = 12;
159159
pub const VSUSP: usize = 10;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ pub const MCL_FUTURE: ::c_int = 0x4000;
132132
pub const SIGSTKSZ: ::size_t = 0x4000;
133133
pub const MINSIGSTKSZ: ::size_t = 4096;
134134
pub const CBAUD: ::tcflag_t = 0xff;
135-
pub const TAB1: ::c_int = 0x400;
136-
pub const TAB2: ::c_int = 0x800;
137-
pub const TAB3: ::c_int = 0xc00;
138-
pub const CR1: ::c_int = 0x1000;
139-
pub const CR2: ::c_int = 0x2000;
140-
pub const CR3: ::c_int = 0x3000;
141-
pub const FF1: ::c_int = 0x4000;
142-
pub const BS1: ::c_int = 0x8000;
143-
pub const VT1: ::c_int = 0x10000;
135+
pub const TAB1: ::tcflag_t = 0x400;
136+
pub const TAB2: ::tcflag_t = 0x800;
137+
pub const TAB3: ::tcflag_t = 0xc00;
138+
pub const CR1: ::tcflag_t = 0x1000;
139+
pub const CR2: ::tcflag_t = 0x2000;
140+
pub const CR3: ::tcflag_t = 0x3000;
141+
pub const FF1: ::tcflag_t = 0x4000;
142+
pub const BS1: ::tcflag_t = 0x8000;
143+
pub const VT1: ::tcflag_t = 0x10000;
144144
pub const VWERASE: usize = 0xa;
145145
pub const VREPRINT: usize = 0xb;
146146
pub const VSUSP: usize = 0xc;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -347,15 +347,15 @@ pub const MCL_FUTURE: ::c_int = 0x0002;
347347
pub const SIGSTKSZ: ::size_t = 8192;
348348
pub const MINSIGSTKSZ: ::size_t = 2048;
349349
pub const CBAUD: ::tcflag_t = 0o0010017;
350-
pub const TAB1: ::c_int = 0x00000800;
351-
pub const TAB2: ::c_int = 0x00001000;
352-
pub const TAB3: ::c_int = 0x00001800;
353-
pub const CR1: ::c_int = 0x00000200;
354-
pub const CR2: ::c_int = 0x00000400;
355-
pub const CR3: ::c_int = 0x00000600;
356-
pub const FF1: ::c_int = 0x00008000;
357-
pub const BS1: ::c_int = 0x00002000;
358-
pub const VT1: ::c_int = 0x00004000;
350+
pub const TAB1: ::tcflag_t = 0x00000800;
351+
pub const TAB2: ::tcflag_t = 0x00001000;
352+
pub const TAB3: ::tcflag_t = 0x00001800;
353+
pub const CR1: ::tcflag_t = 0x00000200;
354+
pub const CR2: ::tcflag_t = 0x00000400;
355+
pub const CR3: ::tcflag_t = 0x00000600;
356+
pub const FF1: ::tcflag_t = 0x00008000;
357+
pub const BS1: ::tcflag_t = 0x00002000;
358+
pub const VT1: ::tcflag_t = 0x00004000;
359359
pub const VWERASE: usize = 14;
360360
pub const VREPRINT: usize = 12;
361361
pub const VSUSP: usize = 10;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -435,15 +435,15 @@ pub const MCL_FUTURE: ::c_int = 0x0002;
435435
pub const SIGSTKSZ: ::size_t = 16384;
436436
pub const MINSIGSTKSZ: ::size_t = 5120;
437437
pub const CBAUD: ::tcflag_t = 0o0010017;
438-
pub const TAB1: ::c_int = 0x00000800;
439-
pub const TAB2: ::c_int = 0x00001000;
440-
pub const TAB3: ::c_int = 0x00001800;
441-
pub const CR1: ::c_int = 0x00000200;
442-
pub const CR2: ::c_int = 0x00000400;
443-
pub const CR3: ::c_int = 0x00000600;
444-
pub const FF1: ::c_int = 0x00008000;
445-
pub const BS1: ::c_int = 0x00002000;
446-
pub const VT1: ::c_int = 0x00004000;
438+
pub const TAB1: ::tcflag_t = 0x00000800;
439+
pub const TAB2: ::tcflag_t = 0x00001000;
440+
pub const TAB3: ::tcflag_t = 0x00001800;
441+
pub const CR1: ::tcflag_t = 0x00000200;
442+
pub const CR2: ::tcflag_t = 0x00000400;
443+
pub const CR3: ::tcflag_t = 0x00000600;
444+
pub const FF1: ::tcflag_t = 0x00008000;
445+
pub const BS1: ::tcflag_t = 0x00002000;
446+
pub const VT1: ::tcflag_t = 0x00004000;
447447
pub const VWERASE: usize = 14;
448448
pub const VREPRINT: usize = 12;
449449
pub const VSUSP: usize = 10;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,15 @@ pub const MCL_FUTURE: ::c_int = 0x4000;
446446
pub const SIGSTKSZ: ::size_t = 0x4000;
447447
pub const MINSIGSTKSZ: ::size_t = 4096;
448448
pub const CBAUD: ::tcflag_t = 0xff;
449-
pub const TAB1: ::c_int = 0x400;
450-
pub const TAB2: ::c_int = 0x800;
451-
pub const TAB3: ::c_int = 0xc00;
452-
pub const CR1: ::c_int = 0x1000;
453-
pub const CR2: ::c_int = 0x2000;
454-
pub const CR3: ::c_int = 0x3000;
455-
pub const FF1: ::c_int = 0x4000;
456-
pub const BS1: ::c_int = 0x8000;
457-
pub const VT1: ::c_int = 0x10000;
449+
pub const TAB1: ::tcflag_t = 0x400;
450+
pub const TAB2: ::tcflag_t = 0x800;
451+
pub const TAB3: ::tcflag_t = 0xc00;
452+
pub const CR1: ::tcflag_t = 0x1000;
453+
pub const CR2: ::tcflag_t = 0x2000;
454+
pub const CR3: ::tcflag_t = 0x3000;
455+
pub const FF1: ::tcflag_t = 0x4000;
456+
pub const BS1: ::tcflag_t = 0x8000;
457+
pub const VT1: ::tcflag_t = 0x10000;
458458
pub const VWERASE: usize = 0xa;
459459
pub const VREPRINT: usize = 0xb;
460460
pub const VSUSP: usize = 0xc;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -404,15 +404,15 @@ pub const MCL_FUTURE: ::c_int = 0x4000;
404404
pub const SIGSTKSZ: ::size_t = 16384;
405405
pub const MINSIGSTKSZ: ::size_t = 4096;
406406
pub const CBAUD: ::tcflag_t = 0x0000100f;
407-
pub const TAB1: ::c_int = 0x800;
408-
pub const TAB2: ::c_int = 0x1000;
409-
pub const TAB3: ::c_int = 0x1800;
410-
pub const CR1: ::c_int = 0x200;
411-
pub const CR2: ::c_int = 0x400;
412-
pub const CR3: ::c_int = 0x600;
413-
pub const FF1: ::c_int = 0x8000;
414-
pub const BS1: ::c_int = 0x2000;
415-
pub const VT1: ::c_int = 0x4000;
407+
pub const TAB1: ::tcflag_t = 0x800;
408+
pub const TAB2: ::tcflag_t = 0x1000;
409+
pub const TAB3: ::tcflag_t = 0x1800;
410+
pub const CR1: ::tcflag_t = 0x200;
411+
pub const CR2: ::tcflag_t = 0x400;
412+
pub const CR3: ::tcflag_t = 0x600;
413+
pub const FF1: ::tcflag_t = 0x8000;
414+
pub const BS1: ::tcflag_t = 0x2000;
415+
pub const VT1: ::tcflag_t = 0x4000;
416416
pub const VWERASE: usize = 0xe;
417417
pub const VREPRINT: usize = 0xc;
418418
pub const VSUSP: usize = 0xa;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -600,15 +600,15 @@ pub const MCL_FUTURE: ::c_int = 0x0002;
600600
pub const SIGSTKSZ: ::size_t = 8192;
601601
pub const MINSIGSTKSZ: ::size_t = 2048;
602602
pub const CBAUD: ::tcflag_t = 0o0010017;
603-
pub const TAB1: ::c_int = 0x00000800;
604-
pub const TAB2: ::c_int = 0x00001000;
605-
pub const TAB3: ::c_int = 0x00001800;
606-
pub const CR1: ::c_int = 0x00000200;
607-
pub const CR2: ::c_int = 0x00000400;
608-
pub const CR3: ::c_int = 0x00000600;
609-
pub const FF1: ::c_int = 0x00008000;
610-
pub const BS1: ::c_int = 0x00002000;
611-
pub const VT1: ::c_int = 0x00004000;
603+
pub const TAB1: ::tcflag_t = 0x00000800;
604+
pub const TAB2: ::tcflag_t = 0x00001000;
605+
pub const TAB3: ::tcflag_t = 0x00001800;
606+
pub const CR1: ::tcflag_t = 0x00000200;
607+
pub const CR2: ::tcflag_t = 0x00000400;
608+
pub const CR3: ::tcflag_t = 0x00000600;
609+
pub const FF1: ::tcflag_t = 0x00008000;
610+
pub const BS1: ::tcflag_t = 0x00002000;
611+
pub const VT1: ::tcflag_t = 0x00004000;
612612
pub const VWERASE: usize = 14;
613613
pub const VREPRINT: usize = 12;
614614
pub const VSUSP: usize = 10;

0 commit comments

Comments
 (0)