Large reorganization of headers (WIP)

This commit is contained in:
Jeremy Soller
2018-08-26 08:11:35 -06:00
parent ff32c8cbbd
commit c20ce5ffed
261 changed files with 236 additions and 1672 deletions
+6
View File
@@ -0,0 +1,6 @@
include_guard = "_SYS_FILE_H"
language = "C"
style = "Tag"
[enum]
prefix_with_name = true
+18
View File
@@ -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)
}