xref: /haiku/headers/build/host/freebsd/sys/stat.h (revision 70449c90d95aeea01b25f686d51da4217fe41317)
1 #ifndef _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT
2 #define _HAIKU_BUILD_COMPATIBILITY_FREEBSD_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 #endif	/* _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT */
31