implement some unistd

This commit is contained in:
Paul Sajna
2018-03-04 06:37:45 -08:00
parent 4f5d65e7a6
commit d25b1d2fa4
3 changed files with 42 additions and 3 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ pub extern "C" fn brk(addr: *mut c_void) -> c_int {
#[no_mangle]
pub extern "C" fn chdir(path: *const c_char) -> c_int {
unimplemented!();
platform::chdir(path)
}
#[no_mangle]
@@ -86,12 +86,12 @@ pub extern "C" fn cuserid(s: *mut c_char) -> *mut c_char {
#[no_mangle]
pub extern "C" fn dup(fildes: c_int) -> c_int {
unimplemented!();
platform::dup(fildes)
}
#[no_mangle]
pub extern "C" fn dup2(fildes: c_int, fildes2: c_int) -> c_int {
unimplemented!();
platform::dup2(fildes, fildes2)
}
#[no_mangle]