diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2019-05-24 14:57:28 +0200 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2019-05-27 22:23:02 +0200 |
commit | 8f403e5ac262508b763da173d545195710d10494 (patch) | |
tree | 9c894fbc9c9505448d26c94ace99be2599420a78 /src/unix/bsd/mod.rs | |
parent | 1059e0bd85428728cdd8b1546ce4edbace81f725 (diff) | |
download | rust-libc-8f403e5ac262508b763da173d545195710d10494.tar.gz |
Update MUSL Linux kernel headers and re-enable Linux tests
Diffstat (limited to 'src/unix/bsd/mod.rs')
-rw-r--r-- | src/unix/bsd/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index e69035e197..250711f74c 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -488,6 +488,13 @@ f! { } extern { + #[cfg_attr(all(target_os = "macos", target_arch = "x86"), + link_name = "getrlimit$UNIX2003")] + pub fn getrlimit(resource: ::c_int, rlim: *mut ::rlimit) -> ::c_int; + #[cfg_attr(all(target_os = "macos", target_arch = "x86"), + link_name = "setrlimit$UNIX2003")] + pub fn setrlimit(resource: ::c_int, rlim: *const ::rlimit) -> ::c_int; + pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, buflen: ::size_t) -> ::c_int; pub fn abs(i: ::c_int) -> ::c_int; |