Impl AT_SYMLINK_NOFOLLOW and AT_EMPTY_PATH
AT_SYMLINK_NOFOLLOW acts on the symlink itself rather than following it. AT_EMPTY_PATH acts on the directory if path is empty. Currently, this is implemented in fstatat itself but the code is general enough to be refactored once we get the other *at functions. It could likely just live in openat itself.
This commit is contained in:
@@ -30,3 +30,5 @@ pub const O_NDELAY: c_int = O_NONBLOCK;
|
||||
|
||||
// Flags for capability based "at" functions
|
||||
pub const AT_FDCWD: c_int = -100;
|
||||
pub const AT_SYMLINK_NOFOLLOW: c_int = 0x0200;
|
||||
pub const AT_EMPTY_PATH: c_int = 0x4000;
|
||||
|
||||
Reference in New Issue
Block a user