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
+5
View File
@@ -5,3 +5,8 @@ style = "Tag"
[enum]
prefix_with_name = true
[export]
# fd_set is also defined in C because cbindgen is incompatible with mem::size_of booo
exclude = ["FD_SETSIZE", "fd_set"]
+10 -1
View File
@@ -1,9 +1,18 @@
//! sys/select.h implementation
use core::mem;
use header::sys_time::timeval;
use platform::types::*;
use platform::{Pal, Sys};
// fd_set is defined in C because cbindgen is incompatible with mem::size_of booo
// fd_set is also defined in C because cbindgen is incompatible with mem::size_of booo
pub const FD_SETSIZE: usize = 1024;
#[repr(C)]
pub struct fd_set {
pub fds_bits: [c_ulong; FD_SETSIZE / (8 * mem::size_of::<c_ulong>())],
}
#[no_mangle]
pub extern "C" fn select(