diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-16 17:25:20 +0000 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-16 17:25:20 +0000 |
commit | 500036a206188dc8f57bf95a7c61616db417038e (patch) | |
tree | 995bd87026215d6c17296cb0fc6e6e48833f289f /src/fcntl.rs | |
parent | 96ae786550c983eb82b4c060fd323c4855fbb311 (diff) | |
parent | 273fb635cc3a97ab09e412e813783469ca436a33 (diff) | |
download | nix-500036a206188dc8f57bf95a7c61616db417038e.zip |
Merge #1058
1058: Implement unlinkat r=asomers a=jlb6740
This adds the unlinkat function, which is part of POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/unlinkat.html
and widely implmented on Unix-family platforms.
Co-authored-by: Johnnie Birch <45402135+jlb6740@users.noreply.github.com>
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r-- | src/fcntl.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs index 2201873a..d99c2c1a 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -23,6 +23,7 @@ pub use self::posix_fadvise::*; libc_bitflags!{ pub struct AtFlags: c_int { + AT_REMOVEDIR; AT_SYMLINK_NOFOLLOW; #[cfg(any(target_os = "android", target_os = "linux"))] AT_NO_AUTOMOUNT; |