Skip to content

Commit

Permalink
uclibc: fix so mipsel-unknown-linux-uclibc passes libc-test
Browse files Browse the repository at this point in the history
  • Loading branch information
skrap committed Nov 13, 2020
1 parent 80d8636 commit 602a223
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,7 @@ pub const SHM_LOCK: ::c_int = 11;
pub const SHM_UNLOCK: ::c_int = 12;

pub const SHM_HUGETLB: ::c_int = 0o4000;
#[cfg(not(all(target_env = "uclibc", target_arch = "mips")))]
pub const SHM_NORESERVE: ::c_int = 0o10000;

pub const EPOLLRDHUP: ::c_int = 0x2000;
Expand Down Expand Up @@ -1587,6 +1588,7 @@ pub const IPV6_RTHDR_LOOSE: ::c_int = 0;
pub const IPV6_RTHDR_STRICT: ::c_int = 1;

pub const IUTF8: ::tcflag_t = 0x00004000;
#[cfg(not(all(target_env = "uclibc", target_arch = "mips")))]
pub const CMSPAR: ::tcflag_t = 0o10000000000;

pub const MFD_CLOEXEC: ::c_uint = 0x0001;
Expand Down
1 change: 0 additions & 1 deletion src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ extern "C" {
newlen: ::size_t,
) -> ::c_int;
pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
pub fn backtrace(buf: *mut *mut ::c_void, sz: ::c_int) -> ::c_int;
pub fn glob64(
pattern: *const ::c_char,
flags: ::c_int,
Expand Down
4 changes: 0 additions & 4 deletions src/unix/linux_like/linux/uclibc/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,9 @@ pub const TIOCMSET: ::c_ulong = 0x741a;
pub const FIONREAD: ::c_ulong = 0x467f;
pub const TIOCCONS: ::c_ulong = 0x80047478;

pub const RTLD_DEEPBIND: ::c_int = 0x10;
pub const RTLD_GLOBAL: ::c_int = 0x4;
pub const RTLD_NOLOAD: ::c_int = 0x8;




pub const SIGSTKSZ: ::size_t = 8192;
pub const CBAUD: ::tcflag_t = 0o0010017;
pub const TAB1: ::tcflag_t = 0x00000800;
Expand Down

0 comments on commit 602a223

Please sign in to comment.