1 #ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL 2 #define _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL 3 4 5 #include_next <fcntl.h> 6 #include <sys/time.h> 7 8 9 /* 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 12 * similar syscalls. 13 */ 14 #define AT_FDCWD -100 /* CWD FD for the *at() functions */ 15 16 /* 17 * Miscellaneous flags for the *at() syscalls. 18 */ 19 #define AT_EACCESS 0x100 /* faccessat() */ 20 #define AT_SYMLINK_NOFOLLOW 0x200 /* fstatat(), fchmodat(), fchownat(), 21 utimensat() */ 22 #define AT_SYMLINK_FOLLOW 0x400 /* linkat() */ 23 #define AT_REMOVEDIR 0x800 /* unlinkat() */ 24 25 __BEGIN_DECLS 26 27 int unlinkat(int fd, const char *path, int flag); 28 int futimesat(int fd, const char *path, const struct timeval times[2]); 29 30 __END_DECLS 31 32 #endif // _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL 33