2012-08-12 02:26:36 +04:00
|
|
|
#ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL
|
|
|
|
#define _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL
|
|
|
|
|
2012-08-14 02:51:59 +04:00
|
|
|
|
2012-08-12 02:26:36 +04:00
|
|
|
#include_next <fcntl.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
|
2012-08-14 02:51:59 +04:00
|
|
|
|
2012-08-12 02:26:36 +04:00
|
|
|
/*
|
|
|
|
* Magic value that specify the use of the current working directory
|
|
|
|
* to determine the target of relative file paths in the openat() and
|
|
|
|
* similar syscalls.
|
|
|
|
*/
|
2016-12-03 11:01:51 +03:00
|
|
|
#ifndef AT_FDCWD
|
2012-08-12 02:26:36 +04:00
|
|
|
#define AT_FDCWD -100 /* CWD FD for the *at() functions */
|
2016-12-03 11:01:51 +03:00
|
|
|
#endif
|
2012-08-12 02:26:36 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Miscellaneous flags for the *at() syscalls.
|
|
|
|
*/
|
2016-12-03 11:01:51 +03:00
|
|
|
#ifndef AT_EACCESS
|
2012-08-12 02:26:36 +04:00
|
|
|
#define AT_EACCESS 0x100 /* faccessat() */
|
2016-12-03 11:01:51 +03:00
|
|
|
#endif
|
|
|
|
#ifndef AT_SYMLINK_NOFOLLOW
|
2012-08-12 02:26:36 +04:00
|
|
|
#define AT_SYMLINK_NOFOLLOW 0x200 /* fstatat(), fchmodat(), fchownat(),
|
|
|
|
utimensat() */
|
2016-12-03 11:01:51 +03:00
|
|
|
#endif
|
|
|
|
#ifndef AT_SYMLINK_FOLLOW
|
2012-08-12 02:26:36 +04:00
|
|
|
#define AT_SYMLINK_FOLLOW 0x400 /* linkat() */
|
2016-12-03 11:01:51 +03:00
|
|
|
#endif
|
|
|
|
#ifndef AT_REMOVEDIR
|
2012-08-12 02:26:36 +04:00
|
|
|
#define AT_REMOVEDIR 0x800 /* unlinkat() */
|
2016-12-03 11:01:51 +03:00
|
|
|
#endif
|
2012-08-12 02:26:36 +04:00
|
|
|
|
2012-08-12 19:29:21 +04:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2012-08-12 02:26:36 +04:00
|
|
|
int unlinkat(int fd, const char *path, int flag);
|
|
|
|
int futimesat(int fd, const char *path, const struct timeval times[2]);
|
|
|
|
|
2012-08-12 19:29:21 +04:00
|
|
|
__END_DECLS
|
2012-08-12 02:26:36 +04:00
|
|
|
|
|
|
|
#endif // _HAIKU_BUILD_COMPATIBILITY_DARWIN_FCNTL
|