mkfifo: new module
[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 time
13
14 configure.ac:
15 gl_HEADER_SYS_STAT_H
16 AC_PROG_MKDIR_P
17
18 Makefile.am:
19 BUILT_SOURCES += sys/stat.h
20
21 # We need the following in order to create <sys/stat.h> when the system
22 # has one that is incomplete.
23 sys/stat.h: sys_stat.in.h
24         $(AM_V_at)$(MKDIR_P) sys
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
30               -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
31               -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
32               -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \
33               -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
34               -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
35               -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
36               -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \
37               -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
38               -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
39               -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \
40               -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \
41               -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
42               -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
43               -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
44               -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
45               -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
46               -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
47               -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
48               -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
49               -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
50               -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
51               -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
52               -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
53               -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
54               -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
55               -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
56               -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
57               -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
58               -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
59               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
60               < $(srcdir)/sys_stat.in.h; \
61         } > $@-t && \
62         mv $@-t $@
63 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
64 MOSTLYCLEANDIRS += sys
65
66 Include:
67 <sys/stat.h>
68
69 License:
70 LGPLv2+
71
72 Maintainer:
73 all