aboutsummaryrefslogtreecommitdiff
path: root/error_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'error_table.h')
-rw-r--r--error_table.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/error_table.h b/error_table.h
new file mode 100644
index 0000000..8221a90
--- /dev/null
+++ b/error_table.h
@@ -0,0 +1,19 @@
+#include <errno.h>
+
+static struct error_table table[] = {
+ {EACCES, "Permission denied"},
+ {EINVAL, "Invalid argument"},
+ {EIO, "I/O error"},
+ {EISDIR, "Is a directory"},
+ {ELOOP, "Too many symbolic links"},
+ {ENAMETOOLONG, "File name too long"},
+ {ENOENT, "No such file or directory"},
+ {ENOEXEC, "Exec format error"},
+ {ENOMEM, "Out of memory"},
+ {ENOSYS, "Function not implemented"},
+ {ENOTDIR, "Not a directory"},
+ {EROFS, "Read-only file system"},
+ {ETXTBSY, "Text file busy"},
+ {ESPIPE, "Illegal seek"},
+ {0,0}
+};