Skip to content

Commit e7bf0a3

Browse files
committed
Auto merge of rust-lang#661 - Susurrus:mips_cmspar, r=alexcrichton
Add CMSPAR to linux/mips
2 parents 4f44ccf + f04b442 commit e7bf0a3

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

libc-test/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,13 @@ fn main() {
432432
// See constant definition for more details.
433433
"ENOATTR" if linux => true,
434434

435+
// On mips*-unknown-linux-gnu* CMSPAR cannot be included with the set of headers we
436+
// want to use here for testing. It's originally defined in asm/termbits.h, which is
437+
// also included by asm/termios.h, but not the standard termios.h. There's no way to
438+
// include both asm/termbits.h and termios.h and there's no way to include both
439+
// asm/termios.h and ioctl.h (+ some other headers) because of redeclared types.
440+
"CMSPAR" if mips && linux && !musl => true,
441+
435442
_ => false,
436443
}
437444
});

src/unix/notbsd/android/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,6 @@ pub const NLA_TYPE_MASK: ::c_int = !(NLA_F_NESTED | NLA_F_NET_BYTEORDER);
792792

793793
pub const SIGEV_THREAD_ID: ::c_int = 4;
794794

795-
pub const CMSPAR: ::tcflag_t = 0o10000000000;
796795
pub const CIBAUD: ::tcflag_t = 0o02003600000;
797796
pub const CBAUDEX: ::tcflag_t = 0o010000;
798797

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ pub const ISIG: ::tcflag_t = 0x00000001;
276276
pub const ICANON: ::tcflag_t = 0x00000002;
277277
pub const PENDIN: ::tcflag_t = 0x00004000;
278278
pub const NOFLSH: ::tcflag_t = 0x00000080;
279-
pub const CMSPAR: ::tcflag_t = 0o10000000000;
280279
pub const CIBAUD: ::tcflag_t = 0o02003600000;
281280
pub const CBAUDEX: ::tcflag_t = 0o010000;
282281
pub const VSWTC: usize = 7;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,6 @@ pub const NLA_F_NESTED: ::c_int = 1 << 15;
514514
pub const NLA_F_NET_BYTEORDER: ::c_int = 1 << 14;
515515
pub const NLA_TYPE_MASK: ::c_int = !(NLA_F_NESTED | NLA_F_NET_BYTEORDER);
516516

517-
pub const CMSPAR: ::tcflag_t = 0o10000000000;
518-
519517
pub const TIOCM_LE: ::c_int = 0x001;
520518
pub const TIOCM_DTR: ::c_int = 0x002;
521519
pub const TIOCM_RTS: ::c_int = 0x004;

src/unix/notbsd/linux/s390x.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ pub const LINUX_REBOOT_CMD_KEXEC: ::c_int = 0x45584543;
778778
pub const SYS_gettid: ::c_long = 236;
779779
pub const SYS_perf_event_open: ::c_long = 331;
780780

781-
pub const CMSPAR: ::tcflag_t = 0o10000000000;
782781
pub const VSWTC: usize = 7;
783782
pub const OLCUC: ::tcflag_t = 0o000002;
784783
pub const NLDLY: ::tcflag_t = 0o000400;

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ pub const IMAXBEL: ::tcflag_t = 0x00002000;
679679
pub const IUTF8: ::tcflag_t = 0x00004000;
680680
pub const OPOST: ::tcflag_t = 0x1;
681681
pub const CS5: ::tcflag_t = 0x00000000;
682+
pub const CMSPAR: ::tcflag_t = 0o10000000000;
682683
pub const CRTSCTS: ::tcflag_t = 0x80000000;
683684
pub const ECHO: ::tcflag_t = 0x00000008;
684685
pub const OCRNL: ::tcflag_t = 0o000010;

0 commit comments

Comments
 (0)