Skip to content

Commit 317391c

Browse files
committed
Add some missing functions
1 parent bb7f778 commit 317391c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vxworks/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,7 @@ extern "C" {
12681268
pub fn umask(mask: mode_t) -> mode_t;
12691269
pub fn mlock(addr: *const c_void, len: size_t) -> c_int;
12701270
pub fn mlockall(flags: c_int) -> c_int;
1271+
pub fn munlock(addr: *const c_void, len: size_t) -> c_int;
12711272
pub fn munlockall() -> c_int;
12721273

12731274
pub fn mmap(
@@ -1279,6 +1280,10 @@ extern "C" {
12791280
offset: off_t,
12801281
) -> *mut c_void;
12811282
pub fn munmap(addr: *mut c_void, len: size_t) -> c_int;
1283+
1284+
pub fn mprotect(addr: *mut c_void, len: size_t, prot: c_int) -> c_int;
1285+
pub fn msync(addr: *mut c_void, len: size_t, flags: c_int) -> c_int;
1286+
12821287
pub fn truncate(path: *const c_char, length: off_t) -> c_int;
12831288
pub fn shm_open(name: *const c_char, oflag: c_int, mode: crate::mode_t) -> c_int;
12841289
pub fn shm_unlink(name: *const c_char) -> c_int;
@@ -1295,6 +1300,8 @@ extern "C" {
12951300

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

1303+
pub fn futimens(fd: c_int, times: *const crate::timespec) -> c_int;
1304+
12981305
#[link_name = "_rtld_dlopen"]
12991306
pub fn dlopen(filename: *const c_char, flag: c_int) -> *mut c_void;
13001307

0 commit comments

Comments
 (0)