aboutsummaryrefslogtreecommitdiff
path: root/libc/src/unix/redox
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/unix/redox')
-rw-r--r--libc/src/unix/redox/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/src/unix/redox/mod.rs b/libc/src/unix/redox/mod.rs
index 4bb1ab4..388918e 100644
--- a/libc/src/unix/redox/mod.rs
+++ b/libc/src/unix/redox/mod.rs
@@ -534,6 +534,12 @@ cfg_if! {
}
extern {
+ pub fn getrlimit(resource: ::c_int, rlim: *mut ::rlimit) -> ::c_int;
+ 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;
+
// malloc.h
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
@@ -584,5 +590,7 @@ extern {
iovcnt: ::c_int) -> ::ssize_t;
// time.h
+ pub fn gettimeofday(tp: *mut ::timeval,
+ tz: *mut ::timezone) -> ::c_int;
pub fn clock_gettime(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int;
}