Move the lstat() declaration to <sys/stat.h>.
[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
8 Depends-on:
9 include_next
10 link-warning
11
12 configure.ac:
13 gl_HEADER_SYS_STAT_H
14 AC_PROG_MKDIR_P
15
16 Makefile.am:
17 BUILT_SOURCES += $(SYS_STAT_H)
18
19 # We need the following in order to create <sys/stat.h> when the system
20 # has one that is incomplete.
21 sys/stat.h: sys_stat.in.h
22         @MKDIR_P@ sys
23         rm -f $@-t $@
24         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27               -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
28               -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
29               -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
30               -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
31               -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
32               -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
33               -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
34               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
35               < $(srcdir)/sys_stat.in.h; \
36         } > $@-t
37         mv $@-t $@
38 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
39 MOSTLYCLEANDIRS += sys
40
41 Include:
42 #include <sys/stat.h>
43
44 License:
45 LGPLv2+
46
47 Maintainer:
48 all