| ... | @@ -939,3 +939,23 @@ pub fn S_IWHT(m: u32) bool { | ... | @@ -939,3 +939,23 @@ pub fn S_IWHT(m: u32) bool { |
| 939 | } | 939 | } |
| 940 | | 940 | |
| 941 | pub const HOST_NAME_MAX = 255; | 941 | pub const HOST_NAME_MAX = 255; |
| | 942 | |
| | 943 | /// Magic value that specify the use of the current working directory |
| | 944 | /// to determine the target of relative file paths in the openat() and |
| | 945 | /// similar syscalls. |
| | 946 | pub const AT_FDCWD = -100; |
| | 947 | |
| | 948 | /// Check access using effective user and group ID |
| | 949 | pub const AT_EACCESS = 0x0100; |
| | 950 | |
| | 951 | /// Do not follow symbolic links |
| | 952 | pub const AT_SYMLINK_NOFOLLOW = 0x0200; |
| | 953 | |
| | 954 | /// Follow symbolic link |
| | 955 | pub const AT_SYMLINK_FOLLOW = 0x0400; |
| | 956 | |
| | 957 | /// Remove directory instead of file |
| | 958 | pub const AT_REMOVEDIR = 0x0800; |
| | 959 | |
| | 960 | /// Fail if not under dirfd |
| | 961 | pub const AT_BENEATH = 0x1000; |