Add binding for memrchr on Linux, FreeBSD, OpenBSD and NetBSD

This commit is contained in:
Florian Hahn 2015-12-16 12:28:51 +01:00
parent ab53d5e957
commit 6bb23a162c
3 changed files with 3 additions and 0 deletions

View File

@ -575,6 +575,7 @@ extern {
len: ::off_t) -> ::c_int;
pub fn sched_setscheduler(pid: ::pid_t, policy: ::c_int, param: *const sched_param) -> ::c_int;
pub fn sched_getscheduler(pid: ::pid_t) -> ::c_int;
pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void;
}
cfg_if! {

View File

@ -363,6 +363,7 @@ extern {
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
pub fn pthread_stackseg_np(thread: ::pthread_t,
sinfo: *mut ::stack_t) -> ::c_uint;
pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void;
}
cfg_if! {

View File

@ -606,6 +606,7 @@ extern {
arg: *mut ::c_void, ...) -> ::c_int;
pub fn statfs(path: *const ::c_char, buf: *mut statfs) -> ::c_int;
pub fn fstatfs(fd: ::c_int, buf: *mut statfs) -> ::c_int;
pub fn memrchr(cx: *const ::c_void, c: ::c_int, n: ::size_t) -> *mut ::c_void;
}
cfg_if! {