1
Fork 0
rust/src/libstd/sys/unix
Alex Crichton 6370f2978e std: Stabilize parts of std::os::platform::io
This commit stabilizes the platform-specific `io` modules, specifically around
the traits having to do with the raw representation of each object on each
platform.

Specifically, the following material was stabilized:

* `AsRaw{Fd,Socket,Handle}`
* `RawFd` (renamed from `Fd`)
* `RawHandle` (renamed from `Handle`)
* `RawSocket` (renamed from `Socket`)
* `AsRaw{Fd,Socket,Handle}` implementations
* `std::os::{unix, windows}::io`

The following material was added as `#[unstable]`:

* `FromRaw{Fd,Socket,Handle}`
* Implementations for various primitives

There are a number of future improvements that are possible to make to this
module, but this should cover a good bit of functionality desired from these
modules for now. Some specific future additions may include:

* `IntoRawXXX` traits to consume the raw representation and cancel the
  auto-destructor.
* `Fd`, `Socket`, and `Handle` abstractions that behave like Rust objects and
  have nice methods for various syscalls.

At this time though, these are considered backwards-compatible extensions and
will not be stabilized at this time.

This commit is a breaking change due to the addition of `Raw` in from of the
type aliases in each of the platform-specific modules.

[breaking-change]
2015-03-26 16:40:36 -07:00
..
backtrace.rs don't use Result::ok just to be able to use unwrap/unwrap_or 2015-03-20 08:19:13 +01:00
c.rs core: Audit num module for int/uint 2015-03-02 16:12:46 -08:00
condvar.rs std: Tidy up some unsafe impls for sync 2015-02-20 12:01:08 -08:00
ext.rs std: Stabilize parts of std::os::platform::io 2015-03-26 16:40:36 -07:00
fd.rs std: Remove #[allow] directives in sys modules 2015-03-12 10:23:27 -07:00
fs.rs Auto merge of #23470 - alexcrichton:less-prelude, r=aturon 2015-03-21 05:25:21 +00:00
fs2.rs std: Stabilize parts of std::os::platform::io 2015-03-26 16:40:36 -07:00
helper_signal.rs don't use Result::ok just to be able to use unwrap/unwrap_or 2015-03-20 08:19:13 +01:00
mod.rs std: Stablize io::ErrorKind 2015-03-19 09:59:21 -07:00
mutex.rs std: Remove #[allow] directives in sys modules 2015-03-12 10:23:27 -07:00
net.rs std: Stabilize parts of std::os::platform::io 2015-03-26 16:40:36 -07:00
os.rs Rollup merge of #23693 - semarie:openbsd-pathbuf-new, r=nikomatsakis 2015-03-25 19:44:08 +05:30
os_str.rs Register new snapshots 2015-03-18 16:32:32 -07:00
pipe.rs Fallout of std::old_io deprecation 2015-03-13 10:00:28 -07:00
pipe2.rs Add std::process 2015-02-13 23:21:08 -08:00
process.rs Auto merge of #23229 - aturon:stab-path, r=alexcrichton 2015-03-13 01:00:02 +00:00
process2.rs std: Stabilize portions of std::os::$platform 2015-03-15 10:28:34 -07:00
rwlock.rs std: Remove #[allow] directives in sys modules 2015-03-12 10:23:27 -07:00
stack_overflow.rs Fix private module loophole in the 'private type in public item' check 2015-03-18 16:47:24 +13:00
stdio.rs Fallout of std::old_io deprecation 2015-03-13 10:00:28 -07:00
sync.rs bitrig integration 2015-02-11 14:49:06 -08:00
tcp.rs std: Remove #[allow] directives in sys modules 2015-03-12 10:23:27 -07:00
thread.rs Test fixes and rebase conflicts, round 2 2015-03-23 17:10:19 -07:00
thread_local.rs bitrig integration 2015-02-11 14:49:06 -08:00
time.rs std: Remove #[allow] directives in sys modules 2015-03-12 10:23:27 -07:00
timer.rs Auto merge of #23512 - oli-obk:result_ok_unwrap, r=alexcrichton 2015-03-20 23:16:47 +00:00
tty.rs Implement winsize() for {ios,dragonfly} 2015-03-15 01:29:13 -07:00
udp.rs Runtime removal: refactor pipes and networking 2014-11-08 20:40:38 -08:00