diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-09-17 17:41:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-17 17:41:18 +0200 |
| commit | 723d27934bcf7b8ded74c8a90298fdaece99ebd2 (patch) | |
| tree | bf6fa85463a0f428c8f68b268e97b544bf52fe0a /compiler/rustc_codegen_llvm/src | |
| parent | 6f5c09849ed46b767922675d18e9d7fcbfbb69e2 (diff) | |
| parent | 862d89e3b5ba092d95586fc2a33b23d1c8672087 (diff) | |
| download | rust-723d27934bcf7b8ded74c8a90298fdaece99ebd2.tar.gz rust-723d27934bcf7b8ded74c8a90298fdaece99ebd2.zip | |
Rollup merge of #88953 - joshtriplett:chown, r=dtolnay
Add chown functions to std::os::unix::fs to change the owner and group of files This is a straightforward wrapper that uses the existing helpers for C string handling and errno handling. Having this available is convenient for UNIX utility programs written in Rust, and avoids having to call unsafe functions like `libc::chown` directly and handle errors manually, in a program that may otherwise be entirely safe code. In addition, these functions provide a more Rustic interface by accepting appropriate traits and using `None` rather than `-1`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
