summary refs log tree commit diff
path: root/src/libstd/sys/redox/mod.rs
AgeCommit message (Collapse)AuthorLines
2017-11-09std: Avoid use of `libc` in portable modulesAlex Crichton-0/+1
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-11-08std: Move the `cmath` module into the `sys` moduleAlex Crichton-0/+1
This commit moves the `f32::cmath` and `f64::cmath` modules into the `sys` module. Note that these are not publicly exported modules, simply implementation details. These modules are already platform-specific with shims on MSVC and this is mostly just a reflection of that reality. This should also help cut down on `#[cfg]` traffic if platforms are brought on which don't directly support these functions.
2017-11-08std: Remove `rand` crate and moduleAlex Crichton-0/+2
This commit removes the `rand` crate from the standard library facade as well as the `__rand` module in the standard library. Neither of these were used in any meaningful way in the standard library itself. The only need for randomness in libstd is to initialize the thread-local keys of a `HashMap`, and that unconditionally used `OsRng` defined in the standard library anyway. The cruft of the `rand` crate and the extra `rand` support in the standard library makes libstd slightly more difficult to port to new platforms, namely WebAssembly which doesn't have any randomness at all (without interfacing with JS). The purpose of this commit is to clarify and streamline randomness in libstd, focusing on how it's only required in one location, hashmap seeds. Note that the `rand` crate out of tree has almost always been a drop-in replacement for the `rand` crate in-tree, so any usage (accidental or purposeful) of the crate in-tree should switch to the `rand` crate on crates.io. This then also has the further benefit of avoiding duplication (mostly) between the two crates!
2017-07-12Update mod.rsJeremy Soller-3/+1
2017-07-12Update mod.rsJeremy Soller-17/+1
2017-02-08Fix compilation on RedoxJeremy Soller-1/+1
2016-12-22Remove start functions, use newlib instead of openlibm + rallocJeremy Soller-1/+0
2016-12-20Fix building without backtraceJeremy Soller-0/+1
2016-12-20Move rt into sys::rt, fix tidyJeremy Soller-1/+1
2016-12-15WIP: Cross-compilation for Redox targetJeremy Soller-2/+2
2016-11-28Commit to fix make tidyJeremy Soller-0/+10
2016-11-28Switch to using syscall crate directly - without importJeremy Soller-19/+20
2016-11-03Update to new sys requirementsJeremy Soller-0/+6
2016-10-28Remove unsafe libc layerJeremy Soller-36/+3
2016-10-27Add redox systemJeremy Soller-0/+111