1 #ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT 2 #define _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT 3 4 5 #include_next <sys/stat.h> 6 #include <sys/cdefs.h> 7 8 9 #ifndef UTIME_NOW 10 # define UTIME_NOW (-1) 11 # define UTIME_OMIT (-2) 12 13 __BEGIN_DECLS 14 15 /* assume that futimens() and utimensat() aren't available */ 16 int futimens(int fd, const struct timespec times[2]); 17 int utimensat(int fd, const char* path, const struct timespec times[2], 18 int flag); 19 20 __END_DECLS 21 22 # ifndef _HAIKU_BUILD_NO_FUTIMENS 23 # define _HAIKU_BUILD_NO_FUTIMENS 1 24 # endif 25 # ifndef _HAIKU_BUILD_NO_UTIMENSAT 26 # define _HAIKU_BUILD_NO_UTIMENSAT 1 27 # endif 28 #endif 29 30 __BEGIN_DECLS 31 32 int fchmodat(int fd, const char* path, mode_t mode, int flag); 33 int fstatat(int fd, const char *path, struct stat *st, int flag); 34 int mkdirat(int fd, const char *path, mode_t mode); 35 int mkfifoat(int fd, const char *path, mode_t mode); 36 int mknodat(int fd, const char *name, mode_t mode, dev_t dev); 37 38 __END_DECLS 39 40 #endif /* _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT */ 41