Merge branch 'master' of github.com:redox-os/relibc into wait
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
sys_includes = ["sys/types.h"]
|
||||
sys_includes = ["sys/types.h", "sys/time.h"]
|
||||
include_guard = "_SYS_RESOURCE_H"
|
||||
language = "C"
|
||||
style = "Tag"
|
||||
|
||||
[enum]
|
||||
prefix_with_name = true
|
||||
|
||||
+5
-7
@@ -3,11 +3,9 @@ extern crate cbindgen;
|
||||
use std::{env, fs};
|
||||
|
||||
fn main() {
|
||||
/*
|
||||
*let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
|
||||
*fs::create_dir_all("../../target/include").expect("failed to create include directory");
|
||||
*cbindgen::generate(crate_dir)
|
||||
* .expect("failed to generate bindings")
|
||||
* .write_to_file("../../target/include/sys/stat.h");
|
||||
*/
|
||||
let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
|
||||
fs::create_dir_all("../../target/include").expect("failed to create include directory");
|
||||
cbindgen::generate(crate_dir)
|
||||
.expect("failed to generate bindings")
|
||||
.write_to_file("../../target/include/sys/stat.h");
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
sys_includes = ["sys/types.h"]
|
||||
include_guard = "_SYS_STAT_H"
|
||||
language = "C"
|
||||
style = "Tag"
|
||||
|
||||
[enum]
|
||||
prefix_with_name = true
|
||||
|
||||
@@ -23,10 +23,12 @@ pub struct fd_set {
|
||||
pub fds_bits: [c_long; 16usize],
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn getitimer(which: c_int, value: *mut itimerval) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn setitimer(
|
||||
which: c_int,
|
||||
value: *const itimerval,
|
||||
@@ -35,10 +37,12 @@ pub extern "C" fn setitimer(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn gettimeofday(tp: *mut timeval, tzp: *const c_void) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn select(
|
||||
nfds: c_int,
|
||||
readfds: *mut fd_set,
|
||||
@@ -49,6 +53,7 @@ pub extern "C" fn select(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn utimes(path: *const c_char, times: [timeval; 2]) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user