blob: 3a74f6fa47626007cbd088517e5471b52d634c11 [file] [log] [blame]
Daniel Hellstromc2f02da2008-03-28 09:47:00 +01001/* SPARC errno definitions, taken from asm-ppc/errno.h
2 *
3 * (C) Copyright 2002
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 * MA 02111-1307 USA
23 */
24
25#ifndef __SPARC_ERRNO_H__
26#define __SPARC_ERRNO_H__
27
28#define EPERM 1 /* Operation not permitted */
29#define ENOENT 2 /* No such file or directory */
30#define ESRCH 3 /* No such process */
31#define EINTR 4 /* Interrupted system call */
32#define EIO 5 /* I/O error */
33#define ENXIO 6 /* No such device or address */
34#define E2BIG 7 /* Arg list too long */
35#define ENOEXEC 8 /* Exec format error */
36#define EBADF 9 /* Bad file number */
37#define ECHILD 10 /* No child processes */
38#define EAGAIN 11 /* Try again */
39#define ENOMEM 12 /* Out of memory */
40#define EACCES 13 /* Permission denied */
41#define EFAULT 14 /* Bad address */
42#define ENOTBLK 15 /* Block device required */
43#define EBUSY 16 /* Device or resource busy */
44#define EEXIST 17 /* File exists */
45#define EXDEV 18 /* Cross-device link */
46#define ENODEV 19 /* No such device */
47#define ENOTDIR 20 /* Not a directory */
48#define EISDIR 21 /* Is a directory */
49#define EINVAL 22 /* Invalid argument */
50#define ENFILE 23 /* File table overflow */
51#define EMFILE 24 /* Too many open files */
52#define ENOTTY 25 /* Not a typewriter */
53#define ETXTBSY 26 /* Text file busy */
54#define EFBIG 27 /* File too large */
55#define ENOSPC 28 /* No space left on device */
56#define ESPIPE 29 /* Illegal seek */
57#define EROFS 30 /* Read-only file system */
58#define EMLINK 31 /* Too many links */
59#define EPIPE 32 /* Broken pipe */
60#define EDOM 33 /* Math argument out of domain of func */
61#define ERANGE 34 /* Math result not representable */
62#define EDEADLK 35 /* Resource deadlock would occur */
63#define ENAMETOOLONG 36 /* File name too long */
64#define ENOLCK 37 /* No record locks available */
65#define ENOSYS 38 /* Function not implemented */
66#define ENOTEMPTY 39 /* Directory not empty */
67#define ELOOP 40 /* Too many symbolic links encountered */
68#define EWOULDBLOCK EAGAIN /* Operation would block */
69#define ENOMSG 42 /* No message of desired type */
70#define EIDRM 43 /* Identifier removed */
71#define ECHRNG 44 /* Channel number out of range */
72#define EL2NSYNC 45 /* Level 2 not synchronized */
73#define EL3HLT 46 /* Level 3 halted */
74#define EL3RST 47 /* Level 3 reset */
75#define ELNRNG 48 /* Link number out of range */
76#define EUNATCH 49 /* Protocol driver not attached */
77#define ENOCSI 50 /* No CSI structure available */
78#define EL2HLT 51 /* Level 2 halted */
79#define EBADE 52 /* Invalid exchange */
80#define EBADR 53 /* Invalid request descriptor */
81#define EXFULL 54 /* Exchange full */
82#define ENOANO 55 /* No anode */
83#define EBADRQC 56 /* Invalid request code */
84#define EBADSLT 57 /* Invalid slot */
85#define EDEADLOCK 58 /* File locking deadlock error */
86#define EBFONT 59 /* Bad font file format */
87#define ENOSTR 60 /* Device not a stream */
88#define ENODATA 61 /* No data available */
89#define ETIME 62 /* Timer expired */
90#define ENOSR 63 /* Out of streams resources */
91#define ENONET 64 /* Machine is not on the network */
92#define ENOPKG 65 /* Package not installed */
93#define EREMOTE 66 /* Object is remote */
94#define ENOLINK 67 /* Link has been severed */
95#define EADV 68 /* Advertise error */
96#define ESRMNT 69 /* Srmount error */
97#define ECOMM 70 /* Communication error on send */
98#define EPROTO 71 /* Protocol error */
99#define EMULTIHOP 72 /* Multihop attempted */
100#define EDOTDOT 73 /* RFS specific error */
101#define EBADMSG 74 /* Not a data message */
102#define EOVERFLOW 75 /* Value too large for defined data type */
103#define ENOTUNIQ 76 /* Name not unique on network */
104#define EBADFD 77 /* File descriptor in bad state */
105#define EREMCHG 78 /* Remote address changed */
106#define ELIBACC 79 /* Can not access a needed shared library */
107#define ELIBBAD 80 /* Accessing a corrupted shared library */
108#define ELIBSCN 81 /* .lib section in a.out corrupted */
109#define ELIBMAX 82 /* Attempting to link in too many shared libraries */
110#define ELIBEXEC 83 /* Cannot exec a shared library directly */
111#define EILSEQ 84 /* Illegal byte sequence */
112#define ERESTART 85 /* Interrupted system call should be restarted */
113#define ESTRPIPE 86 /* Streams pipe error */
114#define EUSERS 87 /* Too many users */
115#define ENOTSOCK 88 /* Socket operation on non-socket */
116#define EDESTADDRREQ 89 /* Destination address required */
117#define EMSGSIZE 90 /* Message too long */
118#define EPROTOTYPE 91 /* Protocol wrong type for socket */
119#define ENOPROTOOPT 92 /* Protocol not available */
120#define EPROTONOSUPPORT 93 /* Protocol not supported */
121#define ESOCKTNOSUPPORT 94 /* Socket type not supported */
122#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
123#define EPFNOSUPPORT 96 /* Protocol family not supported */
124#define EAFNOSUPPORT 97 /* Address family not supported by protocol */
125#define EADDRINUSE 98 /* Address already in use */
126#define EADDRNOTAVAIL 99 /* Cannot assign requested address */
127#define ENETDOWN 100 /* Network is down */
128#define ENETUNREACH 101 /* Network is unreachable */
129#define ENETRESET 102 /* Network dropped connection because of reset */
130#define ECONNABORTED 103 /* Software caused connection abort */
131#define ECONNRESET 104 /* Connection reset by peer */
132#define ENOBUFS 105 /* No buffer space available */
133#define EISCONN 106 /* Transport endpoint is already connected */
134#define ENOTCONN 107 /* Transport endpoint is not connected */
135#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
136#define ETOOMANYREFS 109 /* Too many references: cannot splice */
137#define ETIMEDOUT 110 /* Connection timed out */
138#define ECONNREFUSED 111 /* Connection refused */
139#define EHOSTDOWN 112 /* Host is down */
140#define EHOSTUNREACH 113 /* No route to host */
141#define EALREADY 114 /* Operation already in progress */
142#define EINPROGRESS 115 /* Operation now in progress */
143#define ESTALE 116 /* Stale NFS file handle */
144#define EUCLEAN 117 /* Structure needs cleaning */
145#define ENOTNAM 118 /* Not a XENIX named type file */
146#define ENAVAIL 119 /* No XENIX semaphores available */
147#define EISNAM 120 /* Is a named type file */
148#define EREMOTEIO 121 /* Remote I/O error */
149#define EDQUOT 122 /* Quota exceeded */
150
151#define ENOMEDIUM 123 /* No medium found */
152#define EMEDIUMTYPE 124 /* Wrong medium type */
153
154/* Should never be seen by user programs */
155#define ERESTARTSYS 512
156#define ERESTARTNOINTR 513
157#define ERESTARTNOHAND 514 /* restart if no handler.. */
158#define ENOIOCTLCMD 515 /* No ioctl command */
159
160#define _LAST_ERRNO 515
161
162#endif