Skip to main content

relibc/header/fcntl/
redox.rs

1use crate::platform::types::c_int;
2
3/// Close the file descriptor upon execution of an `exec` family function and
4/// in the new process image created by `posix_spawn()` or `posix_spawnp()`.
5pub const FD_CLOEXEC: c_int = 0x0100_0000;
6
7// Flags for capability based "at" functions {
8/// Use the current working directory to determine the target of relative file
9/// paths.
10pub const AT_FDCWD: c_int = -100;
11// fchmodat, fchownat, fstatat, utimensat
12/// Do not follow symbolic links.
13pub const AT_SYMLINK_NOFOLLOW: c_int = 0x200;
14// unlinkat
15/// Remove directory instead of file.
16pub const AT_REMOVEDIR: c_int = 0x200;
17// Used by linkat()
18/// Follow symbolic link.
19pub const AT_SYMLINK_FOLLOW: c_int = 0x2000;
20// nonstandard extension, but likely to be in a future standard
21// TODO should be ifdef guarded by _GNU_SOURCE
22/// Non-POSIX, see <https://www.man7.org/linux/man-pages/man2/link.2.html>.
23pub const AT_EMPTY_PATH: c_int = 0x4000;
24// only used for faccessat()
25/// Check access using effective user and group ID.
26pub const AT_EACCESS: c_int = 0x400;
27// }