18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_GENERIC_ERRNO_H 38c2ecf20Sopenharmony_ci#define _ASM_GENERIC_ERRNO_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm-generic/errno-base.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#define EDEADLK 35 /* Resource deadlock would occur */ 88c2ecf20Sopenharmony_ci#define ENAMETOOLONG 36 /* File name too long */ 98c2ecf20Sopenharmony_ci#define ENOLCK 37 /* No record locks available */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* 128c2ecf20Sopenharmony_ci * This error code is special: arch syscall entry code will return 138c2ecf20Sopenharmony_ci * -ENOSYS if users try to call a syscall that doesn't exist. To keep 148c2ecf20Sopenharmony_ci * failures of syscalls that really do exist distinguishable from 158c2ecf20Sopenharmony_ci * failures due to attempts to use a nonexistent syscall, syscall 168c2ecf20Sopenharmony_ci * implementations should refrain from returning -ENOSYS. 178c2ecf20Sopenharmony_ci */ 188c2ecf20Sopenharmony_ci#define ENOSYS 38 /* Invalid system call number */ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define ENOTEMPTY 39 /* Directory not empty */ 218c2ecf20Sopenharmony_ci#define ELOOP 40 /* Too many symbolic links encountered */ 228c2ecf20Sopenharmony_ci#define EWOULDBLOCK EAGAIN /* Operation would block */ 238c2ecf20Sopenharmony_ci#define ENOMSG 42 /* No message of desired type */ 248c2ecf20Sopenharmony_ci#define EIDRM 43 /* Identifier removed */ 258c2ecf20Sopenharmony_ci#define ECHRNG 44 /* Channel number out of range */ 268c2ecf20Sopenharmony_ci#define EL2NSYNC 45 /* Level 2 not synchronized */ 278c2ecf20Sopenharmony_ci#define EL3HLT 46 /* Level 3 halted */ 288c2ecf20Sopenharmony_ci#define EL3RST 47 /* Level 3 reset */ 298c2ecf20Sopenharmony_ci#define ELNRNG 48 /* Link number out of range */ 308c2ecf20Sopenharmony_ci#define EUNATCH 49 /* Protocol driver not attached */ 318c2ecf20Sopenharmony_ci#define ENOCSI 50 /* No CSI structure available */ 328c2ecf20Sopenharmony_ci#define EL2HLT 51 /* Level 2 halted */ 338c2ecf20Sopenharmony_ci#define EBADE 52 /* Invalid exchange */ 348c2ecf20Sopenharmony_ci#define EBADR 53 /* Invalid request descriptor */ 358c2ecf20Sopenharmony_ci#define EXFULL 54 /* Exchange full */ 368c2ecf20Sopenharmony_ci#define ENOANO 55 /* No anode */ 378c2ecf20Sopenharmony_ci#define EBADRQC 56 /* Invalid request code */ 388c2ecf20Sopenharmony_ci#define EBADSLT 57 /* Invalid slot */ 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#define EDEADLOCK EDEADLK 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci#define EBFONT 59 /* Bad font file format */ 438c2ecf20Sopenharmony_ci#define ENOSTR 60 /* Device not a stream */ 448c2ecf20Sopenharmony_ci#define ENODATA 61 /* No data available */ 458c2ecf20Sopenharmony_ci#define ETIME 62 /* Timer expired */ 468c2ecf20Sopenharmony_ci#define ENOSR 63 /* Out of streams resources */ 478c2ecf20Sopenharmony_ci#define ENONET 64 /* Machine is not on the network */ 488c2ecf20Sopenharmony_ci#define ENOPKG 65 /* Package not installed */ 498c2ecf20Sopenharmony_ci#define EREMOTE 66 /* Object is remote */ 508c2ecf20Sopenharmony_ci#define ENOLINK 67 /* Link has been severed */ 518c2ecf20Sopenharmony_ci#define EADV 68 /* Advertise error */ 528c2ecf20Sopenharmony_ci#define ESRMNT 69 /* Srmount error */ 538c2ecf20Sopenharmony_ci#define ECOMM 70 /* Communication error on send */ 548c2ecf20Sopenharmony_ci#define EPROTO 71 /* Protocol error */ 558c2ecf20Sopenharmony_ci#define EMULTIHOP 72 /* Multihop attempted */ 568c2ecf20Sopenharmony_ci#define EDOTDOT 73 /* RFS specific error */ 578c2ecf20Sopenharmony_ci#define EBADMSG 74 /* Not a data message */ 588c2ecf20Sopenharmony_ci#define EOVERFLOW 75 /* Value too large for defined data type */ 598c2ecf20Sopenharmony_ci#define ENOTUNIQ 76 /* Name not unique on network */ 608c2ecf20Sopenharmony_ci#define EBADFD 77 /* File descriptor in bad state */ 618c2ecf20Sopenharmony_ci#define EREMCHG 78 /* Remote address changed */ 628c2ecf20Sopenharmony_ci#define ELIBACC 79 /* Can not access a needed shared library */ 638c2ecf20Sopenharmony_ci#define ELIBBAD 80 /* Accessing a corrupted shared library */ 648c2ecf20Sopenharmony_ci#define ELIBSCN 81 /* .lib section in a.out corrupted */ 658c2ecf20Sopenharmony_ci#define ELIBMAX 82 /* Attempting to link in too many shared libraries */ 668c2ecf20Sopenharmony_ci#define ELIBEXEC 83 /* Cannot exec a shared library directly */ 678c2ecf20Sopenharmony_ci#define EILSEQ 84 /* Illegal byte sequence */ 688c2ecf20Sopenharmony_ci#define ERESTART 85 /* Interrupted system call should be restarted */ 698c2ecf20Sopenharmony_ci#define ESTRPIPE 86 /* Streams pipe error */ 708c2ecf20Sopenharmony_ci#define EUSERS 87 /* Too many users */ 718c2ecf20Sopenharmony_ci#define ENOTSOCK 88 /* Socket operation on non-socket */ 728c2ecf20Sopenharmony_ci#define EDESTADDRREQ 89 /* Destination address required */ 738c2ecf20Sopenharmony_ci#define EMSGSIZE 90 /* Message too long */ 748c2ecf20Sopenharmony_ci#define EPROTOTYPE 91 /* Protocol wrong type for socket */ 758c2ecf20Sopenharmony_ci#define ENOPROTOOPT 92 /* Protocol not available */ 768c2ecf20Sopenharmony_ci#define EPROTONOSUPPORT 93 /* Protocol not supported */ 778c2ecf20Sopenharmony_ci#define ESOCKTNOSUPPORT 94 /* Socket type not supported */ 788c2ecf20Sopenharmony_ci#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ 798c2ecf20Sopenharmony_ci#define EPFNOSUPPORT 96 /* Protocol family not supported */ 808c2ecf20Sopenharmony_ci#define EAFNOSUPPORT 97 /* Address family not supported by protocol */ 818c2ecf20Sopenharmony_ci#define EADDRINUSE 98 /* Address already in use */ 828c2ecf20Sopenharmony_ci#define EADDRNOTAVAIL 99 /* Cannot assign requested address */ 838c2ecf20Sopenharmony_ci#define ENETDOWN 100 /* Network is down */ 848c2ecf20Sopenharmony_ci#define ENETUNREACH 101 /* Network is unreachable */ 858c2ecf20Sopenharmony_ci#define ENETRESET 102 /* Network dropped connection because of reset */ 868c2ecf20Sopenharmony_ci#define ECONNABORTED 103 /* Software caused connection abort */ 878c2ecf20Sopenharmony_ci#define ECONNRESET 104 /* Connection reset by peer */ 888c2ecf20Sopenharmony_ci#define ENOBUFS 105 /* No buffer space available */ 898c2ecf20Sopenharmony_ci#define EISCONN 106 /* Transport endpoint is already connected */ 908c2ecf20Sopenharmony_ci#define ENOTCONN 107 /* Transport endpoint is not connected */ 918c2ecf20Sopenharmony_ci#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ 928c2ecf20Sopenharmony_ci#define ETOOMANYREFS 109 /* Too many references: cannot splice */ 938c2ecf20Sopenharmony_ci#define ETIMEDOUT 110 /* Connection timed out */ 948c2ecf20Sopenharmony_ci#define ECONNREFUSED 111 /* Connection refused */ 958c2ecf20Sopenharmony_ci#define EHOSTDOWN 112 /* Host is down */ 968c2ecf20Sopenharmony_ci#define EHOSTUNREACH 113 /* No route to host */ 978c2ecf20Sopenharmony_ci#define EALREADY 114 /* Operation already in progress */ 988c2ecf20Sopenharmony_ci#define EINPROGRESS 115 /* Operation now in progress */ 998c2ecf20Sopenharmony_ci#define ESTALE 116 /* Stale file handle */ 1008c2ecf20Sopenharmony_ci#define EUCLEAN 117 /* Structure needs cleaning */ 1018c2ecf20Sopenharmony_ci#define ENOTNAM 118 /* Not a XENIX named type file */ 1028c2ecf20Sopenharmony_ci#define ENAVAIL 119 /* No XENIX semaphores available */ 1038c2ecf20Sopenharmony_ci#define EISNAM 120 /* Is a named type file */ 1048c2ecf20Sopenharmony_ci#define EREMOTEIO 121 /* Remote I/O error */ 1058c2ecf20Sopenharmony_ci#define EDQUOT 122 /* Quota exceeded */ 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci#define ENOMEDIUM 123 /* No medium found */ 1088c2ecf20Sopenharmony_ci#define EMEDIUMTYPE 124 /* Wrong medium type */ 1098c2ecf20Sopenharmony_ci#define ECANCELED 125 /* Operation Canceled */ 1108c2ecf20Sopenharmony_ci#define ENOKEY 126 /* Required key not available */ 1118c2ecf20Sopenharmony_ci#define EKEYEXPIRED 127 /* Key has expired */ 1128c2ecf20Sopenharmony_ci#define EKEYREVOKED 128 /* Key has been revoked */ 1138c2ecf20Sopenharmony_ci#define EKEYREJECTED 129 /* Key was rejected by service */ 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_ci/* for robust mutexes */ 1168c2ecf20Sopenharmony_ci#define EOWNERDEAD 130 /* Owner died */ 1178c2ecf20Sopenharmony_ci#define ENOTRECOVERABLE 131 /* State not recoverable */ 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_ci#define ERFKILL 132 /* Operation not possible due to RF-kill */ 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci#define EHWPOISON 133 /* Memory page has hardware error */ 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci#endif 124