about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-30 12:19:37 +0000
committerbors <bors@rust-lang.org>2021-04-30 12:19:37 +0000
commit7506228e2e688517ae142fc385f13b30c4ce07f1 (patch)
tree879f2baa5c33cfdf975885b1949df21db5e1b444 /compiler/rustc_codegen_llvm/src
parent49920bc581743d6edb9f82fbff4cbafebc212619 (diff)
parentffb874ac90947c6ffa87af0e80b362bf84442d76 (diff)
downloadrust-7506228e2e688517ae142fc385f13b30c4ce07f1.tar.gz
rust-7506228e2e688517ae142fc385f13b30c4ce07f1.zip
Auto merge of #84716 - joshtriplett:chroot, r=dtolnay
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