* MODULES.html.sh: Add sys_stat.
authorEric Blake <ebb9@byu.net>
Thu, 29 Jun 2006 22:21:39 +0000 (22:21 +0000)
committerEric Blake <ebb9@byu.net>
Thu, 29 Jun 2006 22:21:39 +0000 (22:21 +0000)
* modules/sys_stat: New module.
* modules/mkstemp (Depends-on): Add sys_stat.

ChangeLog
MODULES.html.sh
modules/mkstemp
modules/sys_stat [new file with mode: 0644]

index 0f19d40722c7800aa3c07d51ad8def5ae7ac8266..0d2978a57866de5a5567250c67ad88c240a566a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-29  Eric Blake  <ebb9@byu.net>
+
+       * MODULES.html.sh: Add sys_stat.
+       * modules/sys_stat: New module.
+       * modules/mkstemp (Depends-on): Add sys_stat.
+
 2006-06-29  Jim Meyering  <jim@meyering.net>
 
        * modules/strftime (Maintainer): Add my name, since with the
index 87229c11ab4d225e6552084a9f26cd868552fa48..dc91ae013fdbecfbc07b616ad1bb785efa48af76 100755 (executable)
@@ -1808,6 +1808,7 @@ func_all_modules ()
   func_module rmdir
   func_module ssize_t
   func_module strtok_r
+  func_module sys_stat
   func_module unistd
   func_module utime
   func_module wcwidth
index deddaea57c08eef341a3e52138aa37248492505b..e56ced20da1100267dad714669bf0b7af0a0a579 100644 (file)
@@ -12,6 +12,7 @@ m4/mkstemp.m4
 
 Depends-on:
 stat-macros
+sys_stat
 
 configure.ac:
 gl_FUNC_MKSTEMP
diff --git a/modules/sys_stat b/modules/sys_stat
new file mode 100644 (file)
index 0000000..c1b4765
--- /dev/null
@@ -0,0 +1,35 @@
+Description:
+A <sys/stat.h> for systems with missing declarations.
+
+Files:
+lib/stat_.h
+m4/full-header-path.m4
+m4/sys_stat_h.m4
+
+Depends-on:
+
+configure.ac:
+gl_HEADER_SYS_STAT_H
+
+Makefile.am:
+BUILT_SOURCES += $(SYS_STAT_H)
+EXTRA_DIST += stat_.h
+
+# We need the following in order to create <sys/stat.h> when the system
+# has one that is incomplete.
+sys/stat.h: stat_.h
+       test -d sys || mkdir sys
+       sed -e 's|@''FULL_PATH_SYS_STAT_H''@|$(FULL_PATH_SYS_STAT_H)|g' \
+           < $(srcdir)/stat_.h > $@-t
+       mv $@-t $@
+MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
+MOSTLYCLEANDIRS += sys
+
+Include:
+#include <sys/stat.h>
+
+License:
+LGPL
+
+Maintainer:
+Eric Blake