From: Matthias Kruk Date: Tue, 17 Sep 2019 07:22:55 +0000 (+0900) Subject: Add errno.h header with some preliminary error definitions X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=99baf98096a1c55f62ba329f9784170213991692;p=corax Add errno.h header with some preliminary error definitions --- 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 */