Large reorganization of headers (WIP)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
include_guard = "_SYS_FILE_H"
|
||||
language = "C"
|
||||
style = "Tag"
|
||||
|
||||
[enum]
|
||||
prefix_with_name = true
|
||||
@@ -0,0 +1,18 @@
|
||||
//! sys/file.h implementation
|
||||
|
||||
use platform;
|
||||
use platform::types::*;
|
||||
|
||||
pub const LOCK_SH: usize = 1;
|
||||
pub const LOCK_EX: usize = 2;
|
||||
pub const LOCK_NB: usize = 4;
|
||||
pub const LOCK_UN: usize = 8;
|
||||
|
||||
pub const L_SET: usize = 0;
|
||||
pub const L_INCR: usize = 1;
|
||||
pub const L_XTND: usize = 2;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn flock(fd: c_int, operation: c_int) -> c_int {
|
||||
platform::flock(fd, operation)
|
||||
}
|
||||
Reference in New Issue
Block a user