os-k/kaleid/include/base/errno.h

84 lines
3.0 KiB
C
Raw Normal View History

2019-01-21 15:00:04 +01:00
//----------------------------------------------------------------------------//
// GNU GPL OS/K //
// //
2019-02-16 23:36:33 +01:00
// Desc: Values for error_t and errno //
2019-01-21 15:00:04 +01:00
// //
2019-02-16 23:36:33 +01:00
// //
// Copyright © 2018-2019 The OS/K Team //
// //
// This file is part of OS/K. //
// //
// OS/K 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 //
// any later version. //
// //
// OS/K 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 OS/K. If not, see <https://www.gnu.org/licenses/>. //
2019-01-21 15:00:04 +01:00
//----------------------------------------------------------------------------//
#ifndef _KALBASE_ERRNO_H
#define _KALBASE_ERRNO_H
//------------------------------------------//
// Everything went fine
2019-03-18 17:25:44 +01:00
#define EOK 0
2019-01-21 15:00:04 +01:00
// Operation not permitted
2019-03-18 17:25:44 +01:00
#define EPERM 1
2019-01-21 15:00:04 +01:00
// No such file or directory
2019-03-18 17:25:44 +01:00
#define ENOENT 2
2019-01-21 15:00:04 +01:00
// No such process
2019-03-18 17:25:44 +01:00
#define ESRCH 3
2019-01-21 15:00:04 +01:00
// Syscall interrupted (e.g. by signal)
2019-03-18 17:25:44 +01:00
#define EINTR 4
2019-01-21 15:00:04 +01:00
// I/0 error
2019-03-18 17:25:44 +01:00
#define EIO 5
2019-01-21 15:00:04 +01:00
// No such device or address
2019-03-18 17:25:44 +01:00
#define ENXIO 6
2019-01-21 15:00:04 +01:00
// Argument list too long
2019-03-18 17:25:44 +01:00
#define E2BIG 7
2019-01-21 15:00:04 +01:00
// Not an executable format
2019-03-18 17:25:44 +01:00
#define ENOEXEC 8
2019-01-21 15:00:04 +01:00
2019-03-24 22:51:16 +01:00
// Bad file
2019-03-18 17:25:44 +01:00
#define EBADF 9
2019-01-21 15:00:04 +01:00
2019-02-06 14:07:38 +01:00
// Try again
2019-03-18 17:25:44 +01:00
#define EAGAIN 11
2019-02-06 14:07:38 +01:00
// Out of memory
2019-03-18 17:25:44 +01:00
#define ENOMEM 12
2019-02-06 14:07:38 +01:00
2019-01-21 15:00:04 +01:00
// Invalid argument
2019-03-18 17:25:44 +01:00
#define EINVAL 22
2019-01-21 15:00:04 +01:00
// Functionality not implemented
2019-03-18 17:25:44 +01:00
#define ENOSYS 38
2019-01-21 15:00:04 +01:00
2019-03-18 17:25:44 +01:00
// Address already in use
#define EADDRINUSE 98
2019-01-21 15:00:04 +01:00
2019-03-18 17:25:44 +01:00
// Failure (unspecified reason)
#define EFAILED 256
// Alignment error
#define EALIGN 257
2019-01-21 15:00:04 +01:00
//------------------------------------------//
#endif