bin/pc: Mark non-returning function as void
[haiku.git] / headers / build / host / darwin / fcntl.h
blob38d36c7b09e10afbb73c2bb358b18ee390543646
1 #ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL
2 #define _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL
5 #include_next <fcntl.h>
6 #include <sys/time.h>
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.
14 #ifndef AT_FDCWD
15 #define AT_FDCWD -100 /* CWD FD for the *at() functions */
16 #endif
19 * Miscellaneous flags for the *at() syscalls.
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
35 __BEGIN_DECLS
37 int unlinkat(int fd, const char *path, int flag);
38 int futimesat(int fd, const char *path, const struct timeval times[2]);
40 __END_DECLS
42 #endif // _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL