jD91mZM2
abac5e722f
Revert unification of interfaces
2018-07-07 06:50:55 +02:00
jD91mZM2
79bf00f406
Fix tidy checks
2018-06-27 15:10:00 +02:00
jD91mZM2
a4e190546c
Horrible attempt at cleaning things up that probably just made it worse
2018-06-27 10:12:34 +02:00
jD91mZM2
c86a7a01e2
Mention redox' behavior in doc comments
2018-06-26 20:31:35 +02:00
Nicholas Rishel
da6142c810
Rustfmt result (for relevant changes) to satisfy Travis line length check.
...
Signed-off-by: Nicholas Rishel <nick@accups.com >
2018-04-19 17:27:05 -04:00
Nicholas Rishel
c7f3621f0e
The prior check causes abstract unix domain sockets to return unnamed on Android.
...
Signed-off-by: Nicholas Rishel <nick@accups.com >
2018-04-19 15:55:02 -04:00
Daniel Kolsoi
fdde09c70c
Reduce scope of unsafe block in sun_path_offset
2018-03-23 17:01:34 -04:00
Manish Goregaokar
8bf026df5b
Rollup merge of #48328 - frewsxcv:frewsxcv-clarify-error-zero-duration, r=sfackler
...
Fixes #47311 .
r? @nrc
2018-03-02 22:01:20 -08:00
kennytm
1aa103511b
Rollup merge of #48330 - frewsxcv:frewsxcv-tests-zero-duration, r=sfackler
...
Add tests ensuring zero-Duration timeouts result in errors; fix Redox issues.
Part of #48311
2018-02-25 22:47:56 +08:00
Corey Farwell
0700bd12d0
Clarify "It is an error to..." wording for zero-duration behaviors.
...
Documentation fix side of https://github.com/rust-lang/rust/issues/48311 .
2018-02-24 08:56:36 -05:00
Corey Farwell
d17d645ad7
Add tests ensuring zero-Duration timeouts result in errors.
...
Part of https://github.com/rust-lang/rust/issues/48311
2018-02-18 21:42:02 -05:00
Corey Farwell
472dcdb4ec
Fix broken documentation link.
2018-02-17 20:57:00 -05:00
Tobias Schaffner
2ccaeff582
Refactoring: move net specific fd imps to net
...
Move the implementations of net specific file descriptior implementations
to net. This makes it easier to exclude net at all if not needed for a
target.
2017-08-16 13:27:20 +02:00
Zack M. Davis
1b6c9605e4
use field init shorthand EVERYWHERE
...
Like #43008 (f668999 ), but _much more aggressive_.
2017-08-15 15:29:17 -07:00
Guillaume Gomez
bc6659a8fe
Rollup merge of #43814 - Eijebong:fix_typos2, r=petrochenkov
...
Fix some typos
Follow up of #43794
If refined my script a little bit and found some more.
2017-08-13 11:03:11 +02:00
bors
0ed03e5490
Auto merge of #43348 - kennytm:fix-24658-doc-every-platform, r=alexcrichton
...
Expose all OS-specific modules in libstd doc.
1. Uses the special `--cfg dox` configuration passed by rustbuild when running `rustdoc`. Changes the `#[cfg(platform)]` into `#[cfg(any(dox, platform))]` so that platform-specific API are visible to rustdoc.
2. Since platform-specific implementations often won't compile correctly on other platforms, `rustdoc` is changed to apply `everybody_loops` to the functions during documentation and doc-test harness.
3. Since platform-specific code are documented on all platforms now, it could confuse users who found a useful API but is non-portable. Also, their examples will be doc-tested, so must be excluded when not testing on the native platform. An undocumented attribute `#[doc(cfg(...))]` is introduced to serve the above purposed.
Fixes #24658 (Does _not_ fully implement #1998 ).
2017-08-13 03:00:20 +00:00
Bastien Orivel
3ab86fbab2
Fix some typos
2017-08-12 14:01:11 +02:00
kennytm
3093bb85f9
Fix error during cross-platform documentation.
2017-08-12 12:07:39 +08:00
Foucher
27d7e61f1b
Fix typo corersponding -> corresponding
2017-08-10 08:49:40 +02:00
Steven Fackler
ecbb896b9e
Add Read::initializer.
...
This is an API that allows types to indicate that they can be passed
buffers of uninitialized memory which can improve performance.
2017-06-20 20:26:22 -07:00
Marco A L Barbosa
b45c631382
Fix libc::bind call on aarch64-linux-android
2017-03-25 11:03:06 -03:00
Corey Farwell
dee6989b43
Rollup merge of #40457 - frewsxcv:frewsxcv-macos, r=steveklabnik
...
Update usages of 'OSX' (and other old names) to 'macOS'.
As of last year with version 'Sierra', the Mac operating system is now
called 'macOS'.
2017-03-17 08:48:52 -04:00
Corey Farwell
e7b0f2badf
Remove function invokation parens from documentation links.
...
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
2017-03-13 21:43:18 -04:00
Corey Farwell
97a1b6a055
Update usages of 'OSX' (and other old names) to 'macOS'.
...
As of last year with version 'Sierra', the Mac operating system is now
called 'macOS'.
2017-03-12 14:59:04 -04:00
Alex Crichton
214a6c6166
Fix compile errors and such
2016-12-20 14:09:50 -08:00
Guillaume Gomez
2938e6a411
Add missing doc examples for UnixDatagram
2016-12-16 11:14:16 +01:00
Guillaume Gomez
a78a33c52a
Add Incoming doc examples
2016-12-08 09:43:38 -08:00
Guillaume Gomez
c35b9f6703
Add UnixListener doc examples
2016-12-08 09:43:38 -08:00
Guillaume Gomez
7fe17f96d5
Add doc examples for UnixStream
2016-12-08 09:43:33 -08:00
Guillaume Gomez
9976f5f7c5
Add missing doc examples for SocketAddr struct
2016-12-08 09:38:43 -08:00
Mathieu Poumeyrol
14f9cbdfd5
use MSG_NOSIGNAL on all relevant platforms
2016-10-09 13:01:29 +02:00
bors
5045d4e396
Auto merge of #36824 - kali:master, r=alexcrichton
...
SO_NOSIGPIPE and MSG_NOSIGNAL (rebased #36426 )
I'm not sure what happened when I pushed a rebased branch on #36426 , github closed it...
2016-10-01 01:19:47 -07:00
Brian Anderson
096670ca41
Ignore various entire test modules on emscripten
2016-09-30 14:02:56 -07:00
Brian Anderson
9c4a01ee9e
Ignore lots and lots of std tests on emscripten
2016-09-30 14:02:48 -07:00
Mathieu Poumeyrol
5980d5bfdd
use MSG_NOSIGNAL from liblibc
2016-09-28 19:44:20 +02:00
Mathieu Poumeyrol
ed5e542819
MSG_NOSIGNAL on linux
2016-09-28 19:43:11 +02:00
Jeffrey Seyfried
9a2c8783d9
Use #[prelude_import] in libstd.
2016-08-24 22:12:48 +00:00
Pietro Albini
907a20c9e4
Clarify std::os::unix::net::SocketAddr::is_unnamed's docstring
2016-08-10 17:53:25 +02:00
Pietro Albini
e3ebe8bc02
Fix docs typo in std::os::unix::net::SocketAddr::is_unnamed
2016-08-10 17:34:50 +02:00
Alex Crichton
cae91d7c8c
std: Stabilize APIs for the 1.10 release
...
This commit applies the FCP decisions made by the libs team for the 1.10 cycle,
including both new stabilizations and deprecations. Specifically, the list of
APIs is:
Stabilized:
* `os::windows::fs::OpenOptionsExt::access_mode`
* `os::windows::fs::OpenOptionsExt::share_mode`
* `os::windows::fs::OpenOptionsExt::custom_flags`
* `os::windows::fs::OpenOptionsExt::attributes`
* `os::windows::fs::OpenOptionsExt::security_qos_flags`
* `os::unix::fs::OpenOptionsExt::custom_flags`
* `sync::Weak::new`
* `Default for sync::Weak`
* `panic::set_hook`
* `panic::take_hook`
* `panic::PanicInfo`
* `panic::PanicInfo::payload`
* `panic::PanicInfo::location`
* `panic::Location`
* `panic::Location::file`
* `panic::Location::line`
* `ffi::CStr::from_bytes_with_nul`
* `ffi::CStr::from_bytes_with_nul_unchecked`
* `ffi::FromBytesWithNulError`
* `fs::Metadata::modified`
* `fs::Metadata::accessed`
* `fs::Metadata::created`
* `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
* `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
* `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
* `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
* `SocketAddr::is_unnamed`
* `SocketAddr::as_pathname`
* `UnixStream::connect`
* `UnixStream::pair`
* `UnixStream::try_clone`
* `UnixStream::local_addr`
* `UnixStream::peer_addr`
* `UnixStream::set_read_timeout`
* `UnixStream::set_write_timeout`
* `UnixStream::read_timeout`
* `UnixStream::write_Timeout`
* `UnixStream::set_nonblocking`
* `UnixStream::take_error`
* `UnixStream::shutdown`
* Read/Write/RawFd impls for `UnixStream`
* `UnixListener::bind`
* `UnixListener::accept`
* `UnixListener::try_clone`
* `UnixListener::local_addr`
* `UnixListener::set_nonblocking`
* `UnixListener::take_error`
* `UnixListener::incoming`
* RawFd impls for `UnixListener`
* `UnixDatagram::bind`
* `UnixDatagram::unbound`
* `UnixDatagram::pair`
* `UnixDatagram::connect`
* `UnixDatagram::try_clone`
* `UnixDatagram::local_addr`
* `UnixDatagram::peer_addr`
* `UnixDatagram::recv_from`
* `UnixDatagram::recv`
* `UnixDatagram::send_to`
* `UnixDatagram::send`
* `UnixDatagram::set_read_timeout`
* `UnixDatagram::set_write_timeout`
* `UnixDatagram::read_timeout`
* `UnixDatagram::write_timeout`
* `UnixDatagram::set_nonblocking`
* `UnixDatagram::take_error`
* `UnixDatagram::shutdown`
* RawFd impls for `UnixDatagram`
* `{BTree,Hash}Map::values_mut`
* `<[_]>::binary_search_by_key`
Deprecated:
* `StaticCondvar` - this, and all other static synchronization primitives
below, are usable today through the lazy-static crate on
stable Rust today. Additionally, we'd like the non-static
versions to be directly usable in a static context one day,
so they're unlikely to be the final forms of the APIs in any
case.
* `CONDVAR_INIT`
* `StaticMutex`
* `MUTEX_INIT`
* `StaticRwLock`
* `RWLOCK_INIT`
* `iter::Peekable::is_empty`
Closes #27717
Closes #27720
cc #27784 (but encode methods still exist)
Closes #30014
Closes #30425
Closes #30449
Closes #31190
Closes #31399
Closes #31767
Closes #32111
Closes #32281
Closes #32312
Closes #32551
Closes #33018
2016-05-24 09:00:39 -07:00
Jorge Aparicio
2628f3cc8f
fix alignment
2016-03-22 22:03:54 -05:00
Jorge Aparicio
0f02309e4b
try! -> ?
...
Automated conversion using the untry tool [1] and the following command:
```
$ find -name '*.rs' -type f | xargs untry
```
at the root of the Rust repo.
[1]: https://github.com/japaric/untry
2016-03-22 22:01:37 -05:00
Steven Fackler
c0d989ed6b
Add unix socket support to the standard library
2016-03-20 18:57:58 -07:00