]> git.lizzy.rs Git - rust.git/commit
auto merge of #19169 : aturon/rust/fds, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 26 Nov 2014 08:42:09 +0000 (08:42 +0000)
committerbors <bors@rust-lang.org>
Wed, 26 Nov 2014 08:42:09 +0000 (08:42 +0000)
commit61af40278909eb899f1bdfbb8c45d4e4fb3dad5d
tree87d901e82bb5e19ed4e49216f2114c9ca060aee6
parent8d7b3199d9a285b66b4f9a49d97234c956cb5e6c
parent1e661642105a1033f1c155ceb1b2335dd11cb40a
auto merge of #19169 : aturon/rust/fds, r=alexcrichton

This PR adds some internal infrastructure to allow the private `std::sys` module to access internal representation details of `std::io`.

It then exposes those details in two new, platform-specific API surfaces: `std::os::unix` and `std::os::windows`.

To start with, these will provide the ability to extract file descriptors, HANDLEs, SOCKETs, and so on from `std::io` types.

More functionality, and more specific platforms (e.g. `std::os::linux`) will be added over time.

Closes #18897
src/libstd/io/net/tcp.rs
src/libstd/os.rs
src/libstd/sys/common/mod.rs
src/libstd/sys/unix/mod.rs
src/libstd/sys/windows/mod.rs