1 #ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL
2 #define _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL
5 #include_next <fcntl.h>
10 * Magic value that specify the use of the current working directory
11 * to determine the target of relative file paths in the openat() and
15 #define AT_FDCWD -100 /* CWD FD for the *at() functions */
19 * Miscellaneous flags for the *at() syscalls.
22 #define AT_EACCESS 0x100 /* faccessat() */
24 #ifndef AT_SYMLINK_NOFOLLOW
25 #define AT_SYMLINK_NOFOLLOW 0x200 /* fstatat(), fchmodat(), fchownat(),
28 #ifndef AT_SYMLINK_FOLLOW
29 #define AT_SYMLINK_FOLLOW 0x400 /* linkat() */
32 #define AT_REMOVEDIR 0x800 /* unlinkat() */
37 int unlinkat(int fd
, const char *path
, int flag
);
38 int futimesat(int fd
, const char *path
, const struct timeval times
[2]);
42 #endif // _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL