summaryrefslogtreecommitdiff
path: root/modules/errno
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-09-14 00:41:33 +0200
committerBruno Haible <bruno@clisp.org>2008-09-14 00:41:33 +0200
commit3d37b264049ab3ff324634078c5e726f497e0df2 (patch)
tree0e834e2f8767f9e9ae8b57acd500bb2a7345cd83 /modules/errno
parent54898f0a60a82dd7e9225e97288cb85eeb77f476 (diff)
downloadgnulib-3d37b264049ab3ff324634078c5e726f497e0df2.tar.gz
New module 'errno'.
Diffstat (limited to 'modules/errno')
-rw-r--r--modules/errno44
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/errno b/modules/errno
new file mode 100644
index 0000000000..8806621d5e
--- /dev/null
+++ b/modules/errno
@@ -0,0 +1,44 @@
+Description:
+A POSIX-like <errno.h>.
+
+Files:
+lib/errno.in.h
+m4/errno_h.m4
+
+Depends-on:
+include_next
+
+configure.ac:
+gl_HEADER_ERRNO_H
+
+Makefile.am:
+BUILT_SOURCES += $(ERRNO_H)
+
+# We need the following in order to create <errno.h> when the system
+# doesn't have one that is POSIX compliant.
+errno.h: errno.in.h
+ rm -f $@-t $@
+ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
+ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
+ -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
+ -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
+ -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
+ -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
+ -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
+ -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
+ < $(srcdir)/errno.in.h; \
+ } > $@-t
+ mv $@-t $@
+MOSTLYCLEANFILES += errno.h errno.h-t
+
+Include:
+<errno.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+Bruno Haible
+