]> git.corax.cc Git - corax/commitdiff
Add errno.h header with some preliminary error definitions
authorMatthias Kruk <m@m10k.eu>
Tue, 17 Sep 2019 07:22:55 +0000 (16:22 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 17 Sep 2019 07:22:55 +0000 (16:22 +0900)
include/corax/errno.h [new file with mode: 0644]

diff --git a/include/corax/errno.h b/include/corax/errno.h
new file mode 100644 (file)
index 0000000..ce031a3
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * This file is part of the Corax operating system.
+ * Copyright (C) 2016-2019 Matthias Kruk
+ *
+ * Corax is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Corax is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Corax.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __CORAX_ERRNO_H
+#define __CORAX_ERRNO_H
+
+#define EINVAL   1
+#define ENOSYS   2
+#define EALREADY 3
+#define EAGAIN   4
+#define ENOMEM   5
+#define EFAULT   6
+
+#endif /* __CORAX_ERRNO_H */