rust/library/std/src/sys
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
..
common STD support for the ESP-IDF framework 2021-08-10 12:09:00 +03:00
hermit add TcpStream::set_linger and TcpStream::linger 2021-08-30 13:42:52 -04:00
sgx add TcpStream::set_linger and TcpStream::linger 2021-08-30 13:42:52 -04:00
unix Add chown functions to std::os::unix::fs to change the owner and group of files 2021-09-14 19:10:05 -07:00
unsupported add TcpStream::set_linger and TcpStream::linger 2021-08-30 13:42:52 -04:00
wasi add TcpStream::set_linger and TcpStream::linger 2021-08-30 13:42:52 -04:00
wasm Move os_str_bytes to sys::unix and reuse it on other platforms. 2021-07-03 03:01:36 +02:00
windows Auto merge of #87580 - ChrisDenton:win-arg-parse-2008, r=m-ou-se 2021-09-02 16:16:13 +00:00
mod.rs Allow documenting on hermit 2021-05-03 16:56:22 +02:00