mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
64 lines
3.2 KiB
C
64 lines
3.2 KiB
C
//----------------------------------------------------------------------------//
|
|
// OS on Kaleid //
|
|
// //
|
|
// Desc: Values for error_t and errno //
|
|
// //
|
|
// //
|
|
// Copyright © 2018-2021 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/>. //
|
|
//----------------------------------------------------------------------------//
|
|
|
|
#ifndef _ERRNO_H
|
|
#define _ERRNO_H
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
#ifndef _EENTRY
|
|
#define _ESTART enum {
|
|
#define _EENTRY(code, num, desc) code = num,
|
|
#define _EEND };
|
|
#endif
|
|
|
|
_ESTART
|
|
_EENTRY(EOK, -0, "No error")
|
|
_EENTRY(EPERM, -1, "Operation not permitted")
|
|
_EENTRY(ENOENT, -2, "No such entry, file, or directory")
|
|
_EENTRY(ESRCH, -3, "No such process or thread")
|
|
_EENTRY(EINTR, -4, "Operation interrupted")
|
|
_EENTRY(EIO, -5, "I/O error")
|
|
_EENTRY(ENXIO, -6, "No such device or address")
|
|
_EENTRY(E2BIG, -7, "List too long")
|
|
_EENTRY(ENOEXEC, -8, "Not an executable format")
|
|
_EENTRY(EBADF, -9, "Bad file, fd, or stream")
|
|
_EENTRY(EAGAIN, -10, "Try again")
|
|
_EENTRY(ENOMEM, -11, "Not enough memory")
|
|
_EENTRY(EINVAL, -12, "Invalid argument value")
|
|
_EENTRY(ENOSYS, -13, "Functionality not implemented")
|
|
_EENTRY(EADDRINUSE, -14, "Address in use")
|
|
_EENTRY(EFAILED, -15, "Failure (unspecified reason)")
|
|
_EENTRY(EALIGN, -16, "Alignment error or fault")
|
|
_EENTRY(EENDF, -17, "End of file or stream")
|
|
_EENTRY(_EMAX, -18, "... min error id ...")
|
|
_EEND
|
|
|
|
#undef _ESTART
|
|
#undef _EENTRY
|
|
#undef _EEND
|
|
|
|
#endif
|
|
|