summary refs log tree commit diff
path: root/Src/Modules/system.mdd
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Modules/system.mdd')
-rw-r--r--Src/Modules/system.mdd27
1 files changed, 27 insertions, 0 deletions
diff --git a/Src/Modules/system.mdd b/Src/Modules/system.mdd
new file mode 100644
index 000000000..61950994a
--- /dev/null
+++ b/Src/Modules/system.mdd
@@ -0,0 +1,27 @@
+name=zsh/system
+link=dynamic
+load=no
+
+autobins="sysread syswrite syserror"
+
+autoparams="errnos"
+
+objects="system.o errnames.o"
+
+headers="errcount.h"
+
+:<<\Make
+errnames.c: errnames1.awk errnames2.awk $(dir_top)/config.h @ERRNO_H@
+	   if [ x@ERRNO_H@ = x ]; then \
+		touch errtmp.out; \
+	   else \
+		$(AWK) -f $(sdir)/errnames1.awk @ERRNO_H@ >errtmp.c; \
+		$(CPP) errtmp.c >errtmp.out; \
+	   fi
+	   $(AWK) -f $(sdir)/errnames2.awk errtmp.out > $@
+	   rm -f errtmp.c errtmp.out
+
+errcount.h: errnames.c
+	grep 'define.*ERRCOUNT' errnames.c > $@
+Make
+