1 /* Provide a more complete sys/stat.h header file.
2 Copyright (C) 2005-2018 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, see <https://www.gnu.org/licenses/>. */
17 /* Written by Eric Blake, Paul Eggert, and Jim Meyering. */
19 /* This file is supposed to be used on platforms where <sys/stat.h> is
20 incomplete. It is intended to provide definitions and prototypes
21 needed by an application. Start with what the system provides. */
24 @PRAGMA_SYSTEM_HEADER@
28 #if defined __need_system_sys_stat_h
29 /* Special invocation convention. */
31 #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@
34 /* Normal invocation convention. */
36 #ifndef _@GUARD_PREFIX@_SYS_STAT_H
39 May also define off_t to a 64-bit type on native Windows. */
40 #include <sys/types.h>
42 /* Get struct timespec. */
45 /* The include_next requires a split double-inclusion guard. */
46 #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@
48 #ifndef _@GUARD_PREFIX@_SYS_STAT_H
49 #define _@GUARD_PREFIX@_SYS_STAT_H
51 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
53 /* The definition of _GL_ARG_NONNULL is copied here. */
55 /* The definition of _GL_WARN_ON_USE is copied here. */
57 /* Before doing "#define mkdir rpl_mkdir" below, we need to include all
58 headers that may declare mkdir(). Native Windows platforms declare mkdir
59 in <io.h> and/or <direct.h>, not in <unistd.h>. */
60 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
61 # include <io.h> /* mingw32, mingw64 */
62 # include <direct.h> /* mingw64, MSVC 9 */
65 /* Native Windows platforms declare umask() in <io.h>. */
66 #if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
70 /* Large File Support on native Windows. */
71 #if @WINDOWS_64_BIT_ST_SIZE@
72 # define stat _stati64
75 /* Optionally, override 'struct stat' on native Windows. */
76 #if @GNULIB_OVERRIDES_STRUCT_STAT@
80 # define stat rpl_stat
82 /* Provoke a clear link error if stat() is used as a function and
83 module 'stat' is not in use. */
84 # define stat stat_used_without_requesting_gnulib_module_stat
87 # if !GNULIB_defined_struct_stat
96 # else /* uid_t is not defined by default on native Windows. */
101 # else /* gid_t is not defined by default on native Windows. */
107 blksize_t st_blksize
;
111 # if @WINDOWS_STAT_TIMESPEC@
112 struct timespec st_atim
;
113 struct timespec st_mtim
;
114 struct timespec st_ctim
;
121 # if @WINDOWS_STAT_TIMESPEC@
122 # define st_atime st_atim.tv_sec
123 # define st_mtime st_mtim.tv_sec
124 # define st_ctime st_ctim.tv_sec
125 /* Indicator, for gnulib internal purposes. */
126 # define _GL_WINDOWS_STAT_TIMESPEC 1
128 # define GNULIB_defined_struct_stat 1
131 /* Other possible values of st_mode. */
133 # define _S_IFBLK 0x6000
136 # define _S_IFLNK 0xA000
139 # define _S_IFSOCK 0xC000
146 # define S_IFIFO _S_IFIFO
151 # define S_IFMT 0170000
154 #if STAT_MACROS_BROKEN
170 # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
172 # define S_ISBLK(m) 0
178 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
180 # define S_ISCHR(m) 0
186 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
188 # define S_ISDIR(m) 0
192 #ifndef S_ISDOOR /* Solaris 2.5 and up */
193 # define S_ISDOOR(m) 0
198 # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
200 # define S_ISFIFO(m) 0
206 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
208 # define S_ISLNK(m) 0
212 #ifndef S_ISMPB /* V7 */
214 # define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
215 # define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
217 # define S_ISMPB(m) 0
218 # define S_ISMPC(m) 0
222 #ifndef S_ISMPX /* AIX */
223 # define S_ISMPX(m) 0
226 #ifndef S_ISNAM /* Xenix */
228 # define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM)
230 # define S_ISNAM(m) 0
234 #ifndef S_ISNWK /* HP/UX */
236 # define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
238 # define S_ISNWK(m) 0
242 #ifndef S_ISPORT /* Solaris 10 and up */
243 # define S_ISPORT(m) 0
248 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
250 # define S_ISREG(m) 0
256 # define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
258 # define S_ISSOCK(m) 0
264 # define S_TYPEISMQ(p) 0
268 # define S_TYPEISTMO(p) 0
274 # define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM)
276 # define S_TYPEISSEM(p) 0
282 # define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD)
284 # define S_TYPEISSHM(p) 0
288 /* high performance ("contiguous data") */
290 # define S_ISCTG(p) 0
293 /* Cray DMF (data migration facility): off line, with data */
295 # define S_ISOFD(p) 0
298 /* Cray DMF (data migration facility): off line, with no data */
300 # define S_ISOFL(p) 0
303 /* 4.4BSD whiteout */
305 # define S_ISWHT(m) 0
308 /* If any of the following are undefined,
309 define them to their de facto standard values. */
311 # define S_ISUID 04000
314 # define S_ISGID 02000
317 /* S_ISVTX is a common extension to POSIX. */
319 # define S_ISVTX 01000
322 #if !S_IRUSR && S_IREAD
323 # define S_IRUSR S_IREAD
326 # define S_IRUSR 00400
329 # define S_IRGRP (S_IRUSR >> 3)
332 # define S_IROTH (S_IRUSR >> 6)
335 #if !S_IWUSR && S_IWRITE
336 # define S_IWUSR S_IWRITE
339 # define S_IWUSR 00200
342 # define S_IWGRP (S_IWUSR >> 3)
345 # define S_IWOTH (S_IWUSR >> 6)
348 #if !S_IXUSR && S_IEXEC
349 # define S_IXUSR S_IEXEC
352 # define S_IXUSR 00100
355 # define S_IXGRP (S_IXUSR >> 3)
358 # define S_IXOTH (S_IXUSR >> 6)
362 # define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
365 # define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)
368 # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
371 /* S_IXUGO is a common extension to POSIX. */
373 # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
377 # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO)
380 /* Macros for futimens and utimensat. */
382 # define UTIME_NOW (-1)
383 # define UTIME_OMIT (-2)
387 #if @GNULIB_FCHMODAT@
388 # if !@HAVE_FCHMODAT@
389 _GL_FUNCDECL_SYS (fchmodat
, int,
390 (int fd
, char const *file
, mode_t mode
, int flag
)
391 _GL_ARG_NONNULL ((2)));
393 _GL_CXXALIAS_SYS (fchmodat
, int,
394 (int fd
, char const *file
, mode_t mode
, int flag
));
395 _GL_CXXALIASWARN (fchmodat
);
396 #elif defined GNULIB_POSIXCHECK
398 # if HAVE_RAW_DECL_FCHMODAT
399 _GL_WARN_ON_USE (fchmodat
, "fchmodat is not portable - "
400 "use gnulib module openat for portability");
407 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
409 # define fstat rpl_fstat
411 _GL_FUNCDECL_RPL (fstat
, int, (int fd
, struct stat
*buf
) _GL_ARG_NONNULL ((2)));
412 _GL_CXXALIAS_RPL (fstat
, int, (int fd
, struct stat
*buf
));
414 _GL_CXXALIAS_SYS (fstat
, int, (int fd
, struct stat
*buf
));
416 _GL_CXXALIASWARN (fstat
);
417 #elif @GNULIB_OVERRIDES_STRUCT_STAT@
419 # define fstat fstat_used_without_requesting_gnulib_module_fstat
420 #elif @WINDOWS_64_BIT_ST_SIZE@
421 /* Above, we define stat to _stati64. */
422 # define fstat _fstati64
423 #elif defined GNULIB_POSIXCHECK
425 # if HAVE_RAW_DECL_FSTAT
426 _GL_WARN_ON_USE (fstat
, "fstat has portability problems - "
427 "use gnulib module fstat for portability");
433 # if @REPLACE_FSTATAT@
434 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
436 # define fstatat rpl_fstatat
438 _GL_FUNCDECL_RPL (fstatat
, int,
439 (int fd
, char const *name
, struct stat
*st
, int flags
)
440 _GL_ARG_NONNULL ((2, 3)));
441 _GL_CXXALIAS_RPL (fstatat
, int,
442 (int fd
, char const *name
, struct stat
*st
, int flags
));
445 _GL_FUNCDECL_SYS (fstatat
, int,
446 (int fd
, char const *name
, struct stat
*st
, int flags
)
447 _GL_ARG_NONNULL ((2, 3)));
449 _GL_CXXALIAS_SYS (fstatat
, int,
450 (int fd
, char const *name
, struct stat
*st
, int flags
));
452 _GL_CXXALIASWARN (fstatat
);
453 #elif @GNULIB_OVERRIDES_STRUCT_STAT@
455 # define fstatat fstatat_used_without_requesting_gnulib_module_fstatat
456 #elif defined GNULIB_POSIXCHECK
458 # if HAVE_RAW_DECL_FSTATAT
459 _GL_WARN_ON_USE (fstatat
, "fstatat is not portable - "
460 "use gnulib module openat for portability");
465 #if @GNULIB_FUTIMENS@
466 /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our futimens
467 implementation relies on futimesat, which on Solaris 10 makes an invocation
468 to futimens that is meant to invoke the libc's futimens(), not gnulib's
470 # if @REPLACE_FUTIMENS@ || (!@HAVE_FUTIMENS@ && defined __sun)
471 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
473 # define futimens rpl_futimens
475 _GL_FUNCDECL_RPL (futimens
, int, (int fd
, struct timespec
const times
[2]));
476 _GL_CXXALIAS_RPL (futimens
, int, (int fd
, struct timespec
const times
[2]));
478 # if !@HAVE_FUTIMENS@
479 _GL_FUNCDECL_SYS (futimens
, int, (int fd
, struct timespec
const times
[2]));
481 _GL_CXXALIAS_SYS (futimens
, int, (int fd
, struct timespec
const times
[2]));
484 _GL_CXXALIASWARN (futimens
);
486 #elif defined GNULIB_POSIXCHECK
488 # if HAVE_RAW_DECL_FUTIMENS
489 _GL_WARN_ON_USE (futimens
, "futimens is not portable - "
490 "use gnulib module futimens for portability");
496 /* Change the mode of FILENAME to MODE, without dereferencing it if FILENAME
497 denotes a symbolic link. */
499 /* The lchmod replacement follows symbolic links. Callers should take
500 this into account; lchmod should be applied only to arguments that
501 are known to not be symbolic links. On hosts that lack lchmod,
502 this can lead to race conditions between the check and the
503 invocation of lchmod, but we know of no workarounds that are
504 reliable in general. You might try requesting support for lchmod
505 from your operating system supplier. */
506 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
507 # define lchmod chmod
509 /* Need to cast, because on mingw, the second parameter of chmod is
511 _GL_CXXALIAS_RPL_CAST_1 (lchmod
, chmod
, int,
512 (const char *filename
, mode_t mode
));
514 # if 0 /* assume already declared */
515 _GL_FUNCDECL_SYS (lchmod
, int, (const char *filename
, mode_t mode
)
516 _GL_ARG_NONNULL ((1)));
518 _GL_CXXALIAS_SYS (lchmod
, int, (const char *filename
, mode_t mode
));
521 _GL_CXXALIASWARN (lchmod
);
523 #elif defined GNULIB_POSIXCHECK
525 # if HAVE_RAW_DECL_LCHMOD
526 _GL_WARN_ON_USE (lchmod
, "lchmod is unportable - "
527 "use gnulib module lchmod for portability");
534 /* mingw does not support symlinks, therefore it does not have lstat. But
535 without links, stat does just fine. */
536 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
539 _GL_CXXALIAS_RPL_1 (lstat
, stat
, int, (const char *name
, struct stat
*buf
));
540 # elif @REPLACE_LSTAT@
541 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
543 # define lstat rpl_lstat
545 _GL_FUNCDECL_RPL (lstat
, int, (const char *name
, struct stat
*buf
)
546 _GL_ARG_NONNULL ((1, 2)));
547 _GL_CXXALIAS_RPL (lstat
, int, (const char *name
, struct stat
*buf
));
549 _GL_CXXALIAS_SYS (lstat
, int, (const char *name
, struct stat
*buf
));
552 _GL_CXXALIASWARN (lstat
);
554 #elif @GNULIB_OVERRIDES_STRUCT_STAT@
556 # define lstat lstat_used_without_requesting_gnulib_module_lstat
557 #elif defined GNULIB_POSIXCHECK
559 # if HAVE_RAW_DECL_LSTAT
560 _GL_WARN_ON_USE (lstat
, "lstat is unportable - "
561 "use gnulib module lstat for portability");
567 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
569 # define mkdir rpl_mkdir
571 _GL_FUNCDECL_RPL (mkdir
, int, (char const *name
, mode_t mode
)
572 _GL_ARG_NONNULL ((1)));
573 _GL_CXXALIAS_RPL (mkdir
, int, (char const *name
, mode_t mode
));
575 /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments.
576 Additionally, it declares _mkdir (and depending on compile flags, an
577 alias mkdir), only in the nonstandard includes <direct.h> and <io.h>,
578 which are included above. */
579 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
581 # if !GNULIB_defined_rpl_mkdir
583 rpl_mkdir (char const *name
, mode_t mode
)
585 return _mkdir (name
);
587 # define GNULIB_defined_rpl_mkdir 1
590 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
591 # define mkdir rpl_mkdir
593 _GL_CXXALIAS_RPL (mkdir
, int, (char const *name
, mode_t mode
));
595 _GL_CXXALIAS_SYS (mkdir
, int, (char const *name
, mode_t mode
));
598 _GL_CXXALIASWARN (mkdir
);
603 _GL_FUNCDECL_SYS (mkdirat
, int, (int fd
, char const *file
, mode_t mode
)
604 _GL_ARG_NONNULL ((2)));
606 _GL_CXXALIAS_SYS (mkdirat
, int, (int fd
, char const *file
, mode_t mode
));
607 _GL_CXXALIASWARN (mkdirat
);
608 #elif defined GNULIB_POSIXCHECK
610 # if HAVE_RAW_DECL_MKDIRAT
611 _GL_WARN_ON_USE (mkdirat
, "mkdirat is not portable - "
612 "use gnulib module openat for portability");
618 # if @REPLACE_MKFIFO@
619 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
621 # define mkfifo rpl_mkfifo
623 _GL_FUNCDECL_RPL (mkfifo
, int, (char const *file
, mode_t mode
)
624 _GL_ARG_NONNULL ((1)));
625 _GL_CXXALIAS_RPL (mkfifo
, int, (char const *file
, mode_t mode
));
628 _GL_FUNCDECL_SYS (mkfifo
, int, (char const *file
, mode_t mode
)
629 _GL_ARG_NONNULL ((1)));
631 _GL_CXXALIAS_SYS (mkfifo
, int, (char const *file
, mode_t mode
));
633 _GL_CXXALIASWARN (mkfifo
);
634 #elif defined GNULIB_POSIXCHECK
636 # if HAVE_RAW_DECL_MKFIFO
637 _GL_WARN_ON_USE (mkfifo
, "mkfifo is not portable - "
638 "use gnulib module mkfifo for portability");
643 #if @GNULIB_MKFIFOAT@
644 # if !@HAVE_MKFIFOAT@
645 _GL_FUNCDECL_SYS (mkfifoat
, int, (int fd
, char const *file
, mode_t mode
)
646 _GL_ARG_NONNULL ((2)));
648 _GL_CXXALIAS_SYS (mkfifoat
, int, (int fd
, char const *file
, mode_t mode
));
649 _GL_CXXALIASWARN (mkfifoat
);
650 #elif defined GNULIB_POSIXCHECK
652 # if HAVE_RAW_DECL_MKFIFOAT
653 _GL_WARN_ON_USE (mkfifoat
, "mkfifoat is not portable - "
654 "use gnulib module mkfifoat for portability");
661 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
663 # define mknod rpl_mknod
665 _GL_FUNCDECL_RPL (mknod
, int, (char const *file
, mode_t mode
, dev_t dev
)
666 _GL_ARG_NONNULL ((1)));
667 _GL_CXXALIAS_RPL (mknod
, int, (char const *file
, mode_t mode
, dev_t dev
));
670 _GL_FUNCDECL_SYS (mknod
, int, (char const *file
, mode_t mode
, dev_t dev
)
671 _GL_ARG_NONNULL ((1)));
673 /* Need to cast, because on OSF/1 5.1, the third parameter is '...'. */
674 _GL_CXXALIAS_SYS_CAST (mknod
, int, (char const *file
, mode_t mode
, dev_t dev
));
676 _GL_CXXALIASWARN (mknod
);
677 #elif defined GNULIB_POSIXCHECK
679 # if HAVE_RAW_DECL_MKNOD
680 _GL_WARN_ON_USE (mknod
, "mknod is not portable - "
681 "use gnulib module mknod for portability");
688 _GL_FUNCDECL_SYS (mknodat
, int,
689 (int fd
, char const *file
, mode_t mode
, dev_t dev
)
690 _GL_ARG_NONNULL ((2)));
692 _GL_CXXALIAS_SYS (mknodat
, int,
693 (int fd
, char const *file
, mode_t mode
, dev_t dev
));
694 _GL_CXXALIASWARN (mknodat
);
695 #elif defined GNULIB_POSIXCHECK
697 # if HAVE_RAW_DECL_MKNODAT
698 _GL_WARN_ON_USE (mknodat
, "mknodat is not portable - "
699 "use gnulib module mkfifoat for portability");
706 # if !@GNULIB_OVERRIDES_STRUCT_STAT@
707 /* We can't use the object-like #define stat rpl_stat, because of
708 struct stat. This means that rpl_stat will not be used if the user
709 does (stat)(a,b). Oh well. */
710 # if defined _AIX && defined stat && defined _LARGE_FILES
711 /* With _LARGE_FILES defined, AIX (only) defines stat to stat64,
712 so we have to replace stat64() instead of stat(). */
714 # define stat64(name, st) rpl_stat (name, st)
715 # elif @WINDOWS_64_BIT_ST_SIZE@
716 /* Above, we define stat to _stati64. */
717 # if defined __MINGW32__ && defined _stati64
718 # ifndef _USE_32BIT_TIME_T
719 /* The system headers define _stati64 to _stat64. */
721 # define _stat64(name, st) rpl_stat (name, st)
723 # elif defined _MSC_VER && defined _stati64
724 # ifdef _USE_32BIT_TIME_T
725 /* The system headers define _stati64 to _stat32i64. */
727 # define _stat32i64(name, st) rpl_stat (name, st)
729 /* The system headers define _stati64 to _stat64. */
731 # define _stat64(name, st) rpl_stat (name, st)
735 # define _stati64(name, st) rpl_stat (name, st)
737 # elif defined __MINGW32__ && defined stat
738 # ifdef _USE_32BIT_TIME_T
739 /* The system headers define stat to _stat32i64. */
741 # define _stat32i64(name, st) rpl_stat (name, st)
743 /* The system headers define stat to _stat64. */
745 # define _stat64(name, st) rpl_stat (name, st)
747 # elif defined _MSC_VER && defined stat
748 # ifdef _USE_32BIT_TIME_T
749 /* The system headers define stat to _stat32. */
751 # define _stat32(name, st) rpl_stat (name, st)
753 /* The system headers define stat to _stat64i32. */
755 # define _stat64i32(name, st) rpl_stat (name, st)
757 # else /* !(_AIX || __MINGW32__ || _MSC_VER) */
759 # define stat(name, st) rpl_stat (name, st)
760 # endif /* !_LARGE_FILES */
761 # endif /* !@GNULIB_OVERRIDES_STRUCT_STAT@ */
762 _GL_EXTERN_C
int stat (const char *name
, struct stat
*buf
)
763 _GL_ARG_NONNULL ((1, 2));
765 #elif @GNULIB_OVERRIDES_STRUCT_STAT@
767 #define stat stat_used_without_requesting_gnulib_module_stat
769 #elif defined GNULIB_POSIXCHECK
771 # if HAVE_RAW_DECL_STAT
772 _GL_WARN_ON_USE (stat
, "stat is unportable - "
773 "use gnulib module stat for portability");
778 #if @GNULIB_UTIMENSAT@
779 /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our utimensat
780 implementation relies on futimesat, which on Solaris 10 makes an invocation
781 to utimensat that is meant to invoke the libc's utimensat(), not gnulib's
783 # if @REPLACE_UTIMENSAT@ || (!@HAVE_UTIMENSAT@ && defined __sun)
784 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
786 # define utimensat rpl_utimensat
788 _GL_FUNCDECL_RPL (utimensat
, int, (int fd
, char const *name
,
789 struct timespec
const times
[2], int flag
)
790 _GL_ARG_NONNULL ((2)));
791 _GL_CXXALIAS_RPL (utimensat
, int, (int fd
, char const *name
,
792 struct timespec
const times
[2], int flag
));
794 # if !@HAVE_UTIMENSAT@
795 _GL_FUNCDECL_SYS (utimensat
, int, (int fd
, char const *name
,
796 struct timespec
const times
[2], int flag
)
797 _GL_ARG_NONNULL ((2)));
799 _GL_CXXALIAS_SYS (utimensat
, int, (int fd
, char const *name
,
800 struct timespec
const times
[2], int flag
));
802 # if @HAVE_UTIMENSAT@
803 _GL_CXXALIASWARN (utimensat
);
805 #elif defined GNULIB_POSIXCHECK
807 # if HAVE_RAW_DECL_UTIMENSAT
808 _GL_WARN_ON_USE (utimensat
, "utimensat is not portable - "
809 "use gnulib module utimensat for portability");
814 #endif /* _@GUARD_PREFIX@_SYS_STAT_H */
815 #endif /* _@GUARD_PREFIX@_SYS_STAT_H */