summary refs log tree commit diff
path: root/src/libstd/sys_common/gnu
AgeCommit message (Collapse)AuthorLines
2017-12-22fix some errors in libstdMichael Hewson-1/+1
2017-11-09std: Avoid use of `libc` in portable modulesAlex Crichton-4/+4
This commit removes usage of the `libc` crate in "portable" modules like those at the top level and `sys_common`. Instead common types like `*mut u8` or `u32` are used instead of `*mut c_void` or `c_int` as well as switching to platform-specific functions like `sys::strlen` instead of `libc::strlen`.
2017-09-12Correctly bubble up errors from libbacktraceAidan Hobson Sayers-15/+23
2017-03-10travis: Fuchsia builderPetr Hosek-3/+0
This change introduces a Dockerfile and script which builds a complete Fuchsia toolchain which can be used to build Rust distribution for Fuchsia. We only support cross-compiling at the moment, hence only setting the target.
2017-02-15Improve backtrace formating while panicking.Yamakaky-163/+181
- `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-06std: Remove cfg(cargobuild) annotationsAlex Crichton-3/+0
These are all now no longer needed that we've only got rustbuild in tree.
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-11-01std: Move sys_common to libstd/sys_commonBrian Anderson-0/+196
Make the directory structure reflect the module structure. I've always found the existing structure confusing.