Merge branch 'stable'
[gnulib.git] / modules / sys_stat
1 Description:
2 A <sys/stat.h> for systems with missing declarations.
3
4 Files:
5 lib/sys_stat.in.h
6 m4/sys_stat_h.m4
7 m4/unistd_h.m4
8
9 Depends-on:
10 include_next
11 link-warning
12 arg-nonnull
13 time
14
15 configure.ac:
16 gl_HEADER_SYS_STAT_H
17 AC_PROG_MKDIR_P
18
19 Makefile.am:
20 BUILT_SOURCES += sys/stat.h
21
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 $(LINK_WARNING_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_LINK_WARNING/r $(LINK_WARNING_H)' \
64               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
65               < $(srcdir)/sys_stat.in.h; \
66         } > $@-t && \
67         mv $@-t $@
68 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
69 MOSTLYCLEANDIRS += sys
70
71 Include:
72 <sys/stat.h>
73
74 License:
75 LGPLv2+
76
77 Maintainer:
78 all