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