diff options
Diffstat (limited to 'cpu/cpu-errno.h')
| -rw-r--r-- | cpu/cpu-errno.h | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/cpu/cpu-errno.h b/cpu/cpu-errno.h new file mode 100644 index 0000000..20fb4c9 --- /dev/null +++ b/cpu/cpu-errno.h @@ -0,0 +1,160 @@ +/*************************************************************** + __CPU_ERRNO.H + + This file contains stable MCPU system-call error numbers. + + PART OF : CPU - library . + + USAGE : Internal only . + + Copyright (C) 2026 by Andrew V.Kosteltsev. + All Rights Reserved. + ***************************************************************/ + +#ifndef __CPU_ERRNO_H +#define __CPU_ERRNO_H + +#define __MCPU_EPERM 1 /* Operation not permitted */ +#define __MCPU_ENOENT 2 /* No such file or directory */ +#define __MCPU_ESRCH 3 /* No such process */ +#define __MCPU_EINTR 4 /* Interrupted system call */ +#define __MCPU_EIO 5 /* I/O error */ +#define __MCPU_ENXIO 6 /* No such device or address */ +#define __MCPU_E2BIG 7 /* Argument list too long */ +#define __MCPU_ENOEXEC 8 /* Exec format error */ +#define __MCPU_EBADF 9 /* Bad file number */ +#define __MCPU_ECHILD 10 /* No child processes */ +#define __MCPU_EAGAIN 11 /* Try again */ +#define __MCPU_ENOMEM 12 /* Out of memory */ +#define __MCPU_EACCES 13 /* Permission denied */ +#define __MCPU_EFAULT 14 /* Bad address */ +#define __MCPU_ENOTBLK 15 /* Block device required */ +#define __MCPU_EBUSY 16 /* Device or resource busy */ +#define __MCPU_EEXIST 17 /* File exists */ +#define __MCPU_EXDEV 18 /* Cross-device link */ +#define __MCPU_ENODEV 19 /* No such device */ +#define __MCPU_ENOTDIR 20 /* Not a directory */ +#define __MCPU_EISDIR 21 /* Is a directory */ +#define __MCPU_EINVAL 22 /* Invalid argument */ +#define __MCPU_ENFILE 23 /* File table overflow */ +#define __MCPU_EMFILE 24 /* Too many open files */ +#define __MCPU_ENOTTY 25 /* Not a typewriter */ +#define __MCPU_ETXTBSY 26 /* Text file busy */ +#define __MCPU_EFBIG 27 /* File too large */ +#define __MCPU_ENOSPC 28 /* No space left on device */ +#define __MCPU_ESPIPE 29 /* Illegal seek */ +#define __MCPU_EROFS 30 /* Read-only file system */ +#define __MCPU_EMLINK 31 /* Too many links */ +#define __MCPU_EPIPE 32 /* Broken pipe */ +#define __MCPU_EDOM 33 /* Math argument out of domain */ +#define __MCPU_ERANGE 34 /* Math result not representable */ +#define __MCPU_EDEADLK 35 /* Resource deadlock would occur */ +#define __MCPU_ENAMETOOLONG 36 /* File name too long */ +#define __MCPU_ENOLCK 37 /* No record locks available */ +#define __MCPU_ENOSYS 38 /* Invalid system call number */ +#define __MCPU_ENOTEMPTY 39 /* Directory not empty */ +#define __MCPU_ELOOP 40 /* Too many symbolic links encountered */ + +#define __MCPU_EWOULDBLOCK __MCPU_EAGAIN + +#define __MCPU_ENOMSG 42 /* No message of desired type */ +#define __MCPU_EIDRM 43 /* Identifier removed */ +#define __MCPU_ECHRNG 44 /* Channel number out of range */ +#define __MCPU_EL2NSYNC 45 /* Level 2 not synchronized */ +#define __MCPU_EL3HLT 46 /* Level 3 halted */ +#define __MCPU_EL3RST 47 /* Level 3 reset */ +#define __MCPU_ELNRNG 48 /* Link number out of range */ +#define __MCPU_EUNATCH 49 /* Protocol driver not attached */ +#define __MCPU_ENOCSI 50 /* No CSI structure available */ +#define __MCPU_EL2HLT 51 /* Level 2 halted */ +#define __MCPU_EBADE 52 /* Invalid exchange */ +#define __MCPU_EBADR 53 /* Invalid request descriptor */ +#define __MCPU_EXFULL 54 /* Exchange full */ +#define __MCPU_ENOANO 55 /* No anode */ +#define __MCPU_EBADRQC 56 /* Invalid request code */ +#define __MCPU_EBADSLT 57 /* Invalid slot */ + +#define __MCPU_EDEADLOCK __MCPU_EDEADLK + +#define __MCPU_EBFONT 59 /* Bad font file format */ +#define __MCPU_ENOSTR 60 /* Device not a stream */ +#define __MCPU_ENODATA 61 /* No data available */ +#define __MCPU_ETIME 62 /* Timer expired */ +#define __MCPU_ENOSR 63 /* Out of streams resources */ +#define __MCPU_ENONET 64 /* Machine is not on the network */ +#define __MCPU_ENOPKG 65 /* Package not installed */ +#define __MCPU_EREMOTE 66 /* Object is remote */ +#define __MCPU_ENOLINK 67 /* Link has been severed */ +#define __MCPU_EADV 68 /* Advertise error */ +#define __MCPU_ESRMNT 69 /* Srmount error */ +#define __MCPU_ECOMM 70 /* Communication error on send */ +#define __MCPU_EPROTO 71 /* Protocol error */ +#define __MCPU_EMULTIHOP 72 /* Multihop attempted */ +#define __MCPU_EDOTDOT 73 /* RFS specific error */ +#define __MCPU_EBADMSG 74 /* Not a data message */ +#define __MCPU_EOVERFLOW 75 /* Value too large for defined data type */ +#define __MCPU_ENOTUNIQ 76 /* Name not unique on network */ +#define __MCPU_EBADFD 77 /* File descriptor in bad state */ +#define __MCPU_EREMCHG 78 /* Remote address changed */ +#define __MCPU_ELIBACC 79 /* Cannot access a needed shared library */ +#define __MCPU_ELIBBAD 80 /* Accessing a corrupted shared library */ +#define __MCPU_ELIBSCN 81 /* .lib section in a.out corrupted */ +#define __MCPU_ELIBMAX 82 /* Too many shared libraries */ +#define __MCPU_ELIBEXEC 83 /* Cannot exec a shared library directly */ +#define __MCPU_EILSEQ 84 /* Illegal byte sequence */ +#define __MCPU_ERESTART 85 /* Interrupted syscall should be restarted */ +#define __MCPU_ESTRPIPE 86 /* Streams pipe error */ +#define __MCPU_EUSERS 87 /* Too many users */ +#define __MCPU_ENOTSOCK 88 /* Socket operation on non-socket */ +#define __MCPU_EDESTADDRREQ 89 /* Destination address required */ +#define __MCPU_EMSGSIZE 90 /* Message too long */ +#define __MCPU_EPROTOTYPE 91 /* Protocol wrong type for socket */ +#define __MCPU_ENOPROTOOPT 92 /* Protocol not available */ +#define __MCPU_EPROTONOSUPPORT 93 /* Protocol not supported */ +#define __MCPU_ESOCKTNOSUPPORT 94 /* Socket type not supported */ +#define __MCPU_EOPNOTSUPP 95 /* Operation not supported */ +#define __MCPU_EPFNOSUPPORT 96 /* Protocol family not supported */ +#define __MCPU_EAFNOSUPPORT 97 /* Address family not supported */ +#define __MCPU_EADDRINUSE 98 /* Address already in use */ +#define __MCPU_EADDRNOTAVAIL 99 /* Cannot assign requested address */ +#define __MCPU_ENETDOWN 100 /* Network is down */ +#define __MCPU_ENETUNREACH 101 /* Network is unreachable */ +#define __MCPU_ENETRESET 102 /* Network dropped connection because of reset */ +#define __MCPU_ECONNABORTED 103 /* Software caused connection abort */ +#define __MCPU_ECONNRESET 104 /* Connection reset by peer */ +#define __MCPU_ENOBUFS 105 /* No buffer space available */ +#define __MCPU_EISCONN 106 /* Transport endpoint is already connected */ +#define __MCPU_ENOTCONN 107 /* Transport endpoint is not connected */ +#define __MCPU_ESHUTDOWN 108 /* Cannot send after endpoint shutdown */ +#define __MCPU_ETOOMANYREFS 109 /* Too many references */ +#define __MCPU_ETIMEDOUT 110 /* Connection timed out */ +#define __MCPU_ECONNREFUSED 111 /* Connection refused */ +#define __MCPU_EHOSTDOWN 112 /* Host is down */ +#define __MCPU_EHOSTUNREACH 113 /* No route to host */ +#define __MCPU_EALREADY 114 /* Operation already in progress */ +#define __MCPU_EINPROGRESS 115 /* Operation now in progress */ +#define __MCPU_ESTALE 116 /* Stale file handle */ +#define __MCPU_EUCLEAN 117 /* Structure needs cleaning */ +#define __MCPU_ENOTNAM 118 /* Not a XENIX named type file */ +#define __MCPU_ENAVAIL 119 /* No XENIX semaphores available */ +#define __MCPU_EISNAM 120 /* Is a named type file */ +#define __MCPU_EREMOTEIO 121 /* Remote I/O error */ +#define __MCPU_EDQUOT 122 /* Quota exceeded */ +#define __MCPU_ENOMEDIUM 123 /* No medium found */ +#define __MCPU_EMEDIUMTYPE 124 /* Wrong medium type */ +#define __MCPU_ECANCELED 125 /* Operation canceled */ +#define __MCPU_ENOKEY 126 /* Required key not available */ +#define __MCPU_EKEYEXPIRED 127 /* Key has expired */ +#define __MCPU_EKEYREVOKED 128 /* Key has been revoked */ +#define __MCPU_EKEYREJECTED 129 /* Key was rejected by service */ +#define __MCPU_EOWNERDEAD 130 /* Owner died */ +#define __MCPU_ENOTRECOVERABLE 131 /* State not recoverable */ +#define __MCPU_ERFKILL 132 /* Operation not possible due to RF-kill */ +#define __MCPU_EHWPOISON 133 /* Memory page has hardware error */ +#define __MCPU_EFTYPE 134 /* Wrong file type for intended operation */ + +#define __MCPU_ENOTSUP __MCPU_EOPNOTSUPP + +#define __MCPU_EUNKNOWN 4095 /* Unknown or unmapped HOST error */ + +#endif /* __CPU_ERRNO_H */ |
