| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-04-03 | Rollup merge of #109722 - hermitcore:read, r=Mark-Simulacrum | Matthias Krüger | -7/+24 | |
| Implement read_buf for RustHermit In principle, this PR extends rust-lang/rust#108326 for RustyHermit. | ||||
| 2023-03-29 | Rollup merge of #107387 - joboet:hermit_random, r=ChrisDenton | Matthias Krüger | -2/+11 | |
| Use random `HashMap` keys on Hermit Initializing the keys with random data provided by the libOS avoids HashDOS attacks and similar issues. CC `@stlankes` | ||||
| 2023-03-29 | Implement read_buf for RustHermit | Stefan Lankes | -7/+24 | |
| In principle, this PR extends rust-lang/rust#108326 for RustyHermit. Signed-off-by: Stefan Lankes <slankes@eonerc.rwth-aachen.de> | ||||
| 2023-03-29 | std: use `cvt` to handle errors from `read_entropy` on Hermit | joboet | -9/+3 | |
| 2023-03-19 | fix typo in the creation of OpenOption | Stefan Lankes | -1/+1 | |
| Due to this typo we have to build a workaround for issue hermitcore/libhermit-rs#191. RustyHermit is a tier 3 platform and backward compatibility does not have to be guaranteed. | ||||
| 2023-02-27 | use `as_ptr` to determine the address of atomics | Stefan Lankes | -3/+3 | |
| 2023-02-26 | remove unused imports | Stefan Lankes | -1/+0 | |
| 2023-02-26 | std: use random HashMap keys on Hermit | joboet | -2/+17 | |
| 2023-02-24 | remove code duplications | Stefan Lankes | -1/+56 | |
| 2023-02-24 | move IO traits to std/src/os/hermit | Stefan Lankes | -367/+12 | |
| By moving the IO traits, the RustyHermit support is harmonized to of other operating systems. | ||||
| 2023-02-24 | add support of RustyHermit's BSD socket layer | Stefan Lankes | -455/+795 | |
| RustHermit publishs a new kernel interface and supports a common BSD socket layer. By supporting this interface, the implementation can be harmonized to other operating systems. To realize this socket layer, the handling of file descriptors is also harmonized to other operating systems. | ||||
| 2023-02-12 | Hermit: Remove floor symbol | Martin Kröning | -5/+0 | |
| This symbol should be provided by Hermit. | ||||
| 2023-01-17 | refactor[std]: do not use box syntax | joboet | -18/+9 | |
| 2022-11-29 | hermit: Remove unused exports | Martin Kröning | -3/+1 | |
| 2022-11-29 | hermit: Fix fuzzy_provenance_casts | Martin Kröning | -1/+2 | |
| 2022-11-06 | std: remove lock wrappers in `sys_common` | joboet | -3/+3 | |
| 2022-10-13 | std: use `sync::Mutex` for internal statics | joboet | -52/+26 | |
| 2022-10-03 | Reduce CString allocations in std as much as possible | Alex Saveau | -9/+4 | |
| Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com> | ||||
| 2022-09-09 | std: use futex-based locks and thread parker on Hermit | joboet | -452/+47 | |
| 2022-09-08 | Rollup merge of #101423 - mkroening:hermit-warnings, r=sanxiyn | Michael Goulet | -4/+0 | |
| Fix hermit warnings This fixes two `unused_imprt` and one `dead_code` warning for hermit. | ||||
| 2022-09-08 | Rollup merge of #101422 - mkroening:hermit-file-time, r=joshtriplett | Dylan DPC | -0/+12 | |
| Hermit: Add File::set_time stub This is not supported on hermit yet. This change is required for compiling std. | ||||
| 2022-09-04 | Auto merge of #100576 - joboet:movable_const_remutex, r=Mark-Simulacrum | bors | -3/+0 | |
| Make `ReentrantMutex` movable and `const` As `MovableMutex` is now `const`, it can be used to simplify the implementation and interface of the internal reentrant mutex type. Consequently, the standard error stream does not need to be wrapped in `OnceLock` and `OnceLock::get_or_init_pin()` can be removed. | ||||
| 2022-09-05 | Hermit: Remove unused socklen_t (dead_code) | Martin Kröning | -2/+0 | |
| 2022-09-05 | Hermit: Fix unused_imports | Martin Kröning | -2/+0 | |
| 2022-09-05 | Hermit: Add File::set_time stub | Martin Kröning | -0/+12 | |
| This is not supported on hermit yet. This change is required for compiling std. | ||||
| 2022-09-03 | std: make `ReentrantMutex` movable and `const`; simplify `Stdout` initialization | joboet | -3/+0 | |
| 2022-08-28 | Support `#[unix_sigpipe = "inherit|sig_dfl|sig_ign"]` on `fn main()` | Martin Nordholts | -1/+1 | |
| This makes it possible to instruct libstd to never touch the signal handler for `SIGPIPE`, which makes programs pipeable by default (e.g. with `./your-program | head -n 1`) without `ErrorKind::BrokenPipe` errors. | ||||
| 2022-08-18 | Address reviewer comments | Nick Cameron | -1/+1 | |
| Signed-off-by: Nick Cameron <nrc@ncameron.org> | ||||
| 2022-08-05 | non-linux platforms | Nick Cameron | -3/+3 | |
| Signed-off-by: Nick Cameron <nrc@ncameron.org> | ||||
| 2022-06-26 | Hermit: Make Mutex::init a no-op | Martin Kröning | -3/+1 | |
| 2022-06-26 | Hermit: Fix initializing lazy locks | Martin Kröning | -6/+24 | |
| 2022-06-08 | remove unneeded code | Stefan Lankes | -5/+0 | |
| 2022-06-03 | Use Drop instead of destroy() for locks. | Mara Bos | -12/+7 | |
| 2022-05-09 | Use Rust 2021 prelude in std itself. | Mara Bos | -2/+0 | |
| 2022-04-16 | Use a single ReentrantMutex implementation on all platforms. | Mara Bos | -36/+0 | |
| 2022-04-14 | library: Remove definitions and reexports of `strlen` from libstd | Vadim Petrochenkov | -10/+0 | |
| 2022-04-06 | Rename RWLock to RwLock in std::sys. | Mara Bos | -7/+7 | |
| 2022-03-22 | Move std::sys::{mutex, condvar, rwlock} to std::sys::locks. | Mara Bos | -6/+12 | |
| 2022-02-15 | remove compiler warnings | Stefan Lankes | -1/+1 | |
| 2022-02-13 | make Instant::{duration_since, elapsed, sub} saturating and remove workarounds | The8472 | -8/+0 | |
| This removes all mutex/atomics based workarounds for non-monotonic clocks and makes the previously panicking methods saturating instead. Effectively this moves the monotonization from `Instant` construction to the comparisons. This has some observable effects, especially on platforms without monotonic clocks: * Incorrectly ordered Instant comparisons no longer panic. This may hide some programming errors until someone actually looks at the resulting `Duration` * `checked_duration_since` will now return `None` in more cases. Previously it only happened when one compared instants obtained in the wrong order or manually created ones. Now it also does on backslides. The upside is reduced complexity and lower overhead of `Instant::now`. | ||||
| 2022-02-04 | Hide Repr details from io::Error, and rework `io::Error::new_const`. | Thom Chiovoloni | -37/+36 | |
| 2021-12-09 | Auto merge of #81156 - DrMeepster:read_buf, r=joshtriplett | bors | -2/+6 | |
| Implement most of RFC 2930, providing the ReadBuf abstraction This replaces the `Initializer` abstraction for permitting reading into uninitialized buffers, closing #42788. This leaves several APIs described in the RFC out of scope for the initial implementation: * read_buf_vectored * `ReadBufs` Closes #42788, by removing the relevant APIs. | ||||
| 2021-11-24 | Improving the readability | Stefan Lankes | -1/+1 | |
| Co-authored-by: kennytm <kennytm@gmail.com> | ||||
| 2021-11-24 | If the thread does not get the lock in the short term, yield the CPU | Stefan Lankes | -1/+10 | |
| Reduces the amount of wasted processor cycles | ||||
| 2021-11-02 | more efficent File::read_buf impl for windows and unix | DrMeepster | -2/+6 | |
| 2021-10-29 | hermit: Implement Condvar::wait_timeout | Martin Kröning | -2/+14 | |
| 2021-10-16 | remove compiler warnings | Stefan Lankes | -1/+1 | |
| 2021-09-28 | Rename `std::thread::available_onccurrency` to ↵ | Yoshua Wuyts | -1/+1 | |
| `std::thread::available_parallelism` | ||||
| 2021-08-30 | add `TcpStream::set_linger` and `TcpStream::linger` | ibraheemdev | -0/+8 | |
| 2021-08-13 | Don't put hermit mutexes in a box. | Martin Kröning | -1/+1 | |
| Hermit mutexes are movable. | ||||
