diff options
author | bors <bors@rust-lang.org> | 2019-05-28 12:45:23 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2019-05-28 12:45:23 +0000 |
commit | 48193e89b6730395c69f94824a87f5427aa641b5 (patch) | |
tree | f9f3ba92b531e74a6dbe81838f76dd880f5d2a5c /src/unix/newlib/mod.rs | |
parent | 8e2e498a45b8774be6deccb04d502538c5f1ba22 (diff) | |
parent | 1a3d1525da37e295f659424258df4566a1755abf (diff) | |
download | rust-libc-48193e89b6730395c69f94824a87f5427aa641b5.tar.gz |
Auto merge of #1365 - gnzlbg:cleanup_linux, r=gnzlbg
[breaking change] Cleanup linux and update MUSL
* Update MUSL kernel headers to 4.4.2 (non-breaking)
* [breaking] `MADV_SOFT_OFFLINE` is not defined on MIPS
* [breaking] `sendmmsg`/`recvmmsg` take an `unsigned int` flag on MUSL
* [breaking] `pthread_t` is a pointer on MUSL
* `rlimit` resources should use a type alias on GNU (non-breaking)
* Deprecate `SIGNUNUSED` (should use SIGSYS instead)
Diffstat (limited to 'src/unix/newlib/mod.rs')
-rw-r--r-- | src/unix/newlib/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs index 93798e58b5..f27874cbe5 100644 --- a/src/unix/newlib/mod.rs +++ b/src/unix/newlib/mod.rs @@ -598,6 +598,9 @@ f! { } extern { + pub fn getrlimit(resource: ::c_int, rlim: *mut ::rlimit) -> ::c_int; + pub fn setrlimit(resource: ::c_int, rlim: *const ::rlimit) -> ::c_int; + #[cfg_attr(target_os = "linux", link_name = "__xpg_strerror_r")] pub fn strerror_r(errnum: ::c_int, buf: *mut c_char, |