From 99baf98096a1c55f62ba329f9784170213991692 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Tue, 17 Sep 2019 16:22:55 +0900 Subject: [PATCH] Add errno.h header with some preliminary error definitions --- include/corax/errno.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/corax/errno.h diff --git a/include/corax/errno.h b/include/corax/errno.h new file mode 100644 index 0000000..ce031a3 --- /dev/null +++ b/include/corax/errno.h @@ -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 . + */ + +#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 */ -- 2.47.3