don't re-export os::unix internals
This commit is contained in:
parent
cf33440503
commit
8dd3044da5
|
@ -1,8 +1,8 @@
|
|||
extern crate libc;
|
||||
use core::prelude::*;
|
||||
pub use self::libc::{c_void, c_int, size_t};
|
||||
pub use self::libc::{mmap, mprotect, munmap};
|
||||
pub use self::libc::MAP_FAILED;
|
||||
use self::libc::{c_void, c_int, size_t};
|
||||
use self::libc::{mmap, mprotect, munmap};
|
||||
use self::libc::MAP_FAILED;
|
||||
|
||||
use core::ptr;
|
||||
|
||||
|
@ -12,10 +12,10 @@ pub fn page_size() -> usize {
|
|||
}
|
||||
}
|
||||
|
||||
pub const GUARD_PROT: c_int = libc::PROT_NONE;
|
||||
pub const STACK_PROT: c_int = libc::PROT_READ
|
||||
const GUARD_PROT: c_int = libc::PROT_NONE;
|
||||
const STACK_PROT: c_int = libc::PROT_READ
|
||||
| libc::PROT_WRITE;
|
||||
pub const STACK_FLAGS: c_int = libc::MAP_STACK
|
||||
const STACK_FLAGS: c_int = libc::MAP_STACK
|
||||
| libc::MAP_PRIVATE
|
||||
| libc::MAP_ANON;
|
||||
|
||||
|
|
Loading…
Reference in New Issue