1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 254579826SDavid Howells #ifndef _SPARC_ERRNO_H 354579826SDavid Howells #define _SPARC_ERRNO_H 454579826SDavid Howells 554579826SDavid Howells /* These match the SunOS error numbering scheme. */ 654579826SDavid Howells 754579826SDavid Howells #include <asm-generic/errno-base.h> 854579826SDavid Howells 954579826SDavid Howells #define EWOULDBLOCK EAGAIN /* Operation would block */ 1054579826SDavid Howells #define EINPROGRESS 36 /* Operation now in progress */ 1154579826SDavid Howells #define EALREADY 37 /* Operation already in progress */ 1254579826SDavid Howells #define ENOTSOCK 38 /* Socket operation on non-socket */ 1354579826SDavid Howells #define EDESTADDRREQ 39 /* Destination address required */ 1454579826SDavid Howells #define EMSGSIZE 40 /* Message too long */ 1554579826SDavid Howells #define EPROTOTYPE 41 /* Protocol wrong type for socket */ 1654579826SDavid Howells #define ENOPROTOOPT 42 /* Protocol not available */ 1754579826SDavid Howells #define EPROTONOSUPPORT 43 /* Protocol not supported */ 1854579826SDavid Howells #define ESOCKTNOSUPPORT 44 /* Socket type not supported */ 1954579826SDavid Howells #define EOPNOTSUPP 45 /* Op not supported on transport endpoint */ 2054579826SDavid Howells #define EPFNOSUPPORT 46 /* Protocol family not supported */ 2154579826SDavid Howells #define EAFNOSUPPORT 47 /* Address family not supported by protocol */ 2254579826SDavid Howells #define EADDRINUSE 48 /* Address already in use */ 2354579826SDavid Howells #define EADDRNOTAVAIL 49 /* Cannot assign requested address */ 2454579826SDavid Howells #define ENETDOWN 50 /* Network is down */ 2554579826SDavid Howells #define ENETUNREACH 51 /* Network is unreachable */ 2654579826SDavid Howells #define ENETRESET 52 /* Net dropped connection because of reset */ 2754579826SDavid Howells #define ECONNABORTED 53 /* Software caused connection abort */ 2854579826SDavid Howells #define ECONNRESET 54 /* Connection reset by peer */ 2954579826SDavid Howells #define ENOBUFS 55 /* No buffer space available */ 3054579826SDavid Howells #define EISCONN 56 /* Transport endpoint is already connected */ 3154579826SDavid Howells #define ENOTCONN 57 /* Transport endpoint is not connected */ 3254579826SDavid Howells #define ESHUTDOWN 58 /* No send after transport endpoint shutdown */ 3354579826SDavid Howells #define ETOOMANYREFS 59 /* Too many references: cannot splice */ 3454579826SDavid Howells #define ETIMEDOUT 60 /* Connection timed out */ 3554579826SDavid Howells #define ECONNREFUSED 61 /* Connection refused */ 3654579826SDavid Howells #define ELOOP 62 /* Too many symbolic links encountered */ 3754579826SDavid Howells #define ENAMETOOLONG 63 /* File name too long */ 3854579826SDavid Howells #define EHOSTDOWN 64 /* Host is down */ 3954579826SDavid Howells #define EHOSTUNREACH 65 /* No route to host */ 4054579826SDavid Howells #define ENOTEMPTY 66 /* Directory not empty */ 4154579826SDavid Howells #define EPROCLIM 67 /* SUNOS: Too many processes */ 4254579826SDavid Howells #define EUSERS 68 /* Too many users */ 4354579826SDavid Howells #define EDQUOT 69 /* Quota exceeded */ 440ca43435SEric Sandeen #define ESTALE 70 /* Stale file handle */ 4554579826SDavid Howells #define EREMOTE 71 /* Object is remote */ 4654579826SDavid Howells #define ENOSTR 72 /* Device not a stream */ 4754579826SDavid Howells #define ETIME 73 /* Timer expired */ 4854579826SDavid Howells #define ENOSR 74 /* Out of streams resources */ 4954579826SDavid Howells #define ENOMSG 75 /* No message of desired type */ 5054579826SDavid Howells #define EBADMSG 76 /* Not a data message */ 5154579826SDavid Howells #define EIDRM 77 /* Identifier removed */ 5254579826SDavid Howells #define EDEADLK 78 /* Resource deadlock would occur */ 5354579826SDavid Howells #define ENOLCK 79 /* No record locks available */ 5454579826SDavid Howells #define ENONET 80 /* Machine is not on the network */ 5554579826SDavid Howells #define ERREMOTE 81 /* SunOS: Too many lvls of remote in path */ 5654579826SDavid Howells #define ENOLINK 82 /* Link has been severed */ 5754579826SDavid Howells #define EADV 83 /* Advertise error */ 5854579826SDavid Howells #define ESRMNT 84 /* Srmount error */ 5954579826SDavid Howells #define ECOMM 85 /* Communication error on send */ 6054579826SDavid Howells #define EPROTO 86 /* Protocol error */ 6154579826SDavid Howells #define EMULTIHOP 87 /* Multihop attempted */ 6254579826SDavid Howells #define EDOTDOT 88 /* RFS specific error */ 6354579826SDavid Howells #define EREMCHG 89 /* Remote address changed */ 6454579826SDavid Howells #define ENOSYS 90 /* Function not implemented */ 6554579826SDavid Howells 6654579826SDavid Howells /* The rest have no SunOS equivalent. */ 6754579826SDavid Howells #define ESTRPIPE 91 /* Streams pipe error */ 6854579826SDavid Howells #define EOVERFLOW 92 /* Value too large for defined data type */ 6954579826SDavid Howells #define EBADFD 93 /* File descriptor in bad state */ 7054579826SDavid Howells #define ECHRNG 94 /* Channel number out of range */ 7154579826SDavid Howells #define EL2NSYNC 95 /* Level 2 not synchronized */ 7254579826SDavid Howells #define EL3HLT 96 /* Level 3 halted */ 7354579826SDavid Howells #define EL3RST 97 /* Level 3 reset */ 7454579826SDavid Howells #define ELNRNG 98 /* Link number out of range */ 7554579826SDavid Howells #define EUNATCH 99 /* Protocol driver not attached */ 7654579826SDavid Howells #define ENOCSI 100 /* No CSI structure available */ 7754579826SDavid Howells #define EL2HLT 101 /* Level 2 halted */ 7854579826SDavid Howells #define EBADE 102 /* Invalid exchange */ 7954579826SDavid Howells #define EBADR 103 /* Invalid request descriptor */ 8054579826SDavid Howells #define EXFULL 104 /* Exchange full */ 8154579826SDavid Howells #define ENOANO 105 /* No anode */ 8254579826SDavid Howells #define EBADRQC 106 /* Invalid request code */ 8354579826SDavid Howells #define EBADSLT 107 /* Invalid slot */ 8454579826SDavid Howells #define EDEADLOCK 108 /* File locking deadlock error */ 8554579826SDavid Howells #define EBFONT 109 /* Bad font file format */ 8654579826SDavid Howells #define ELIBEXEC 110 /* Cannot exec a shared library directly */ 8754579826SDavid Howells #define ENODATA 111 /* No data available */ 8854579826SDavid Howells #define ELIBBAD 112 /* Accessing a corrupted shared library */ 8954579826SDavid Howells #define ENOPKG 113 /* Package not installed */ 9054579826SDavid Howells #define ELIBACC 114 /* Can not access a needed shared library */ 9154579826SDavid Howells #define ENOTUNIQ 115 /* Name not unique on network */ 9254579826SDavid Howells #define ERESTART 116 /* Interrupted syscall should be restarted */ 9354579826SDavid Howells #define EUCLEAN 117 /* Structure needs cleaning */ 9454579826SDavid Howells #define ENOTNAM 118 /* Not a XENIX named type file */ 9554579826SDavid Howells #define ENAVAIL 119 /* No XENIX semaphores available */ 9654579826SDavid Howells #define EISNAM 120 /* Is a named type file */ 9754579826SDavid Howells #define EREMOTEIO 121 /* Remote I/O error */ 9854579826SDavid Howells #define EILSEQ 122 /* Illegal byte sequence */ 9954579826SDavid Howells #define ELIBMAX 123 /* Atmpt to link in too many shared libs */ 10054579826SDavid Howells #define ELIBSCN 124 /* .lib section in a.out corrupted */ 10154579826SDavid Howells 10254579826SDavid Howells #define ENOMEDIUM 125 /* No medium found */ 10354579826SDavid Howells #define EMEDIUMTYPE 126 /* Wrong medium type */ 10454579826SDavid Howells #define ECANCELED 127 /* Operation Cancelled */ 10554579826SDavid Howells #define ENOKEY 128 /* Required key not available */ 10654579826SDavid Howells #define EKEYEXPIRED 129 /* Key has expired */ 10754579826SDavid Howells #define EKEYREVOKED 130 /* Key has been revoked */ 10854579826SDavid Howells #define EKEYREJECTED 131 /* Key was rejected by service */ 10954579826SDavid Howells 11054579826SDavid Howells /* for robust mutexes */ 11154579826SDavid Howells #define EOWNERDEAD 132 /* Owner died */ 11254579826SDavid Howells #define ENOTRECOVERABLE 133 /* State not recoverable */ 11354579826SDavid Howells 11454579826SDavid Howells #define ERFKILL 134 /* Operation not possible due to RF-kill */ 11554579826SDavid Howells 11654579826SDavid Howells #define EHWPOISON 135 /* Memory page has hardware error */ 11754579826SDavid Howells 11854579826SDavid Howells #endif 119