Delete duplicate types

Now that we use cbindgen differently :D
This commit is contained in:
jD91mZM2
2018-09-02 08:17:15 +02:00
parent dbe18b92f0
commit 6fe3e05ea0
30 changed files with 148 additions and 278 deletions
+9 -8
View File
@@ -12,19 +12,20 @@ pub struct sgttyb {
sg_flags: c_ushort,
}
#[repr(C)]
#[derive(Default)]
pub struct winsize {
ws_row: c_ushort,
ws_col: c_ushort,
ws_xpixel: c_ushort,
ws_ypixel: c_ushort,
}
#[cfg(target_os = "linux")]
pub mod inner {
use platform::types::*;
use platform::{Pal, Sys};
#[repr(C)]
pub struct winsize {
ws_row: c_ushort,
ws_col: c_ushort,
ws_xpixel: c_ushort,
ws_ypixel: c_ushort,
}
#[no_mangle]
pub extern "C" fn ioctl(fd: c_int, request: c_ulong, out: *mut c_void) -> c_int {
// TODO: Somehow support varargs to syscall??