Files
RedBear-OS/src/sys_mman/src/lib.rs
T
jD91mZM2 a7cc95cd90 Comment out #[no_mangle] on unimplemented functions
This stops configure scripts from identifying them as valid
2018-07-12 21:39:53 +02:00

73 lines
1.3 KiB
Rust

#![no_std]
extern crate platform;
use platform::types::*;
pub use sys::*;
#[cfg(target_os = "linux")]
#[path = "linux.rs"]
pub mod sys;
#[cfg(target_os = "redox")]
#[path = "redox.rs"]
pub mod sys;
// #[no_mangle]
pub extern "C" fn mlock(addr: *const c_void, len: usize) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn mlockall(flags: c_int) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn mmap(
addr: *mut c_void,
len: usize,
prot: c_int,
flags: c_int,
fildes: c_int,
off: off_t,
) -> *mut c_void {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn mprotect(addr: *mut c_void, len: usize, prot: c_int) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn msync(addr: *mut c_void, len: usize, flags: c_int) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn munlock(addr: *const c_void, len: usize) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn munlockall() -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn munmap(addr: *mut c_void, len: usize) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn shm_open(name: *const c_char, oflag: c_int, mode: mode_t) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn shm_unlink(name: *const c_char) -> c_int {
unimplemented!();
}