]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h
8d5d49e42b88d61570c785957f523f4411513189
[thirdparty/glibc.git] / sysdeps / unix / sysv / sysv4 / solaris2 / bits / errno.h
1 /* Copyright (C) 1991, 1994, 1996, 1997, 1998 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
18
19 /* This file defines the `errno' constants. */
20
21 #if !defined __Emath_defined && (defined _ERRNO_H || defined __need_Emath)
22 #undef __need_Emath
23 #define __Emath_defined 1
24
25 # define EDOM 33 /* Math argument out of domain of function. */
26 # define EILSEQ 88 /* Illegal byte sequence. */
27 # define ERANGE 34 /* Math result not representable. */
28 #endif
29
30 #ifdef _ERRNO_H
31 /* All error codes the system knows about. */
32
33 # define EPERM 1 /* Not super-user. */
34 # define ENOENT 2 /* No such file or directory. */
35 # define ESRCH 3 /* No such process. */
36 # define EINTR 4 /* Interrupted system call. */
37 # define EIO 5 /* I/O error. */
38 # define ENXIO 6 /* No such device or address. */
39 # define E2BIG 7 /* Arg list too long. */
40 # define ENOEXEC 8 /* Exec format error. */
41 # define EBADF 9 /* Bad file number. */
42 # define ECHILD 10 /* No children. */
43 # define EAGAIN 11 /* Resource temporarily unavailable. */
44 # define EWOULDBLOCK EAGAIN
45 # define ENOMEM 12 /* Not enough core. */
46 # define EACCES 13 /* Permission denied. */
47 # define EFAULT 14 /* Bad address. */
48 # define ENOTBLK 15 /* Block device required. */
49 # define EBUSY 16 /* Mount device busy. */
50 # define EEXIST 17 /* File exists. */
51 # define EXDEV 18 /* Cross-device link. */
52 # define ENODEV 19 /* No such device. */
53 # define ENOTDIR 20 /* Not a directory. */
54 # define EISDIR 21 /* Is a directory. */
55 # define EINVAL 22 /* Invalid argument. */
56 # define ENFILE 23 /* File table overflow. */
57 # define EMFILE 24 /* Too many open files. */
58 # define ENOTTY 25 /* Inappropriate ioctl for device. */
59 # define ETXTBSY 26 /* Text file busy. */
60 # define EFBIG 27 /* File too large. */
61 # define ENOSPC 28 /* No space left on device. */
62 # define ESPIPE 29 /* Illegal seek. */
63 # define EROFS 30 /* Read only file system. */
64 # define EMLINK 31 /* Too many links. */
65 # define EPIPE 32 /* Broken pipe. */
66 # define ENOMSG 35 /* No message of desired type. */
67 # define EIDRM 36 /* Identifier removed. */
68 # define ECHRNG 37 /* Channel number out of range. */
69 # define EL2NSYNC 38 /* Level 2 not synchronized. */
70 # define EL3HLT 39 /* Level 3 halted. */
71 # define EL3RST 40 /* Level 3 reset. */
72 # define ELNRNG 41 /* Link number out of range. */
73 # define EUNATCH 42 /* Protocol driver not attached. */
74 # define ENOCSI 43 /* No CSI structure available. */
75 # define EL2HLT 44 /* Level 2 halted. */
76 # define EDEADLK 45 /* Deadlock condition. */
77 # define ENOLCK 46 /* No record locks available. */
78 # define ECANCELED 47 /* Operation canceled. */
79 # define ENOTSUP 48 /* Operation not supported. */
80
81 /* Filesystem Quotas. */
82 # define EDQUOT 49 /* Disc quota exceeded. */
83
84 /* Convergent Error Returns. */
85 # define EBADE 50 /* Invalid exchange. */
86 # define EBADR 51 /* Invalid request descriptor. */
87 # define EXFULL 52 /* Exchange full. */
88 # define ENOANO 53 /* No anode. */
89 # define EBADRQC 54 /* Invalid request code. */
90 # define EBADSLT 55 /* Invalid slot. */
91 # define EDEADLOCK 56 /* File locking deadlock error. */
92
93 # define EBFONT 57 /* Bad font file fmt. */
94
95 /* STREAM problems. */
96 # define ENOSTR 60 /* Device not a stream. */
97 # define ENODATA 61 /* No data (for no delay io). */
98 # define ETIME 62 /* Timer expired. */
99 # define ENOSR 63 /* Out of streams resources. */
100
101 # define ENONET 64 /* Machine is not on the network. */
102 # define ENOPKG 65 /* Package not installed. */
103 # define EREMOTE 66 /* The object is remote. */
104 # define ENOLINK 67 /* The link has been severed. */
105 # define EADV 68 /* Advertise error. */
106 # define ESRMNT 69 /* Srmount error. */
107
108 # define ECOMM 70 /* Communication error on send. */
109 # define EPROTO 71 /* Protocol error. */
110 # define EMULTIHOP 74 /* Multihop attempted. */
111 # define EBADMSG 77 /* Trying to read unreadable message. */
112 # define ENAMETOOLONG 78 /* Path name is too long. */
113 # define EOVERFLOW 79 /* Value too large to be stored in data type.*/
114 # define ENOTUNIQ 80 /* Given log. name not unique. */
115 # define EBADFD 81 /* F.d. invalid for this operation. */
116 # define EREMCHG 82 /* Remote address changed. */
117
118 /* Shared library problems. */
119 # define ELIBACC 83 /* Can't access a needed shared lib. */
120 # define ELIBBAD 84 /* Accessing a corrupted shared lib. */
121 # define ELIBSCN 85 /* .lib section in a.out corrupted. */
122 # define ELIBMAX 86 /* Attempting to link in too many libs. */
123 # define ELIBEXEC 87 /* Attempting to exec a shared library. */
124 # define ENOSYS 89 /* Unsupported file system operation. */
125 # define ELOOP 90 /* Symbolic link loop. */
126 # define ERESTART 91 /* Restartable system call. */
127 # define ESTRPIPE 92 /* If pipe/FIFO, don't sleep in stream head. */
128 # define ENOTEMPTY 93 /* Directory not empty. */
129 # define EUSERS 94 /* Too many users (for UFS). */
130
131 /* BSD Networking Software: argument errors. */
132 # define ENOTSOCK 95 /* Socket operation on non-socket. */
133 # define EDESTADDRREQ 96 /* Destination address required. */
134 # define EMSGSIZE 97 /* Message too long. */
135 # define EPROTOTYPE 98 /* Protocol wrong type for socket. */
136 # define ENOPROTOOPT 99 /* Protocol not available. */
137 # define EPROTONOSUPPORT 120 /* Protocol not supported. */
138 # define ESOCKTNOSUPPORT 121 /* Socket type not supported. */
139 # define EOPNOTSUPP 122 /* Operation not supported on socket. */
140 # define EPFNOSUPPORT 123 /* Protocol family not supported. */
141 # define EAFNOSUPPORT 124 /* Address family not supported by
142 protocol family. */
143 # define EADDRINUSE 125 /* Address already in use. */
144 # define EADDRNOTAVAIL 126 /* Can't assign requested address. */
145 /* BSD Networking Software: operational errors. */
146 # define ENETDOWN 127 /* Network is down. */
147 # define ENETUNREACH 128 /* Network is unreachable. */
148 # define ENETRESET 129 /* Network dropped connection because
149 of reset. */
150 # define ECONNABORTED 130 /* Software caused connection abort. */
151 # define ECONNRESET 131 /* Connection reset by peer. */
152 # define ENOBUFS 132 /* No buffer space available. */
153 # define EISCONN 133 /* Socket is already connected. */
154 # define ENOTCONN 134 /* Socket is not connected. */
155 /* XENIX has 135 - 142. */
156 # define ESHUTDOWN 143 /* Can't send after socket shutdown. */
157 # define ETOOMANYREFS 144 /* Too many references: can't splice. */
158 # define ETIMEDOUT 145 /* Connection timed out. */
159 # define ECONNREFUSED 146 /* Connection refused. */
160 # define EHOSTDOWN 147 /* Host is down. */
161 # define EHOSTUNREACH 148 /* No route to host. */
162 # define EALREADY 149 /* operation already in progress. */
163 # define EINPROGRESS 150 /* operation now in progress. */
164
165 /* SUN Network File System. */
166 # define ESTALE 151 /* Stale NFS file handle. */
167
168 #endif
169
170 #define __set_errno(val) errno = (val)