summaryrefslogtreecommitdiff
path: root/error_temp.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-06-01 18:58:45 -0700
committerJohn Denker <jsd@av8n.com>2012-06-01 18:58:45 -0700
commitb732a73bc773789894466b0e5320b2f1fe42c7e9 (patch)
tree385358983f064a1f10a5080b33a3ba13010886db /error_temp.c
parent634d365a03cb0581a062cd3cf4db9ae69f1cde26 (diff)
original, as downloaded from http://www.qmail.org/netqmail-1.06.tar.gz
Diffstat (limited to 'error_temp.c')
-rw-r--r--error_temp.c80
1 files changed, 80 insertions, 0 deletions
diff --git a/error_temp.c b/error_temp.c
new file mode 100644
index 0000000..6782cef
--- /dev/null
+++ b/error_temp.c
@@ -0,0 +1,80 @@
+#include <errno.h>
+#include "error.h"
+
+#define X(n) if (e == n) return 1;
+
+int error_temp(e)
+int e;
+{
+ X(error_intr)
+ X(error_nomem)
+ X(error_txtbsy)
+ X(error_io)
+ X(error_timeout)
+ X(error_wouldblock)
+ X(error_again)
+#ifdef EDEADLK
+ X(EDEADLK)
+#endif
+#ifdef EBUSY
+ X(EBUSY)
+#endif
+#ifdef ENFILE
+ X(ENFILE)
+#endif
+#ifdef EMFILE
+ X(EMFILE)
+#endif
+#ifdef EFBIG
+ X(EFBIG)
+#endif
+#ifdef ENOSPC
+ X(ENOSPC)
+#endif
+#ifdef ENETDOWN
+ X(ENETDOWN)
+#endif
+#ifdef ENETUNREACH
+ X(ENETUNREACH)
+#endif
+#ifdef ENETRESET
+ X(ENETRESET)
+#endif
+#ifdef ECONNABORTED
+ X(ECONNABORTED)
+#endif
+#ifdef ECONNRESET
+ X(ECONNRESET)
+#endif
+#ifdef ENOBUFS
+ X(ENOBUFS)
+#endif
+#ifdef ETOOMANYREFS
+ X(ETOOMANYREFS)
+#endif
+#ifdef ECONNREFUSED
+ X(ECONNREFUSED)
+#endif
+#ifdef EHOSTDOWN
+ X(EHOSTDOWN)
+#endif
+#ifdef EHOSTUNREACH
+ X(EHOSTUNREACH)
+#endif
+#ifdef EPROCLIM
+ X(EPROCLIM)
+#endif
+#ifdef EUSERS
+ X(EUSERS)
+#endif
+#ifdef EDQUOT
+ X(EDQUOT)
+#endif
+#ifdef ESTALE
+ X(ESTALE)
+#endif
+#ifdef ENOLCK
+ X(ENOLCK)
+#endif
+ return 0;
+}