summaryrefslogtreecommitdiff
path: root/include/errnum.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/errnum.h')
-rw-r--r--include/errnum.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/errnum.h b/include/errnum.h
new file mode 100644
index 0000000..5faa65c
--- /dev/null
+++ b/include/errnum.h
@@ -0,0 +1,30 @@
+/*
+ * (C) Copyright 2018 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef ERRNUM_H
+#define ERRNUM_H
+
+#include "errnum.h"
+
+typedef enum {
+ ESUCCESS = 0,
+ // Unknown error
+ ENOMEM = 101, // Not enough memory
+ EINTR, // Interrupt
+ EBUSTO, // Bus timeout
+ EUNEXPARG, // Unexpected argument
+ EATRANGE, // Invalid disk number
+ EATALRDY, // Disk already attached
+ EATNOT, // Disk not attached
+ EATOPEN, // Error opening file
+ EATOTHER, // File already attached to other drive
+ ERUNNING, // CPU is running
+ EINVAL, // Invalid argument
+ EEOF, // Unexpected EOF
+
+} ERRNUM;
+
+#endif /* ERRNUM_H */