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#ifndef AT_FDCWD
15#define AT_FDCWD			-100	/* CWD FD for the *at() functions */
16#endif
17
18/*
19 * Miscellaneous flags for the *at() syscalls.
20 */
21#ifndef AT_EACCESS
22#define AT_EACCESS			0x100	/* faccessat() */
23#endif
24#ifndef AT_SYMLINK_NOFOLLOW
25#define AT_SYMLINK_NOFOLLOW	0x200	/* fstatat(), fchmodat(), fchownat(),
26									   utimensat() */
27#endif
28#ifndef AT_SYMLINK_FOLLOW
29#define AT_SYMLINK_FOLLOW	0x400	/* linkat() */
30#endif
31#ifndef AT_REMOVEDIR
32#define AT_REMOVEDIR		0x800	/* unlinkat() */
33#endif
34
35__BEGIN_DECLS
36
37int unlinkat(int fd, const char *path, int flag);
38int futimesat(int fd, const char *path, const struct timeval times[2]);
39
40__END_DECLS
41
42#endif	// _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL
43