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