diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2021-09-14 18:29:38 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2021-09-14 19:10:05 -0700 |
| commit | 4840f67fcbe02fe6428a0a29bcf329401242b739 (patch) | |
| tree | f088da8a322d63cb07d60032f92387a122f5d6e1 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | c3c0f80d6081092faff801542dd82f0e2420152b (diff) | |
| download | rust-4840f67fcbe02fe6428a0a29bcf329401242b739.tar.gz rust-4840f67fcbe02fe6428a0a29bcf329401242b739.zip | |
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 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
