diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-04-11 01:56:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-11 01:56:26 +0200 |
| commit | b24d2ad300c4864e6fdb88c872365c559d38b241 (patch) | |
| tree | 0c3c02f774b56016be6baf7ddf00714da5f40c81 /compiler/rustc_codegen_gcc | |
| parent | ae887662869bd5c32ef75d19845fa2aeb32def1e (diff) | |
| parent | f0fd5ad5d7d2650c144505ad7f2476c3ba1710b7 (diff) | |
| download | rust-b24d2ad300c4864e6fdb88c872365c559d38b241.tar.gz rust-b24d2ad300c4864e6fdb88c872365c559d38b241.zip | |
Rollup merge of #123756 - lukas-code:file-sync, r=jhpratt
clean up docs for `File::sync_*` * Clarify that `sync_all` also writes data and not just metadata. * Clarify that dropping a file is not equivalent to calling `sync_all` and ignoring the result. `sync_all` the still the recommended way to detect errors before closing, because we don't have a dedicated method for that. * Add a link from `sync_all` to `sync_data`, because that's what the user might want to use instead. * Add doc aliases for `fsync` -> `sync_all` and `fdatasync` -> `sync_data`. Those are the POSIX standard names for these functions. I was trying to find out what we call `fsync` in Rust and had to search through the source code to find it, so this alias should help with that in the future.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
