18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci#ifndef _SPARC_ERRNO_H
38c2ecf20Sopenharmony_ci#define _SPARC_ERRNO_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/* These match the SunOS error numbering scheme. */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <asm-generic/errno-base.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#define	EWOULDBLOCK	EAGAIN	/* Operation would block */
108c2ecf20Sopenharmony_ci#define	EINPROGRESS	36	/* Operation now in progress */
118c2ecf20Sopenharmony_ci#define	EALREADY	37	/* Operation already in progress */
128c2ecf20Sopenharmony_ci#define	ENOTSOCK	38	/* Socket operation on non-socket */
138c2ecf20Sopenharmony_ci#define	EDESTADDRREQ	39	/* Destination address required */
148c2ecf20Sopenharmony_ci#define	EMSGSIZE	40	/* Message too long */
158c2ecf20Sopenharmony_ci#define	EPROTOTYPE	41	/* Protocol wrong type for socket */
168c2ecf20Sopenharmony_ci#define	ENOPROTOOPT	42	/* Protocol not available */
178c2ecf20Sopenharmony_ci#define	EPROTONOSUPPORT	43	/* Protocol not supported */
188c2ecf20Sopenharmony_ci#define	ESOCKTNOSUPPORT	44	/* Socket type not supported */
198c2ecf20Sopenharmony_ci#define	EOPNOTSUPP	45	/* Op not supported on transport endpoint */
208c2ecf20Sopenharmony_ci#define	EPFNOSUPPORT	46	/* Protocol family not supported */
218c2ecf20Sopenharmony_ci#define	EAFNOSUPPORT	47	/* Address family not supported by protocol */
228c2ecf20Sopenharmony_ci#define	EADDRINUSE	48	/* Address already in use */
238c2ecf20Sopenharmony_ci#define	EADDRNOTAVAIL	49	/* Cannot assign requested address */
248c2ecf20Sopenharmony_ci#define	ENETDOWN	50	/* Network is down */
258c2ecf20Sopenharmony_ci#define	ENETUNREACH	51	/* Network is unreachable */
268c2ecf20Sopenharmony_ci#define	ENETRESET	52	/* Net dropped connection because of reset */
278c2ecf20Sopenharmony_ci#define	ECONNABORTED	53	/* Software caused connection abort */
288c2ecf20Sopenharmony_ci#define	ECONNRESET	54	/* Connection reset by peer */
298c2ecf20Sopenharmony_ci#define	ENOBUFS		55	/* No buffer space available */
308c2ecf20Sopenharmony_ci#define	EISCONN		56	/* Transport endpoint is already connected */
318c2ecf20Sopenharmony_ci#define	ENOTCONN	57	/* Transport endpoint is not connected */
328c2ecf20Sopenharmony_ci#define	ESHUTDOWN	58	/* No send after transport endpoint shutdown */
338c2ecf20Sopenharmony_ci#define	ETOOMANYREFS	59	/* Too many references: cannot splice */
348c2ecf20Sopenharmony_ci#define	ETIMEDOUT	60	/* Connection timed out */
358c2ecf20Sopenharmony_ci#define	ECONNREFUSED	61	/* Connection refused */
368c2ecf20Sopenharmony_ci#define	ELOOP		62	/* Too many symbolic links encountered */
378c2ecf20Sopenharmony_ci#define	ENAMETOOLONG	63	/* File name too long */
388c2ecf20Sopenharmony_ci#define	EHOSTDOWN	64	/* Host is down */
398c2ecf20Sopenharmony_ci#define	EHOSTUNREACH	65	/* No route to host */
408c2ecf20Sopenharmony_ci#define	ENOTEMPTY	66	/* Directory not empty */
418c2ecf20Sopenharmony_ci#define EPROCLIM        67      /* SUNOS: Too many processes */
428c2ecf20Sopenharmony_ci#define	EUSERS		68	/* Too many users */
438c2ecf20Sopenharmony_ci#define	EDQUOT		69	/* Quota exceeded */
448c2ecf20Sopenharmony_ci#define	ESTALE		70	/* Stale file handle */
458c2ecf20Sopenharmony_ci#define	EREMOTE		71	/* Object is remote */
468c2ecf20Sopenharmony_ci#define	ENOSTR		72	/* Device not a stream */
478c2ecf20Sopenharmony_ci#define	ETIME		73	/* Timer expired */
488c2ecf20Sopenharmony_ci#define	ENOSR		74	/* Out of streams resources */
498c2ecf20Sopenharmony_ci#define	ENOMSG		75	/* No message of desired type */
508c2ecf20Sopenharmony_ci#define	EBADMSG		76	/* Not a data message */
518c2ecf20Sopenharmony_ci#define	EIDRM		77	/* Identifier removed */
528c2ecf20Sopenharmony_ci#define	EDEADLK		78	/* Resource deadlock would occur */
538c2ecf20Sopenharmony_ci#define	ENOLCK		79	/* No record locks available */
548c2ecf20Sopenharmony_ci#define	ENONET		80	/* Machine is not on the network */
558c2ecf20Sopenharmony_ci#define ERREMOTE        81      /* SunOS: Too many lvls of remote in path */
568c2ecf20Sopenharmony_ci#define	ENOLINK		82	/* Link has been severed */
578c2ecf20Sopenharmony_ci#define	EADV		83	/* Advertise error */
588c2ecf20Sopenharmony_ci#define	ESRMNT		84	/* Srmount error */
598c2ecf20Sopenharmony_ci#define	ECOMM		85      /* Communication error on send */
608c2ecf20Sopenharmony_ci#define	EPROTO		86	/* Protocol error */
618c2ecf20Sopenharmony_ci#define	EMULTIHOP	87	/* Multihop attempted */
628c2ecf20Sopenharmony_ci#define	EDOTDOT		88	/* RFS specific error */
638c2ecf20Sopenharmony_ci#define	EREMCHG		89	/* Remote address changed */
648c2ecf20Sopenharmony_ci#define	ENOSYS		90	/* Function not implemented */
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci/* The rest have no SunOS equivalent. */
678c2ecf20Sopenharmony_ci#define	ESTRPIPE	91	/* Streams pipe error */
688c2ecf20Sopenharmony_ci#define	EOVERFLOW	92	/* Value too large for defined data type */
698c2ecf20Sopenharmony_ci#define	EBADFD		93	/* File descriptor in bad state */
708c2ecf20Sopenharmony_ci#define	ECHRNG		94	/* Channel number out of range */
718c2ecf20Sopenharmony_ci#define	EL2NSYNC	95	/* Level 2 not synchronized */
728c2ecf20Sopenharmony_ci#define	EL3HLT		96	/* Level 3 halted */
738c2ecf20Sopenharmony_ci#define	EL3RST		97	/* Level 3 reset */
748c2ecf20Sopenharmony_ci#define	ELNRNG		98	/* Link number out of range */
758c2ecf20Sopenharmony_ci#define	EUNATCH		99	/* Protocol driver not attached */
768c2ecf20Sopenharmony_ci#define	ENOCSI		100	/* No CSI structure available */
778c2ecf20Sopenharmony_ci#define	EL2HLT		101	/* Level 2 halted */
788c2ecf20Sopenharmony_ci#define	EBADE		102	/* Invalid exchange */
798c2ecf20Sopenharmony_ci#define	EBADR		103	/* Invalid request descriptor */
808c2ecf20Sopenharmony_ci#define	EXFULL		104	/* Exchange full */
818c2ecf20Sopenharmony_ci#define	ENOANO		105	/* No anode */
828c2ecf20Sopenharmony_ci#define	EBADRQC		106	/* Invalid request code */
838c2ecf20Sopenharmony_ci#define	EBADSLT		107	/* Invalid slot */
848c2ecf20Sopenharmony_ci#define	EDEADLOCK	108	/* File locking deadlock error */
858c2ecf20Sopenharmony_ci#define	EBFONT		109	/* Bad font file format */
868c2ecf20Sopenharmony_ci#define	ELIBEXEC	110	/* Cannot exec a shared library directly */
878c2ecf20Sopenharmony_ci#define	ENODATA		111	/* No data available */
888c2ecf20Sopenharmony_ci#define	ELIBBAD		112	/* Accessing a corrupted shared library */
898c2ecf20Sopenharmony_ci#define	ENOPKG		113	/* Package not installed */
908c2ecf20Sopenharmony_ci#define	ELIBACC		114	/* Can not access a needed shared library */
918c2ecf20Sopenharmony_ci#define	ENOTUNIQ	115	/* Name not unique on network */
928c2ecf20Sopenharmony_ci#define	ERESTART	116	/* Interrupted syscall should be restarted */
938c2ecf20Sopenharmony_ci#define	EUCLEAN		117	/* Structure needs cleaning */
948c2ecf20Sopenharmony_ci#define	ENOTNAM		118	/* Not a XENIX named type file */
958c2ecf20Sopenharmony_ci#define	ENAVAIL		119	/* No XENIX semaphores available */
968c2ecf20Sopenharmony_ci#define	EISNAM		120	/* Is a named type file */
978c2ecf20Sopenharmony_ci#define	EREMOTEIO	121	/* Remote I/O error */
988c2ecf20Sopenharmony_ci#define	EILSEQ		122	/* Illegal byte sequence */
998c2ecf20Sopenharmony_ci#define	ELIBMAX		123	/* Atmpt to link in too many shared libs */
1008c2ecf20Sopenharmony_ci#define	ELIBSCN		124	/* .lib section in a.out corrupted */
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci#define	ENOMEDIUM	125	/* No medium found */
1038c2ecf20Sopenharmony_ci#define	EMEDIUMTYPE	126	/* Wrong medium type */
1048c2ecf20Sopenharmony_ci#define	ECANCELED	127	/* Operation Cancelled */
1058c2ecf20Sopenharmony_ci#define	ENOKEY		128	/* Required key not available */
1068c2ecf20Sopenharmony_ci#define	EKEYEXPIRED	129	/* Key has expired */
1078c2ecf20Sopenharmony_ci#define	EKEYREVOKED	130	/* Key has been revoked */
1088c2ecf20Sopenharmony_ci#define	EKEYREJECTED	131	/* Key was rejected by service */
1098c2ecf20Sopenharmony_ci
1108c2ecf20Sopenharmony_ci/* for robust mutexes */
1118c2ecf20Sopenharmony_ci#define	EOWNERDEAD	132	/* Owner died */
1128c2ecf20Sopenharmony_ci#define	ENOTRECOVERABLE	133	/* State not recoverable */
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci#define	ERFKILL		134	/* Operation not possible due to RF-kill */
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ci#define EHWPOISON	135	/* Memory page has hardware error */
1178c2ecf20Sopenharmony_ci
1188c2ecf20Sopenharmony_ci#endif
119