2 A <sys/stat.h> for systems with missing declarations.
20 BUILT_SOURCES += sys/stat.h
22 # We need the following in order to create <sys/stat.h> when the system
23 # has one that is incomplete.
24 sys/stat.h: sys_stat.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
25 $(AM_V_at)$(MKDIR_P) sys
26 $(AM_V_GEN)rm -f $@-t $@ && \
27 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
31 -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
32 -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
33 -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \
34 -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
35 -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
36 -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
37 -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \
38 -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
39 -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \
40 -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
41 -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \
42 -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \
43 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
44 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
45 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
46 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
47 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
48 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
49 -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
50 -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
51 -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
52 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
53 -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
54 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
55 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
56 -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
57 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
58 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
59 -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
60 -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
61 -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
62 -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
63 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
64 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
65 < $(srcdir)/sys_stat.in.h; \
68 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
69 MOSTLYCLEANDIRS += sys