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:
Aaron Turon
2014-11-20 18:30:46 -08:00
parent af0c446d3b
commit 1e66164210
4 changed files with 107 additions and 1 deletions

View File

@@ -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 {