select: Fix "warning: no previous prototype for function".
[gnulib.git] / modules / sys_stat
blob42ae93275d410745c384ef4663ae904804668bcf
1 Description:
2 A <sys/stat.h> for systems with missing declarations.
4 Files:
5 lib/sys_stat.in.h
6 m4/sys_stat_h.m4
7 m4/unistd_h.m4
8 m4/pid_t.m4
10 Depends-on:
11 include_next
12 snippet/arg-nonnull
13 snippet/c++defs
14 snippet/warn-on-use
15 sys_types
16 time
18 configure.ac:
19 gl_HEADER_SYS_STAT_H
20 AC_PROG_MKDIR_P
22 Makefile.am:
23 BUILT_SOURCES += sys/stat.h
25 # We need the following in order to create <sys/stat.h> when the system
26 # has one that is incomplete.
27 sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
28         $(AM_V_at)$(MKDIR_P) sys
29         $(AM_V_GEN)rm -f $@-t $@ && \
30         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
31           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
32               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
33               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
34               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
35               -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
36               -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \
37               -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \
38               -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \
39               -e 's/@''GNULIB_FSTAT''@/$(GNULIB_FSTAT)/g' \
40               -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \
41               -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \
42               -e 's/@''GNULIB_GETUMASK''@/$(GNULIB_GETUMASK)/g' \
43               -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \
44               -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \
45               -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \
46               -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \
47               -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \
48               -e 's/@''GNULIB_MKNOD''@/$(GNULIB_MKNOD)/g' \
49               -e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \
50               -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
51               -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
52               -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
53               -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
54               -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
55               -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
56               -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \
57               -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
58               -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
59               -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
60               -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
61               -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
62               -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
63               -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
64               -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
65               -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \
66               -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
67               -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
68               -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
69               -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
70               -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
71               -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
72               -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
73               -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
74               -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
75               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
76               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
77               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
78               < $(srcdir)/sys_stat.in.h; \
79         } > $@-t && \
80         mv $@-t $@
81 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
82 MOSTLYCLEANDIRS += sys
84 Include:
85 <sys/stat.h>
87 License:
88 LGPLv2+
90 Maintainer:
91 all