about summary refs log tree commit diff
path: root/src/libstd/sys_common
AgeCommit message (Collapse)AuthorLines
2017-02-23Fix tests on Windows (#1)Vadim Petrochenkov-40/+56
2017-02-15Improve backtrace formating while panicking.Yamakaky-189/+408
- `RUST_BACKTRACE=full` prints all the informations (old behaviour) - `RUST_BACKTRACE=(0|no)` disables the backtrace. - `RUST_BACKTRACE=<everything else>` (including `1`) shows a simplified backtrace, without the function addresses and with cleaned filenames and symbols. Also removes some unneded frames at the beginning and the end. Fixes #37783. PR is #38165.
2017-02-14Conversions between CStr/OsStr/Path and boxes.Clar Charr-0/+19
2017-02-06std: Remove cfg(cargobuild) annotationsAlex Crichton-5/+2
These are all now no longer needed that we've only got rustbuild in tree.
2017-02-05Rollup merge of #38983 - APTy:udp-peek, r=aturonCorey Farwell-11/+13
Add peek APIs to std::net Adds "peek" APIs to `std::net` sockets, including: - `UdpSocket.peek()` - `UdpSocket.peek_from()` - `TcpStream.peek()` These methods enable socket reads without side-effects. That is, repeated calls to `peek()` return identical data. This is accomplished by providing the POSIX flag `MSG_PEEK` to the underlying socket read operations. This also moves the current implementation of `recv_from` out of the platform-independent `sys_common` and into respective `sys/windows` and `sys/unix` implementations. This allows for more platform-dependent implementations where necessary. Fixes #38980
2017-02-04libstd/net: Add `peek` APIs to UdpSocket and TcpStreamTyler Julian-11/+13
These methods enable socket reads without side-effects. That is, repeated calls to peek() return identical data. This is accomplished by providing the POSIX flag MSG_PEEK to the underlying socket read operations. This also moves the current implementation of recv_from out of the platform-independent sys_common and into respective sys/windows and sys/unix implementations. This allows for more platform-dependent implementations.
2017-01-27Attempt at fixing dead code lintsSegev Finer-1/+1
2017-01-24Make backtraces work on Windows GNU targets again.Segev Finer-1/+16
This is done by adding a function that can return a filename to pass to backtrace_create_state. The filename is obtained in a safe way by first getting the filename, locking the file so it can't be moved, and then getting the filename again and making sure it's the same. See: https://github.com/rust-lang/rust/pull/37359#issuecomment-260123399 Issue: #33985
2016-12-20Fix compile errors and suchAlex Crichton-0/+1
2016-11-10Merge branch 'master' into redoxJeremy Soller-1/+1
2016-11-10Use target_os = redox for cfgJeremy Soller-2/+2
2016-11-10doc: fix typosTshepang Lekhonkhobe-1/+1
2016-11-03Merge branch 'master' into redoxJeremy Soller-0/+3939
2016-11-01Clean up and add more comments to libstd/lib.rsBrian Anderson-12/+4
2016-11-01Document sys_common and sysBrian Anderson-0/+14
2016-11-01std: Move sys_common to libstd/sys_commonBrian Anderson-0/+3928
Make the directory structure reflect the module structure. I've always found the existing structure confusing.