at master 132 lines 5.9 kB view raw
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2/* 3 * This file is subject to the terms and conditions of the GNU General Public 4 * License. See the file "COPYING" in the main directory of this archive 5 * for more details. 6 * 7 * Copyright (C) 1995, 1999, 2001, 2002 by Ralf Baechle 8 */ 9#ifndef _UAPI_ASM_ERRNO_H 10#define _UAPI_ASM_ERRNO_H 11 12/* 13 * These error numbers are intended to be MIPS ABI compatible 14 */ 15 16#include <asm-generic/errno-base.h> 17 18#define ENOMSG 35 /* No message of desired type */ 19#define EIDRM 36 /* Identifier removed */ 20#define ECHRNG 37 /* Channel number out of range */ 21#define EL2NSYNC 38 /* Level 2 not synchronized */ 22#define EL3HLT 39 /* Level 3 halted */ 23#define EL3RST 40 /* Level 3 reset */ 24#define ELNRNG 41 /* Link number out of range */ 25#define EUNATCH 42 /* Protocol driver not attached */ 26#define ENOCSI 43 /* No CSI structure available */ 27#define EL2HLT 44 /* Level 2 halted */ 28#define EDEADLK 45 /* Resource deadlock would occur */ 29#define ENOLCK 46 /* No record locks available */ 30#define EBADE 50 /* Invalid exchange */ 31#define EBADR 51 /* Invalid request descriptor */ 32#define EXFULL 52 /* Exchange full */ 33#define ENOANO 53 /* No anode */ 34#define EBADRQC 54 /* Invalid request code */ 35#define EBADSLT 55 /* Invalid slot */ 36#define EDEADLOCK 56 /* File locking deadlock error */ 37#define EBFONT 59 /* Bad font file format */ 38#define ENOSTR 60 /* Device not a stream */ 39#define ENODATA 61 /* No data available */ 40#define ETIME 62 /* Timer expired */ 41#define ENOSR 63 /* Out of streams resources */ 42#define ENONET 64 /* Machine is not on the network */ 43#define ENOPKG 65 /* Package not installed */ 44#define EREMOTE 66 /* Object is remote */ 45#define ENOLINK 67 /* Link has been severed */ 46#define EADV 68 /* Advertise error */ 47#define ESRMNT 69 /* Srmount error */ 48#define ECOMM 70 /* Communication error on send */ 49#define EPROTO 71 /* Protocol error */ 50#define EDOTDOT 73 /* RFS specific error */ 51#define EMULTIHOP 74 /* Multihop attempted */ 52#define EBADMSG 77 /* Not a data message */ 53#define EFSBADCRC EBADMSG /* Bad CRC detected */ 54#define ENAMETOOLONG 78 /* File name too long */ 55#define EOVERFLOW 79 /* Value too large for defined data type */ 56#define ENOTUNIQ 80 /* Name not unique on network */ 57#define EBADFD 81 /* File descriptor in bad state */ 58#define EREMCHG 82 /* Remote address changed */ 59#define ELIBACC 83 /* Can not access a needed shared library */ 60#define ELIBBAD 84 /* Accessing a corrupted shared library */ 61#define ELIBSCN 85 /* .lib section in a.out corrupted */ 62#define ELIBMAX 86 /* Attempting to link in too many shared libraries */ 63#define ELIBEXEC 87 /* Cannot exec a shared library directly */ 64#define EILSEQ 88 /* Illegal byte sequence */ 65#define ENOSYS 89 /* Function not implemented */ 66#define ELOOP 90 /* Too many symbolic links encountered */ 67#define ERESTART 91 /* Interrupted system call should be restarted */ 68#define ESTRPIPE 92 /* Streams pipe error */ 69#define ENOTEMPTY 93 /* Directory not empty */ 70#define EUSERS 94 /* Too many users */ 71#define ENOTSOCK 95 /* Socket operation on non-socket */ 72#define EDESTADDRREQ 96 /* Destination address required */ 73#define EMSGSIZE 97 /* Message too long */ 74#define EPROTOTYPE 98 /* Protocol wrong type for socket */ 75#define ENOPROTOOPT 99 /* Protocol not available */ 76#define EPROTONOSUPPORT 120 /* Protocol not supported */ 77#define ESOCKTNOSUPPORT 121 /* Socket type not supported */ 78#define EOPNOTSUPP 122 /* Operation not supported on transport endpoint */ 79#define EPFNOSUPPORT 123 /* Protocol family not supported */ 80#define EAFNOSUPPORT 124 /* Address family not supported by protocol */ 81#define EADDRINUSE 125 /* Address already in use */ 82#define EADDRNOTAVAIL 126 /* Cannot assign requested address */ 83#define ENETDOWN 127 /* Network is down */ 84#define ENETUNREACH 128 /* Network is unreachable */ 85#define ENETRESET 129 /* Network dropped connection because of reset */ 86#define ECONNABORTED 130 /* Software caused connection abort */ 87#define ECONNRESET 131 /* Connection reset by peer */ 88#define ENOBUFS 132 /* No buffer space available */ 89#define EISCONN 133 /* Transport endpoint is already connected */ 90#define ENOTCONN 134 /* Transport endpoint is not connected */ 91#define EUCLEAN 135 /* Structure needs cleaning */ 92#define EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */ 93#define ENOTNAM 137 /* Not a XENIX named type file */ 94#define ENAVAIL 138 /* No XENIX semaphores available */ 95#define EISNAM 139 /* Is a named type file */ 96#define EREMOTEIO 140 /* Remote I/O error */ 97#define EINIT 141 /* Reserved */ 98#define EREMDEV 142 /* Error 142 */ 99#define ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */ 100#define ETOOMANYREFS 144 /* Too many references: cannot splice */ 101#define ETIMEDOUT 145 /* Connection timed out */ 102#define ECONNREFUSED 146 /* Connection refused */ 103#define EHOSTDOWN 147 /* Host is down */ 104#define EHOSTUNREACH 148 /* No route to host */ 105#define EWOULDBLOCK EAGAIN /* Operation would block */ 106#define EALREADY 149 /* Operation already in progress */ 107#define EINPROGRESS 150 /* Operation now in progress */ 108#define ESTALE 151 /* Stale file handle */ 109#define ECANCELED 158 /* AIO operation canceled */ 110 111/* 112 * These error are Linux extensions. 113 */ 114#define ENOMEDIUM 159 /* No medium found */ 115#define EMEDIUMTYPE 160 /* Wrong medium type */ 116#define ENOKEY 161 /* Required key not available */ 117#define EKEYEXPIRED 162 /* Key has expired */ 118#define EKEYREVOKED 163 /* Key has been revoked */ 119#define EKEYREJECTED 164 /* Key was rejected by service */ 120 121/* for robust mutexes */ 122#define EOWNERDEAD 165 /* Owner died */ 123#define ENOTRECOVERABLE 166 /* State not recoverable */ 124 125#define ERFKILL 167 /* Operation not possible due to RF-kill */ 126 127#define EHWPOISON 168 /* Memory page has hardware error */ 128 129#define EDQUOT 1133 /* Quota exceeded */ 130 131 132#endif /* _UAPI_ASM_ERRNO_H */