1 /* $NetBSD: svr4_errno.h,v 1.6 2001/02/21 21:39:59 jdolecek Exp $ */
2
3 /*-
4 * Copyright (c) 1994 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #ifndef _SVR4_ERRNO_H_
40 #define _SVR4_ERRNO_H_
41
42 #define SVR4_EPERM 1
43 #define SVR4_ENOENT 2
44 #define SVR4_ESRCH 3
45 #define SVR4_EINTR 4
46 #define SVR4_EIO 5
47 #define SVR4_ENXIO 6
48 #define SVR4_E2BIG 7
49 #define SVR4_ENOEXEC 8
50 #define SVR4_EBADF 9
51 #define SVR4_ECHILD 10
52 #define SVR4_EAGAIN 11
53 #define SVR4_ENOMEM 12
54 #define SVR4_EACCES 13
55 #define SVR4_EFAULT 14
56 #define SVR4_ENOTBLK 15
57 #define SVR4_EBUSY 16
58 #define SVR4_EEXIST 17
59 #define SVR4_EXDEV 18
60 #define SVR4_ENODEV 19
61 #define SVR4_ENOTDIR 20
62 #define SVR4_EISDIR 21
63 #define SVR4_EINVAL 22
64 #define SVR4_ENFILE 23
65 #define SVR4_EMFILE 24
66 #define SVR4_ENOTTY 25
67 #define SVR4_ETXTBSY 26
68 #define SVR4_EFBIG 27
69 #define SVR4_ENOSPC 28
70 #define SVR4_ESPIPE 29
71 #define SVR4_EROFS 30
72 #define SVR4_EMLINK 31
73 #define SVR4_EPIPE 32
74 #define SVR4_EDOM 33
75 #define SVR4_ERANGE 34
76 #define SVR4_ENOMSG 35
77 #define SVR4_EIDRM 36
78 #define SVR4_ECHRNG 37
79 #define SVR4_EL2NSYNC 38
80 #define SVR4_EL3HLT 39
81 #define SVR4_EL3RST 40
82 #define SVR4_ELNRNG 41
83 #define SVR4_EUNATCH 42
84 #define SVR4_ENOCSI 43
85 #define SVR4_EL2HLT 44
86 #define SVR4_EDEADLK 45
87 #define SVR4_ENOLCK 46
88 #define SVR4_EBADE 50
89 #define SVR4_EBADR 51
90 #define SVR4_EXFULL 52
91 #define SVR4_ENOANO 53
92 #define SVR4_EBADRQC 54
93 #define SVR4_EBADSLT 55
94 #define SVR4_EDEADLOCK 56
95 #define SVR4_EBFONT 57
96 #define SVR4_ENOSTR 60
97 #define SVR4_ENODATA 61
98 #define SVR4_ETIME 62
99 #define SVR4_ENOSR 63
100 #define SVR4_ENONET 64
101 #define SVR4_ENOPKG 65
102 #define SVR4_EREMOTE 66
103 #define SVR4_ENOLINK 67
104 #define SVR4_EADV 68
105 #define SVR4_ESRMNT 69
106 #define SVR4_ECOMM 70
107 #define SVR4_EPROTO 71
108 #define SVR4_EMULTIHOP 74
109 #define SVR4_EBADMSG 77
110 #define SVR4_ENAMETOOLONG 78
111 #define SVR4_EOVERFLOW 79
112 #define SVR4_ENOTUNIQ 80
113 #define SVR4_EBADFD 81
114 #define SVR4_EREMCHG 82
115 #define SVR4_ELIBACC 83
116 #define SVR4_ELIBBAD 84
117 #define SVR4_ELIBSCN 85
118 #define SVR4_ELIBMAX 86
119 #define SVR4_ELIBEXEC 87
120 #define SVR4_EILSEQ 88
121 #define SVR4_ENOSYS 89
122 #define SVR4_ELOOP 90
123 #define SVR4_ERESTART 91
124 #define SVR4_ESTRPIPE 92
125 #define SVR4_ENOTEMPTY 93
126 #define SVR4_EUSERS 94
127 #define SVR4_ENOTSOCK 95
128 #define SVR4_EDESTADDRREQ 96
129 #define SVR4_EMSGSIZE 97
130 #define SVR4_EPROTOTYPE 98
131 #define SVR4_ENOPROTOOPT 99
132 #define SVR4_EPROTONOSUPPORT 120
133 #define SVR4_ESOCKTNOSUPPORT 121
134 #define SVR4_EOPNOTSUPP 122
135 #define SVR4_EPFNOSUPPORT 123
136 #define SVR4_EAFNOSUPPORT 124
137 #define SVR4_EADDRINUSE 125
138 #define SVR4_EADDRNOTAVAIL 126
139 #define SVR4_ENETDOWN 127
140 #define SVR4_ENETUNREACH 128
141 #define SVR4_ENETRESET 129
142 #define SVR4_ECONNABORTED 130
143 #define SVR4_ECONNRESET 131
144 #define SVR4_ENOBUFS 132
145 #define SVR4_EISCONN 133
146 #define SVR4_ENOTCONN 134
147 #define SVR4_EUCLEAN 135
148 #define SVR4_ENOTNAM 137
149 #define SVR4_ENAVAIL 138
150 #define SVR4_EISNAM 139
151 #define SVR4_EREMOTEIO 140
152 #define SVR4_EINIT 141
153 #define SVR4_EREMDEV 142
154 #define SVR4_ESHUTDOWN 143
155 #define SVR4_ETOOMANYREFS 144
156 #define SVR4_ETIMEDOUT 145
157 #define SVR4_ECONNREFUSED 146
158 #define SVR4_EHOSTDOWN 147
159 #define SVR4_EHOSTUNREACH 148
160 #define SVR4_EWOULDBLOCK SVR4_EAGAIN
161 #define SVR4_EALREADY 149
162 #define SVR4_EINPROGRESS 150
163 #define SVR4_ESTALE 151
164 #define SVR4_EIORESID 500
165
166 /*
167 * These ones are not translated...
168 */
169 #define SVR4_EPROCLIM SVR4_ENOSYS
170 #define SVR4_EDQUOT SVR4_ENOSYS
171 #define SVR4_EBADRPC SVR4_ENOSYS
172 #define SVR4_ERPCMISMATCH SVR4_ENOSYS
173 #define SVR4_EPROGUNAVAIL SVR4_ENOSYS
174 #define SVR4_EPROGMISMATCH SVR4_ENOSYS
175 #define SVR4_EPROCUNAVAIL SVR4_ENOSYS
176 #define SVR4_EFTYPE SVR4_ENOSYS
177 #define SVR4_EAUTH SVR4_ENOSYS
178 #define SVR4_ENEEDAUTH SVR4_ENOSYS
179
180 extern const int native_to_svr4_errno[];
181
182 #endif /* !_SVR4_ERRNO_H_ */
Cache object: 8627e33488187449a973083b2529f4b7
|