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