162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci#ifndef _ALPHA_ERRNO_H
362306a36Sopenharmony_ci#define _ALPHA_ERRNO_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <asm-generic/errno-base.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#undef	EAGAIN			/* 11 in errno-base.h */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#define	EDEADLK		11	/* Resource deadlock would occur */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#define	EAGAIN		35	/* Try again */
1262306a36Sopenharmony_ci#define	EWOULDBLOCK	EAGAIN	/* Operation would block */
1362306a36Sopenharmony_ci#define	EINPROGRESS	36	/* Operation now in progress */
1462306a36Sopenharmony_ci#define	EALREADY	37	/* Operation already in progress */
1562306a36Sopenharmony_ci#define	ENOTSOCK	38	/* Socket operation on non-socket */
1662306a36Sopenharmony_ci#define	EDESTADDRREQ	39	/* Destination address required */
1762306a36Sopenharmony_ci#define	EMSGSIZE	40	/* Message too long */
1862306a36Sopenharmony_ci#define	EPROTOTYPE	41	/* Protocol wrong type for socket */
1962306a36Sopenharmony_ci#define	ENOPROTOOPT	42	/* Protocol not available */
2062306a36Sopenharmony_ci#define	EPROTONOSUPPORT	43	/* Protocol not supported */
2162306a36Sopenharmony_ci#define	ESOCKTNOSUPPORT	44	/* Socket type not supported */
2262306a36Sopenharmony_ci#define	EOPNOTSUPP	45	/* Operation not supported on transport endpoint */
2362306a36Sopenharmony_ci#define	EPFNOSUPPORT	46	/* Protocol family not supported */
2462306a36Sopenharmony_ci#define	EAFNOSUPPORT	47	/* Address family not supported by protocol */
2562306a36Sopenharmony_ci#define	EADDRINUSE	48	/* Address already in use */
2662306a36Sopenharmony_ci#define	EADDRNOTAVAIL	49	/* Cannot assign requested address */
2762306a36Sopenharmony_ci#define	ENETDOWN	50	/* Network is down */
2862306a36Sopenharmony_ci#define	ENETUNREACH	51	/* Network is unreachable */
2962306a36Sopenharmony_ci#define	ENETRESET	52	/* Network dropped connection because of reset */
3062306a36Sopenharmony_ci#define	ECONNABORTED	53	/* Software caused connection abort */
3162306a36Sopenharmony_ci#define	ECONNRESET	54	/* Connection reset by peer */
3262306a36Sopenharmony_ci#define	ENOBUFS		55	/* No buffer space available */
3362306a36Sopenharmony_ci#define	EISCONN		56	/* Transport endpoint is already connected */
3462306a36Sopenharmony_ci#define	ENOTCONN	57	/* Transport endpoint is not connected */
3562306a36Sopenharmony_ci#define	ESHUTDOWN	58	/* Cannot send after transport endpoint shutdown */
3662306a36Sopenharmony_ci#define	ETOOMANYREFS	59	/* Too many references: cannot splice */
3762306a36Sopenharmony_ci#define	ETIMEDOUT	60	/* Connection timed out */
3862306a36Sopenharmony_ci#define	ECONNREFUSED	61	/* Connection refused */
3962306a36Sopenharmony_ci#define	ELOOP		62	/* Too many symbolic links encountered */
4062306a36Sopenharmony_ci#define	ENAMETOOLONG	63	/* File name too long */
4162306a36Sopenharmony_ci#define	EHOSTDOWN	64	/* Host is down */
4262306a36Sopenharmony_ci#define	EHOSTUNREACH	65	/* No route to host */
4362306a36Sopenharmony_ci#define	ENOTEMPTY	66	/* Directory not empty */
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci#define	EUSERS		68	/* Too many users */
4662306a36Sopenharmony_ci#define	EDQUOT		69	/* Quota exceeded */
4762306a36Sopenharmony_ci#define	ESTALE		70	/* Stale file handle */
4862306a36Sopenharmony_ci#define	EREMOTE		71	/* Object is remote */
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci#define	ENOLCK		77	/* No record locks available */
5162306a36Sopenharmony_ci#define	ENOSYS		78	/* Function not implemented */
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#define	ENOMSG		80	/* No message of desired type */
5462306a36Sopenharmony_ci#define	EIDRM		81	/* Identifier removed */
5562306a36Sopenharmony_ci#define	ENOSR		82	/* Out of streams resources */
5662306a36Sopenharmony_ci#define	ETIME		83	/* Timer expired */
5762306a36Sopenharmony_ci#define	EBADMSG		84	/* Not a data message */
5862306a36Sopenharmony_ci#define	EPROTO		85	/* Protocol error */
5962306a36Sopenharmony_ci#define	ENODATA		86	/* No data available */
6062306a36Sopenharmony_ci#define	ENOSTR		87	/* Device not a stream */
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci#define	ENOPKG		92	/* Package not installed */
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci#define	EILSEQ		116	/* Illegal byte sequence */
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci/* The following are just random noise.. */
6762306a36Sopenharmony_ci#define	ECHRNG		88	/* Channel number out of range */
6862306a36Sopenharmony_ci#define	EL2NSYNC	89	/* Level 2 not synchronized */
6962306a36Sopenharmony_ci#define	EL3HLT		90	/* Level 3 halted */
7062306a36Sopenharmony_ci#define	EL3RST		91	/* Level 3 reset */
7162306a36Sopenharmony_ci
7262306a36Sopenharmony_ci#define	ELNRNG		93	/* Link number out of range */
7362306a36Sopenharmony_ci#define	EUNATCH		94	/* Protocol driver not attached */
7462306a36Sopenharmony_ci#define	ENOCSI		95	/* No CSI structure available */
7562306a36Sopenharmony_ci#define	EL2HLT		96	/* Level 2 halted */
7662306a36Sopenharmony_ci#define	EBADE		97	/* Invalid exchange */
7762306a36Sopenharmony_ci#define	EBADR		98	/* Invalid request descriptor */
7862306a36Sopenharmony_ci#define	EXFULL		99	/* Exchange full */
7962306a36Sopenharmony_ci#define	ENOANO		100	/* No anode */
8062306a36Sopenharmony_ci#define	EBADRQC		101	/* Invalid request code */
8162306a36Sopenharmony_ci#define	EBADSLT		102	/* Invalid slot */
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ci#define	EDEADLOCK	EDEADLK
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci#define	EBFONT		104	/* Bad font file format */
8662306a36Sopenharmony_ci#define	ENONET		105	/* Machine is not on the network */
8762306a36Sopenharmony_ci#define	ENOLINK		106	/* Link has been severed */
8862306a36Sopenharmony_ci#define	EADV		107	/* Advertise error */
8962306a36Sopenharmony_ci#define	ESRMNT		108	/* Srmount error */
9062306a36Sopenharmony_ci#define	ECOMM		109	/* Communication error on send */
9162306a36Sopenharmony_ci#define	EMULTIHOP	110	/* Multihop attempted */
9262306a36Sopenharmony_ci#define	EDOTDOT		111	/* RFS specific error */
9362306a36Sopenharmony_ci#define	EOVERFLOW	112	/* Value too large for defined data type */
9462306a36Sopenharmony_ci#define	ENOTUNIQ	113	/* Name not unique on network */
9562306a36Sopenharmony_ci#define	EBADFD		114	/* File descriptor in bad state */
9662306a36Sopenharmony_ci#define	EREMCHG		115	/* Remote address changed */
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ci#define	EUCLEAN		117	/* Structure needs cleaning */
9962306a36Sopenharmony_ci#define	ENOTNAM		118	/* Not a XENIX named type file */
10062306a36Sopenharmony_ci#define	ENAVAIL		119	/* No XENIX semaphores available */
10162306a36Sopenharmony_ci#define	EISNAM		120	/* Is a named type file */
10262306a36Sopenharmony_ci#define	EREMOTEIO	121	/* Remote I/O error */
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_ci#define	ELIBACC		122	/* Can not access a needed shared library */
10562306a36Sopenharmony_ci#define	ELIBBAD		123	/* Accessing a corrupted shared library */
10662306a36Sopenharmony_ci#define	ELIBSCN		124	/* .lib section in a.out corrupted */
10762306a36Sopenharmony_ci#define	ELIBMAX		125	/* Attempting to link in too many shared libraries */
10862306a36Sopenharmony_ci#define	ELIBEXEC	126	/* Cannot exec a shared library directly */
10962306a36Sopenharmony_ci#define	ERESTART	127	/* Interrupted system call should be restarted */
11062306a36Sopenharmony_ci#define	ESTRPIPE	128	/* Streams pipe error */
11162306a36Sopenharmony_ci
11262306a36Sopenharmony_ci#define ENOMEDIUM	129	/* No medium found */
11362306a36Sopenharmony_ci#define EMEDIUMTYPE	130	/* Wrong medium type */
11462306a36Sopenharmony_ci#define	ECANCELED	131	/* Operation Cancelled */
11562306a36Sopenharmony_ci#define	ENOKEY		132	/* Required key not available */
11662306a36Sopenharmony_ci#define	EKEYEXPIRED	133	/* Key has expired */
11762306a36Sopenharmony_ci#define	EKEYREVOKED	134	/* Key has been revoked */
11862306a36Sopenharmony_ci#define	EKEYREJECTED	135	/* Key was rejected by service */
11962306a36Sopenharmony_ci
12062306a36Sopenharmony_ci/* for robust mutexes */
12162306a36Sopenharmony_ci#define	EOWNERDEAD	136	/* Owner died */
12262306a36Sopenharmony_ci#define	ENOTRECOVERABLE	137	/* State not recoverable */
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ci#define	ERFKILL		138	/* Operation not possible due to RF-kill */
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ci#define EHWPOISON	139	/* Memory page has hardware error */
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ci#endif
129