xref: /freebsd/tools/build/stat.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1*d80f1dd1SJilles Tjoelker /*-
2*d80f1dd1SJilles Tjoelker  * Copyright (c) 2016 Jilles Tjoelker <jilles@FreeBSD.org>
3*d80f1dd1SJilles Tjoelker  * All rights reserved.
4*d80f1dd1SJilles Tjoelker  *
5*d80f1dd1SJilles Tjoelker  * Redistribution and use in source and binary forms, with or without
6*d80f1dd1SJilles Tjoelker  * modification, are permitted provided that the following conditions
7*d80f1dd1SJilles Tjoelker  * are met:
8*d80f1dd1SJilles Tjoelker  * 1. Redistributions of source code must retain the above copyright
9*d80f1dd1SJilles Tjoelker  *    notice, this list of conditions and the following disclaimer.
10*d80f1dd1SJilles Tjoelker  * 2. Redistributions in binary form must reproduce the above copyright
11*d80f1dd1SJilles Tjoelker  *    notice, this list of conditions and the following disclaimer in the
12*d80f1dd1SJilles Tjoelker  *    documentation and/or other materials provided with the distribution.
13*d80f1dd1SJilles Tjoelker  *
14*d80f1dd1SJilles Tjoelker  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*d80f1dd1SJilles Tjoelker  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*d80f1dd1SJilles Tjoelker  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*d80f1dd1SJilles Tjoelker  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*d80f1dd1SJilles Tjoelker  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*d80f1dd1SJilles Tjoelker  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*d80f1dd1SJilles Tjoelker  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*d80f1dd1SJilles Tjoelker  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*d80f1dd1SJilles Tjoelker  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*d80f1dd1SJilles Tjoelker  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*d80f1dd1SJilles Tjoelker  * SUCH DAMAGE.
25*d80f1dd1SJilles Tjoelker  */
26*d80f1dd1SJilles Tjoelker 
27*d80f1dd1SJilles Tjoelker #ifndef _LEGACY_SYS_STAT_H_
28*d80f1dd1SJilles Tjoelker #define	_LEGACY_SYS_STAT_H_
29*d80f1dd1SJilles Tjoelker 
30*d80f1dd1SJilles Tjoelker #include_next <sys/stat.h>
31*d80f1dd1SJilles Tjoelker 
32*d80f1dd1SJilles Tjoelker #ifndef	UTIME_NOW
33*d80f1dd1SJilles Tjoelker #define	UTIME_NOW	-1
34*d80f1dd1SJilles Tjoelker #define	UTIME_OMIT	-2
35*d80f1dd1SJilles Tjoelker #endif
36*d80f1dd1SJilles Tjoelker 
37*d80f1dd1SJilles Tjoelker __BEGIN_DECLS
38*d80f1dd1SJilles Tjoelker 
39*d80f1dd1SJilles Tjoelker int futimens(int, const struct timespec *);
40*d80f1dd1SJilles Tjoelker int utimensat(int, const char *, const struct timespec *, int);
41*d80f1dd1SJilles Tjoelker 
42*d80f1dd1SJilles Tjoelker __END_DECLS
43*d80f1dd1SJilles Tjoelker 
44*d80f1dd1SJilles Tjoelker #endif /* !_LEGACY_SYS_STAT_H_ */
45