Large reorganization of headers (WIP)

This commit is contained in:
Jeremy Soller
2018-08-26 08:11:35 -06:00
parent ff32c8cbbd
commit c20ce5ffed
261 changed files with 236 additions and 1672 deletions
+7
View File
@@ -0,0 +1,7 @@
sys_includes = ["bits/sys/select.h", "sys/time.h"]
include_guard = "_SYS_SELECT_H"
language = "C"
style = "Tag"
[enum]
prefix_with_name = true
+20
View File
@@ -0,0 +1,20 @@
//! sys/select.h implementation
use core::mem;
use platform;
use platform::{Pal, Sys};
use platform::types::*;
// fd_set is defined in C because cbindgen is incompatible with mem::size_of booo
#[no_mangle]
pub extern "C" fn select(
nfds: c_int,
readfds: *mut fd_set,
writefds: *mut fd_set,
exceptfds: *mut fd_set,
timeout: *mut timeval,
) -> c_int {
Sys::select(nfds, readfds, writefds, exceptfds, timeout)
}