summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorItamar Reis Peixoto <itamar@itamar.ispbrasil.com.br>2009-10-02 20:35:54 -0300
committerItamar Reis Peixoto <itamar@itamar.ispbrasil.com.br>2009-10-02 20:35:54 -0300
commit580c2e160be238f4abb46bd75fcf24bdd9768c2e (patch)
tree58d8c94f27e48d8aee8ff20ac7babb132b8eedee /error.c
downloadcdb-580c2e160be238f4abb46bd75fcf24bdd9768c2e.zip
cdb-580c2e160be238f4abb46bd75fcf24bdd9768c2e.tar.gz
cdb-580c2e160be238f4abb46bd75fcf24bdd9768c2e.tar.xz
initial importHEADmaster
Diffstat (limited to 'error.c')
-rw-r--r--error.c109
1 files changed, 109 insertions, 0 deletions
diff --git a/error.c b/error.c
new file mode 100644
index 0000000..e1ab13c
--- /dev/null
+++ b/error.c
@@ -0,0 +1,109 @@
+#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