Implement termios functions using ioctl

This commit is contained in:
Jeremy Soller
2019-01-17 20:46:12 -07:00
parent 047deceed0
commit a88933386b
7 changed files with 57 additions and 83 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ use platform::types::*;
use platform::Sys;
#[no_mangle]
pub extern "C" fn ioctl(fd: c_int, request: c_ulong, out: *mut c_void) -> c_int {
pub unsafe extern "C" fn ioctl(fd: c_int, request: c_ulong, out: *mut c_void) -> c_int {
// TODO: Somehow support varargs to syscall??
Sys::ioctl(fd, request, out)
}