libs: add std::os::windows module
The new `std::os::windows` module exposes several extension traits for extracting file descriptors, sockets, and handles from `std::io` types.
This commit is contained in:
@@ -62,6 +62,11 @@ use vec::Vec;
|
||||
#[cfg(unix)] use c_str::ToCStr;
|
||||
#[cfg(unix)] use libc::c_char;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub use sys::ext as unix;
|
||||
#[cfg(windows)]
|
||||
pub use sys::ext as windows;
|
||||
|
||||
/// Get the number of cores available
|
||||
pub fn num_cpus() -> uint {
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user