Skip to content

Commit 4571b83

Browse files
committed
Add BOTHER to Android & Linux
1 parent 6926945 commit 4571b83

File tree

10 files changed

+12
-0
lines changed

10 files changed

+12
-0
lines changed

Diff for: libc-test/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ fn main() {
472472
// are header conflicts if we try to include the headers that define them here.
473473
"F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => true,
474474
"F_SEAL_SEAL" | "F_SEAL_SHRINK" | "F_SEAL_GROW" | "F_SEAL_WRITE" => true,
475+
"BOTHER" => true,
475476

476477
_ => false,
477478
}
@@ -662,10 +663,12 @@ fn main() {
662663
} else {
663664
cfg.header("linux/fcntl.h");
664665
}
666+
cfg.header("asm/termbits.h");
665667
cfg.skip_const(move |name| {
666668
match name {
667669
"F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => false,
668670
"F_SEAL_SEAL" | "F_SEAL_SHRINK" | "F_SEAL_GROW" | "F_SEAL_WRITE" => false,
671+
"BOTHER" => false,
669672
_ => true,
670673
}
671674
});

Diff for: src/unix/notbsd/android/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ pub const B19200: ::speed_t = 0o000016;
731731
pub const B38400: ::speed_t = 0o000017;
732732
pub const EXTA: ::speed_t = B19200;
733733
pub const EXTB: ::speed_t = B38400;
734+
pub const BOTHER: ::speed_t = 0o010000;
734735
pub const B57600: ::speed_t = 0o010001;
735736
pub const B115200: ::speed_t = 0o010002;
736737
pub const B230400: ::speed_t = 0o010003;

Diff for: src/unix/notbsd/linux/mips/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ pub const B19200: ::speed_t = 0o000016;
591591
pub const B38400: ::speed_t = 0o000017;
592592
pub const EXTA: ::speed_t = B19200;
593593
pub const EXTB: ::speed_t = B38400;
594+
pub const BOTHER: ::speed_t = 0o010000;
594595
pub const B57600: ::speed_t = 0o010001;
595596
pub const B115200: ::speed_t = 0o010002;
596597
pub const B230400: ::speed_t = 0o010003;

Diff for: src/unix/notbsd/linux/other/b32/arm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ pub const B19200: ::speed_t = 0o000016;
175175
pub const B38400: ::speed_t = 0o000017;
176176
pub const EXTA: ::speed_t = B19200;
177177
pub const EXTB: ::speed_t = B38400;
178+
pub const BOTHER: ::speed_t = 0o010000;
178179
pub const B57600: ::speed_t = 0o010001;
179180
pub const B115200: ::speed_t = 0o010002;
180181
pub const B230400: ::speed_t = 0o010003;

Diff for: src/unix/notbsd/linux/other/b32/powerpc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ pub const B2500000: ::speed_t = 0o0033;
187187
pub const B3000000: ::speed_t = 0o0034;
188188
pub const B3500000: ::speed_t = 0o0035;
189189
pub const B4000000: ::speed_t = 0o0036;
190+
pub const BOTHER: ::speed_t = 0o0037;
190191

191192
pub const VEOL: usize = 6;
192193
pub const VEOL2: usize = 8;

Diff for: src/unix/notbsd/linux/other/b32/x86.rs

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ pub const B19200: ::speed_t = 0o000016;
273273
pub const B38400: ::speed_t = 0o000017;
274274
pub const EXTA: ::speed_t = B19200;
275275
pub const EXTB: ::speed_t = B38400;
276+
pub const BOTHER: ::speed_t = 0o010000;
276277
pub const B57600: ::speed_t = 0o010001;
277278
pub const B115200: ::speed_t = 0o010002;
278279
pub const B230400: ::speed_t = 0o010003;

Diff for: src/unix/notbsd/linux/other/b64/aarch64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ pub const B19200: ::speed_t = 0o000016;
415415
pub const B38400: ::speed_t = 0o000017;
416416
pub const EXTA: ::speed_t = B19200;
417417
pub const EXTB: ::speed_t = B38400;
418+
pub const BOTHER: ::speed_t = 0o010000;
418419
pub const B57600: ::speed_t = 0o010001;
419420
pub const B115200: ::speed_t = 0o010002;
420421
pub const B230400: ::speed_t = 0o010003;

Diff for: src/unix/notbsd/linux/other/b64/powerpc64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ pub const B2500000: ::speed_t = 0o0033;
427427
pub const B3000000: ::speed_t = 0o0034;
428428
pub const B3500000: ::speed_t = 0o0035;
429429
pub const B4000000: ::speed_t = 0o0036;
430+
pub const BOTHER: ::speed_t = 0o0037;
430431

431432
pub const VEOL: usize = 6;
432433
pub const VEOL2: usize = 8;

Diff for: src/unix/notbsd/linux/other/b64/x86_64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ pub const B19200: ::speed_t = 0o000016;
522522
pub const B38400: ::speed_t = 0o000017;
523523
pub const EXTA: ::speed_t = B19200;
524524
pub const EXTB: ::speed_t = B38400;
525+
pub const BOTHER: ::speed_t = 0o010000;
525526
pub const B57600: ::speed_t = 0o010001;
526527
pub const B115200: ::speed_t = 0o010002;
527528
pub const B230400: ::speed_t = 0o010003;

Diff for: src/unix/notbsd/linux/s390x.rs

+1
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ pub const PARODD: ::tcflag_t = 0o001000;
844844
pub const HUPCL: ::tcflag_t = 0o002000;
845845
pub const CLOCAL: ::tcflag_t = 0o004000;
846846
pub const CBAUDEX: ::tcflag_t = 0o010000;
847+
pub const BOTHER: ::speed_t = 0o010000;
847848
pub const B57600: ::speed_t = 0o010001;
848849
pub const B115200: ::speed_t = 0o010002;
849850
pub const B230400: ::speed_t = 0o010003;

0 commit comments

Comments
 (0)