2011-11-28 04:32:04 +01:00
|
|
|
#ifndef _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT
|
|
|
|
#define _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT
|
|
|
|
|
2012-08-13 18:51:59 -04:00
|
|
|
|
2011-11-28 04:32:04 +01:00
|
|
|
#include_next <sys/stat.h>
|
2011-11-28 05:11:35 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
2012-08-13 18:51:59 -04:00
|
|
|
|
2011-11-28 04:32:04 +01:00
|
|
|
#ifndef UTIME_NOW
|
|
|
|
# define UTIME_NOW (-1)
|
|
|
|
# define UTIME_OMIT (-2)
|
|
|
|
|
2011-11-28 05:11:35 +01:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2011-11-28 04:32:04 +01:00
|
|
|
/* assume that futimens() and utimensat() aren't available */
|
2012-08-11 18:26:36 -04:00
|
|
|
int futimens(int fd, const struct timespec times[2]);
|
2011-11-28 04:32:04 +01:00
|
|
|
int utimensat(int fd, const char* path, const struct timespec times[2],
|
|
|
|
int flag);
|
|
|
|
|
2011-11-28 05:11:35 +01:00
|
|
|
__END_DECLS
|
|
|
|
|
2011-11-28 04:32:04 +01:00
|
|
|
# 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
|
|
|
|
|
|
|
|
#endif /* _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT */
|