Skip to content

Commit b28fef8

Browse files
hax0kartiktgross35
authored andcommitted
Add some missing functions
(backport <rust-lang#4337>) (cherry picked from commit 317391c)
1 parent f630218 commit b28fef8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vxworks/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,7 @@ extern "C" {
12571257
pub fn umask(mask: mode_t) -> mode_t;
12581258
pub fn mlock(addr: *const c_void, len: size_t) -> c_int;
12591259
pub fn mlockall(flags: c_int) -> c_int;
1260+
pub fn munlock(addr: *const c_void, len: size_t) -> c_int;
12601261
pub fn munlockall() -> c_int;
12611262

12621263
pub fn mmap(
@@ -1268,6 +1269,10 @@ extern "C" {
12681269
offset: off_t,
12691270
) -> *mut c_void;
12701271
pub fn munmap(addr: *mut c_void, len: size_t) -> c_int;
1272+
1273+
pub fn mprotect(addr: *mut c_void, len: size_t, prot: c_int) -> c_int;
1274+
pub fn msync(addr: *mut c_void, len: size_t, flags: c_int) -> c_int;
1275+
12711276
pub fn truncate(path: *const c_char, length: off_t) -> c_int;
12721277
pub fn shm_open(name: *const c_char, oflag: c_int, mode: crate::mode_t) -> c_int;
12731278
pub fn shm_unlink(name: *const c_char) -> c_int;
@@ -1284,6 +1289,8 @@ extern "C" {
12841289

12851290
pub fn utimes(filename: *const c_char, times: *const crate::timeval) -> c_int;
12861291

1292+
pub fn futimens(fd: c_int, times: *const crate::timespec) -> c_int;
1293+
12871294
#[link_name = "_rtld_dlopen"]
12881295
pub fn dlopen(filename: *const c_char, flag: c_int) -> *mut c_void;
12891296

0 commit comments

Comments
 (0)