| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-02-08 | Rollup merge of #93206 - ChrisDenton:ntopenfile, r=nagisa | Matthias Krüger | -3/+8 | |
| Use `NtCreateFile` instead of `NtOpenFile` to open a file Generally the internal `Nt*` functions should be avoided but when we do need to use one we should stick to the most commonly used for the job. To that end, this PR replaces `NtOpenFile` with `NtCreateFile`. NOTE: The initial version of this comment hypothesised that this may help with some recent false positives from malware scanners. This hypothesis proved wrong. Sorry for the distraction. | ||||
| 2022-02-04 | Hide Repr details from io::Error, and rework `io::Error::new_const`. | Thom Chiovoloni | -4/+4 | |
| 2022-01-25 | Rollup merge of #88794 - sunfishcode:sunfishcode/try-clone, r=joshtriplett | Matthias Krüger | -1/+1 | |
| Add a `try_clone()` function to `OwnedFd`. As suggested in #88564. This adds a `try_clone()` to `OwnedFd` by refactoring the code out of the existing `File`/`Socket` code. r? ``@joshtriplett`` | ||||
| 2022-01-24 | Use `NtCreateFile` instead of `NtOpenFile` to open a file | Chris Denton | -3/+8 | |
| 2022-01-19 | Fix CVE-2022-21658 for Windows | Chris Denton | -17/+305 | |
| 2021-11-02 | more efficent File::read_buf impl for windows and unix | DrMeepster | -1/+5 | |
| 2021-10-30 | Auto merge of #89174 - ChrisDenton:automatic-verbatim-paths, r=dtolnay | bors | -13/+14 | |
| Automatically convert paths to verbatim for filesystem operations that support it This allows using longer paths without the user needing to `canonicalize` or manually prefix paths. If the path is already verbatim then this has no effect. Fixes: #32689 | ||||
| 2021-10-09 | Apply clippy suggestions | Clemens Wasser | -2/+2 | |
| 2021-10-03 | Automatically convert paths to verbatim | Chris Denton | -13/+14 | |
| This allows using longer paths for filesystem operations without the user needing to `canonicalize` or manually prefix paths. If the path is already verbatim than this has no effect. | ||||
| 2021-09-09 | Fix Windows compilation errors. | Dan Gohman | -1/+1 | |
| 2021-09-09 | Add a `try_clone()` function to `OwnedFd`. | Dan Gohman | -1/+1 | |
| As suggested in #88564. This adds a `try_clone()` to `OwnedFd` by refactoring the code out of the existing `File`/`Socket` code. | ||||
| 2021-09-02 | I/O safety for WinUWP | bdbai | -2/+2 | |
| 2021-08-19 | I/O safety. | Dan Gohman | -22/+51 | |
| Introduce `OwnedFd` and `BorrowedFd`, and the `AsFd` trait, and implementations of `AsFd`, `From<OwnedFd>` and `From<T> for OwnedFd` for relevant types, along with Windows counterparts for handles and sockets. Tracking issue: - <https://github.com/rust-lang/rust/issues/87074> RFC: - <https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md> | ||||
| 2021-06-15 | Rename ErrorKind::Unknown to Uncategorized. | Mara Bos | -1/+1 | |
| 2021-06-15 | Redefine `ErrorKind::Other` and stop using it in std. | Mara Bos | -4/+3 | |
| 2021-05-19 | Windows implementation of `fs::try_exists` | Chris Denton | -1/+29 | |
| 2021-05-19 | Move the implementation of `Path::exists` to `sys_common::fs` so platforms ↵ | Chris Denton | -0/+1 | |
| can specialize it Windows implementation of `fs::try_exists` | ||||
| 2021-04-18 | Rename `NotSupported` to `Unsupported` | Christiaan Dirkx | -1/+4 | |
| 2021-04-18 | Add and insta-stabilize `std::io::ErrorKind::NotSupported` | Christiaan Dirkx | -1/+1 | |
| 2021-03-21 | Use io::Error::new_const everywhere to avoid allocations. | Mara Bos | -3/+3 | |
| 2020-11-14 | Disambiguate symlink argument names | David Tolnay | -17/+22 | |
| 2020-07-27 | mv std libs to library/ | mark | -0/+938 | |
