xref: /haiku/headers/build/host/freebsd/sys/stat.h (revision 25a7b01d15612846f332751841da3579db313082)
162f5df58SIngo Weinhold #ifndef _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT
262f5df58SIngo Weinhold #define _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT
362f5df58SIngo Weinhold 
4*19a18af3SJohn Scipione 
562f5df58SIngo Weinhold #include_next <sys/stat.h>
6363c147dSIngo Weinhold #include <sys/cdefs.h>
7363c147dSIngo Weinhold 
8*19a18af3SJohn Scipione 
962f5df58SIngo Weinhold #ifndef UTIME_NOW
1062f5df58SIngo Weinhold #	define UTIME_NOW	(-1)
1162f5df58SIngo Weinhold #	define UTIME_OMIT	(-2)
1262f5df58SIngo Weinhold 
13363c147dSIngo Weinhold 	__BEGIN_DECLS
14363c147dSIngo Weinhold 
1562f5df58SIngo Weinhold 	/* assume that futimens() and utimensat() aren't available */
1662f5df58SIngo Weinhold 	int futimens(int fd, const struct timespec times[2]);
1762f5df58SIngo Weinhold 	int utimensat(int fd, const char* path, const struct timespec times[2],
1862f5df58SIngo Weinhold 		int flag);
1962f5df58SIngo Weinhold 
20363c147dSIngo Weinhold 	__END_DECLS
21363c147dSIngo Weinhold 
2262f5df58SIngo Weinhold #	ifndef _HAIKU_BUILD_NO_FUTIMENS
2362f5df58SIngo Weinhold #		define _HAIKU_BUILD_NO_FUTIMENS		1
2462f5df58SIngo Weinhold #	endif
2562f5df58SIngo Weinhold #	ifndef _HAIKU_BUILD_NO_UTIMENSAT
2662f5df58SIngo Weinhold #		define _HAIKU_BUILD_NO_UTIMENSAT	1
2762f5df58SIngo Weinhold #	endif
2862f5df58SIngo Weinhold #endif
2962f5df58SIngo Weinhold 
3062f5df58SIngo Weinhold #endif	/* _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT */
31