diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2021-04-29 13:47:28 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2021-04-30 00:11:03 -0700 |
| commit | ffb874ac90947c6ffa87af0e80b362bf84442d76 (patch) | |
| tree | f776bc6e917d842a990c6d11de5e06798c1b47f2 /compiler/rustc_codegen_llvm/src | |
| parent | 814a560072c305d274affc78219e4a7e0558252f (diff) | |
| download | rust-ffb874ac90947c6ffa87af0e80b362bf84442d76.tar.gz rust-ffb874ac90947c6ffa87af0e80b362bf84442d76.zip | |
Add std::os::unix::fs::chroot to change the root directory of the current process
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 the unsafe `libc::chroot` directly and handle errors manually, in a program that may otherwise be entirely safe code.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
