^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _ASM_GENERIC_ERRNO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _ASM_GENERIC_ERRNO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <asm-generic/errno-base.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define EDEADLK 35 /* Resource deadlock would occur */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #define ENAMETOOLONG 36 /* File name too long */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define ENOLCK 37 /* No record locks available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * This error code is special: arch syscall entry code will return
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * -ENOSYS if users try to call a syscall that doesn't exist. To keep
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) * failures of syscalls that really do exist distinguishable from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) * failures due to attempts to use a nonexistent syscall, syscall
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) * implementations should refrain from returning -ENOSYS.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define ENOSYS 38 /* Invalid system call number */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define ENOTEMPTY 39 /* Directory not empty */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define ELOOP 40 /* Too many symbolic links encountered */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define EWOULDBLOCK EAGAIN /* Operation would block */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define ENOMSG 42 /* No message of desired type */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define EIDRM 43 /* Identifier removed */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define ECHRNG 44 /* Channel number out of range */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define EL2NSYNC 45 /* Level 2 not synchronized */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define EL3HLT 46 /* Level 3 halted */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define EL3RST 47 /* Level 3 reset */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define ELNRNG 48 /* Link number out of range */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define EUNATCH 49 /* Protocol driver not attached */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define ENOCSI 50 /* No CSI structure available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define EL2HLT 51 /* Level 2 halted */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define EBADE 52 /* Invalid exchange */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define EBADR 53 /* Invalid request descriptor */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define EXFULL 54 /* Exchange full */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define ENOANO 55 /* No anode */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define EBADRQC 56 /* Invalid request code */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define EBADSLT 57 /* Invalid slot */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define EDEADLOCK EDEADLK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define EBFONT 59 /* Bad font file format */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define ENOSTR 60 /* Device not a stream */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define ENODATA 61 /* No data available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define ETIME 62 /* Timer expired */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define ENOSR 63 /* Out of streams resources */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define ENONET 64 /* Machine is not on the network */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define ENOPKG 65 /* Package not installed */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define EREMOTE 66 /* Object is remote */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define ENOLINK 67 /* Link has been severed */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define EADV 68 /* Advertise error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #define ESRMNT 69 /* Srmount error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #define ECOMM 70 /* Communication error on send */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define EPROTO 71 /* Protocol error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #define EMULTIHOP 72 /* Multihop attempted */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #define EDOTDOT 73 /* RFS specific error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #define EBADMSG 74 /* Not a data message */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define EOVERFLOW 75 /* Value too large for defined data type */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define ENOTUNIQ 76 /* Name not unique on network */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #define EBADFD 77 /* File descriptor in bad state */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define EREMCHG 78 /* Remote address changed */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #define ELIBACC 79 /* Can not access a needed shared library */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #define ELIBBAD 80 /* Accessing a corrupted shared library */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #define ELIBSCN 81 /* .lib section in a.out corrupted */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #define ELIBMAX 82 /* Attempting to link in too many shared libraries */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #define ELIBEXEC 83 /* Cannot exec a shared library directly */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define EILSEQ 84 /* Illegal byte sequence */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #define ERESTART 85 /* Interrupted system call should be restarted */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #define ESTRPIPE 86 /* Streams pipe error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #define EUSERS 87 /* Too many users */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) #define ENOTSOCK 88 /* Socket operation on non-socket */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #define EDESTADDRREQ 89 /* Destination address required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) #define EMSGSIZE 90 /* Message too long */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #define EPROTOTYPE 91 /* Protocol wrong type for socket */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) #define ENOPROTOOPT 92 /* Protocol not available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) #define EPROTONOSUPPORT 93 /* Protocol not supported */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #define ESOCKTNOSUPPORT 94 /* Socket type not supported */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) #define EPFNOSUPPORT 96 /* Protocol family not supported */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) #define EAFNOSUPPORT 97 /* Address family not supported by protocol */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) #define EADDRINUSE 98 /* Address already in use */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) #define EADDRNOTAVAIL 99 /* Cannot assign requested address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #define ENETDOWN 100 /* Network is down */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) #define ENETUNREACH 101 /* Network is unreachable */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) #define ENETRESET 102 /* Network dropped connection because of reset */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) #define ECONNABORTED 103 /* Software caused connection abort */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #define ECONNRESET 104 /* Connection reset by peer */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) #define ENOBUFS 105 /* No buffer space available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) #define EISCONN 106 /* Transport endpoint is already connected */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) #define ENOTCONN 107 /* Transport endpoint is not connected */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) #define ETOOMANYREFS 109 /* Too many references: cannot splice */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) #define ETIMEDOUT 110 /* Connection timed out */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) #define ECONNREFUSED 111 /* Connection refused */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) #define EHOSTDOWN 112 /* Host is down */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) #define EHOSTUNREACH 113 /* No route to host */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) #define EALREADY 114 /* Operation already in progress */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) #define EINPROGRESS 115 /* Operation now in progress */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) #define ESTALE 116 /* Stale file handle */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) #define EUCLEAN 117 /* Structure needs cleaning */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #define ENOTNAM 118 /* Not a XENIX named type file */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) #define ENAVAIL 119 /* No XENIX semaphores available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #define EISNAM 120 /* Is a named type file */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #define EREMOTEIO 121 /* Remote I/O error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #define EDQUOT 122 /* Quota exceeded */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #define ENOMEDIUM 123 /* No medium found */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define EMEDIUMTYPE 124 /* Wrong medium type */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #define ECANCELED 125 /* Operation Canceled */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) #define ENOKEY 126 /* Required key not available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #define EKEYEXPIRED 127 /* Key has expired */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) #define EKEYREVOKED 128 /* Key has been revoked */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define EKEYREJECTED 129 /* Key was rejected by service */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) /* for robust mutexes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) #define EOWNERDEAD 130 /* Owner died */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) #define ENOTRECOVERABLE 131 /* State not recoverable */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #define ERFKILL 132 /* Operation not possible due to RF-kill */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) #define EHWPOISON 133 /* Memory page has hardware error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #endif