2012-03-01 04:42:59 +04:00
|
|
|
#ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT
|
|
|
|
#define _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT
|
|
|
|
|
2012-08-14 02:51:59 +04:00
|
|
|
|
2012-03-01 04:42:59 +04:00
|
|
|
#include_next <sys/stat.h>
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
2012-08-14 02:51:59 +04:00
|
|
|
|
2012-03-01 04:42:59 +04:00
|
|
|
#ifndef UTIME_NOW
|
|
|
|
# define UTIME_NOW (-1)
|
|
|
|
# define UTIME_OMIT (-2)
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
/* assume that futimens() and utimensat() aren't available */
|
2012-08-12 01:56:22 +04:00
|
|
|
int futimens(int fd, const struct timespec times[2]);
|
2012-03-01 04:42:59 +04:00
|
|
|
int utimensat(int fd, const char* path, const struct timespec times[2],
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
# ifndef _HAIKU_BUILD_NO_FUTIMENS
|
|
|
|
# define _HAIKU_BUILD_NO_FUTIMENS 1
|
|
|
|
# endif
|
|
|
|
# ifndef _HAIKU_BUILD_NO_UTIMENSAT
|
|
|
|
# define _HAIKU_BUILD_NO_UTIMENSAT 1
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2012-08-12 19:29:21 +04:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2012-08-12 02:26:36 +04:00
|
|
|
int fchmodat(int fd, const char* path, mode_t mode, int flag);
|
|
|
|
int fstatat(int fd, const char *path, struct stat *st, int flag);
|
|
|
|
int mkdirat(int fd, const char *path, mode_t mode);
|
|
|
|
int mkfifoat(int fd, const char *path, mode_t mode);
|
|
|
|
int mknodat(int fd, const char *name, mode_t mode, dev_t dev);
|
2012-03-01 04:42:59 +04:00
|
|
|
|
2012-08-12 19:29:21 +04:00
|
|
|
__END_DECLS
|
|
|
|
|
2012-03-09 23:39:24 +04:00
|
|
|
#endif /* _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT */
|