summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/error.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-06-01 23:07:51 -0700
committerJohn Denker <jsd@av8n.com>2012-06-02 17:30:23 -0700
commit0d0f7a0e7c32842edff533246a1f8523306f9ab0 (patch)
tree43dbb2fffaa8d490731969f39f5d20832523bd5d /ucspi-tcp-0.88/error.c
parent94c58d7f8cabd9b1ff4c33c57a6ff76cdf3f955e (diff)
as downloaded : ucspi-tcp
Diffstat (limited to 'ucspi-tcp-0.88/error.c')
-rw-r--r--ucspi-tcp-0.88/error.c116
1 files changed, 116 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/error.c b/ucspi-tcp-0.88/error.c
new file mode 100644
index 0000000..ea16ff9
--- /dev/null
+++ b/ucspi-tcp-0.88/error.c
@@ -0,0 +1,116 @@
+#include <errno.h>
+#include "error.h"
+
+/* warning: as coverage improves here, should update error_{str,temp} */
+
+int error_intr =
+#ifdef EINTR
+EINTR;
+#else
+-1;
+#endif
+
+int error_nomem =
+#ifdef ENOMEM
+ENOMEM;
+#else
+-2;
+#endif
+
+int error_noent =
+#ifdef ENOENT
+ENOENT;
+#else
+-3;
+#endif
+
+int error_txtbsy =
+#ifdef ETXTBSY
+ETXTBSY;
+#else
+-4;
+#endif
+
+int error_io =
+#ifdef EIO
+EIO;
+#else
+-5;
+#endif
+
+int error_exist =
+#ifdef EEXIST
+EEXIST;
+#else
+-6;
+#endif
+
+int error_timeout =
+#ifdef ETIMEDOUT
+ETIMEDOUT;
+#else
+-7;
+#endif
+
+int error_inprogress =
+#ifdef EINPROGRESS
+EINPROGRESS;
+#else
+-8;
+#endif
+
+int error_wouldblock =
+#ifdef EWOULDBLOCK
+EWOULDBLOCK;
+#else
+-9;
+#endif
+
+int error_again =
+#ifdef EAGAIN
+EAGAIN;
+#else
+-10;
+#endif
+
+int error_pipe =
+#ifdef EPIPE
+EPIPE;
+#else
+-11;
+#endif
+
+int error_perm =
+#ifdef EPERM
+EPERM;
+#else
+-12;
+#endif
+
+int error_acces =
+#ifdef EACCES
+EACCES;
+#else
+-13;
+#endif
+
+int error_nodevice =
+#ifdef ENXIO
+ENXIO;
+#else
+-14;
+#endif
+
+int error_proto =
+#ifdef EPROTO
+EPROTO;
+#else
+-15;
+#endif
+
+int error_isdir =
+#ifdef EISDIR
+EISDIR;
+#else
+-16;
+#endif