Files
rust/library/std/src/sys/unix
Josh Triplett 4840f67fcb 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`.
2021-09-14 19:10:05 -07:00
..
2021-08-19 12:02:39 -07:00
2021-07-21 10:53:43 -07:00
2021-08-19 12:02:40 -07:00
2021-08-10 12:09:00 +03:00
2021-08-10 12:09:00 +03:00
2021-04-28 14:25:04 +02:00
2021-08-10 12:09:00 +03:00
2021-08-19 12:02:39 -07:00
2020-11-12 03:40:15 +00:00
2021-08-10 12:09:00 +03:00
2021-08-30 14:00:21 -04:00
2021-08-10 12:09:00 +03:00
2021-08-19 12:02:39 -07:00
2021-08-10 12:09:00 +03:00
2021-06-01 09:07:55 +02:00
2021-08-19 12:02:39 -07:00
2021-08-10 12:09:00 +03:00
2021-08-01 11:19:24 -04:00