mkfifoat: Work around trailing slash bug in mknodat() on AIX 7.2.
[gnulib.git] / modules / sys_stat
blob26971975e4e0fbdd97a24ee23fa8b134ac706241
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_MKDIR''@/$(GNULIB_MKDIR)/g' \
46               -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \
47               -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \
48               -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \
49               -e 's/@''GNULIB_MKNOD''@/$(GNULIB_MKNOD)/g' \
50               -e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \
51               -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
52               -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
53               -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
54               -e 's/@''GNULIB_MDA_CHMOD''@/$(GNULIB_MDA_CHMOD)/g' \
55               -e 's/@''GNULIB_MDA_MKDIR''@/$(GNULIB_MDA_MKDIR)/g' \
56               -e 's/@''GNULIB_MDA_UMASK''@/$(GNULIB_MDA_UMASK)/g' \
57               -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
58               -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
59               -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
60               -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \
61               -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
62               -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
63               -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
64               -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
65               -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
66               -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
67               -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
68               -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
69               -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \
70               -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
71               -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
72               -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
73               -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
74               -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
75               -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
76               -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \
77               -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
78               -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \
79               -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
80               -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
81               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
82               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
83               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
84               < $(srcdir)/sys_stat.in.h; \
85         } > $@-t && \
86         mv $@-t $@
87 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
88 MOSTLYCLEANDIRS += sys
90 Include:
91 <sys/stat.h>
93 License:
94 LGPLv2+
96 Maintainer:
97 all