| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-04-03 | wasi: Fill out `std::fs` module for WASI | Alex Crichton | -38/+4 | |
| This commit fills out the `std::fs` module and implementation for WASI. Not all APIs are implemented, such as permissions-related ones and `canonicalize`, but all others APIs have been implemented and very lightly tested so far. We'll eventually want to run a more exhaustive test suite! For now the highlights of this commit are: * The `std::fs::File` type is now backed by `WasiFd`, a raw WASI file descriptor. * All APIs in `std::fs` (except permissions/canonicalize) have implementations for the WASI target. * A suite of unstable extension traits were added to `std::os::wasi::fs`. These traits expose the raw filesystem functionality of WASI, namely `*at` syscalls (opening a file relative to an already opened one, for example). Additionally metadata only available on wasi is exposed through these traits. Perhaps one of the most notable parts is the implementation of path-taking APIs. WASI actually has no fundamental API that just takes a path, but rather everything is relative to a previously opened file descriptor. To allow existing APIs to work (that only take a path) WASI has a few syscalls to learn about "pre opened" file descriptors by the runtime. We use these to build a map of existing directory names to file descriptors, and then when using a path we try to anchor it at an already-opened file. This support is very rudimentary though and is intended to be shared with C since it's likely to be so tricky. For now though the C library doesn't expose quite an API for us to use, so we implement it for now and will swap it out as soon as one is available. | ||||
| 2019-03-31 | libstd: deny(elided_lifetimes_in_paths) | Mazdak Farrokhzad | -2/+2 | |
| 2019-02-28 | libstd => 2018 | Taiki Endo | -12/+12 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-11-06 | refactor: use shorthand fields | teresy | -1/+1 | |
| 2017-12-27 | Implement rename using new system call | Jeremy Soller | -6/+13 | |
| Fix readlink and symlink to utilize O_CLOEXEC | ||||
| 2017-11-09 | Add futex timeout | Jeremy Soller | -2/+1 | |
| 2017-07-12 | Update fs.rs | Jeremy Soller | -1/+1 | |
| 2017-07-12 | Update fs.rs | Jeremy Soller | -2/+3 | |
| 2017-07-12 | Rollup merge of #43100 - ids1024:stat2, r=aturon | Mark Simulacrum | -2/+2 | |
| Redox: add stat methods(); support is_symlink() | ||||
| 2017-07-11 | Redox: Use O_NOFOLLOW for lstat() | Ian Douglas Scott | -1/+4 | |
| 2017-07-06 | Redox: add stat methods(); support is_symlink() | Ian Douglas Scott | -2/+2 | |
| 2017-06-30 | Fix long line | Ian Douglas Scott | -1/+2 | |
| 2017-06-29 | redox: symlink and readlink | Ian Douglas Scott | -4/+10 | |
| 2017-06-20 | Add `Read::initializer`. | Steven Fackler | -4/+0 | |
| This is an API that allows types to indicate that they can be passed buffers of uninitialized memory which can improve performance. | ||||
| 2016-12-23 | Cloexec when creating directories | Jeremy Soller | -1/+1 | |
| 2016-12-23 | Add Debug to OpenOptions and DirBuilder | Jeremy Soller | -1/+2 | |
| 2016-11-28 | Commit to fix make tidy | Jeremy Soller | -5/+9 | |
| 2016-11-28 | Remove file path from std::fs::File | Jeremy Soller | -4/+2 | |
| 2016-11-28 | Switch to using syscall crate directly - without import | Jeremy Soller | -66/+59 | |
| 2016-11-25 | Fix canonicalize | Jeremy Soller | -3/+2 | |
| 2016-11-25 | Use O_DIRECTORY | Jeremy Soller | -9/+12 | |
| 2016-11-23 | Add File set_permissions | Jeremy Soller | -0/+4 | |
| 2016-11-15 | Use chmod instead of fcntl to change file perms | Jeremy Soller | -4/+1 | |
| 2016-11-15 | Add set_perm | Jeremy Soller | -3/+6 | |
| 2016-11-10 | Fix readdir | Jeremy Soller | -7/+11 | |
| 2016-10-29 | Implement env, reentrant mutex, and partially implement scoped thread ↵ | Jeremy Soller | -0/+4 | |
| locals. Better error messages for unsupported features | ||||
| 2016-10-28 | Remove unsafe libc layer | Jeremy Soller | -140/+46 | |
| 2016-10-27 | Add redox system | Jeremy Soller | -0/+554 | |
