1 /* $NetBSD: svr4_errno.c,v 1.9 2001/11/13 02:09:21 lukem 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 /*
40 * Translate error codes.
41 */
42
43 #include <sys/cdefs.h>
44 __KERNEL_RCSID(0, "$NetBSD: svr4_errno.c,v 1.9 2001/11/13 02:09:21 lukem Exp $");
45
46 #include <compat/svr4/svr4_errno.h>
47
48
49 const int native_to_svr4_errno[] = {
50 0,
51 SVR4_EPERM,
52 SVR4_ENOENT,
53 SVR4_ESRCH,
54 SVR4_EINTR,
55 SVR4_EIO,
56 SVR4_ENXIO,
57 SVR4_E2BIG,
58 SVR4_ENOEXEC,
59 SVR4_EBADF,
60 SVR4_ECHILD,
61 SVR4_EDEADLK,
62 SVR4_ENOMEM,
63 SVR4_EACCES,
64 SVR4_EFAULT,
65 SVR4_ENOTBLK,
66 SVR4_EBUSY,
67 SVR4_EEXIST,
68 SVR4_EXDEV,
69 SVR4_ENODEV,
70 SVR4_ENOTDIR,
71 SVR4_EISDIR,
72 SVR4_EINVAL,
73 SVR4_ENFILE,
74 SVR4_EMFILE,
75 SVR4_ENOTTY,
76 SVR4_ETXTBSY,
77 SVR4_EFBIG,
78 SVR4_ENOSPC,
79 SVR4_ESPIPE,
80 SVR4_EROFS,
81 SVR4_EMLINK,
82 SVR4_EPIPE,
83 SVR4_EDOM,
84 SVR4_ERANGE,
85 SVR4_EAGAIN,
86 SVR4_EINPROGRESS,
87 SVR4_EALREADY,
88 SVR4_ENOTSOCK,
89 SVR4_EDESTADDRREQ,
90 SVR4_EMSGSIZE,
91 SVR4_EPROTOTYPE,
92 SVR4_ENOPROTOOPT,
93 SVR4_EPROTONOSUPPORT,
94 SVR4_ESOCKTNOSUPPORT,
95 SVR4_EOPNOTSUPP,
96 SVR4_EPFNOSUPPORT,
97 SVR4_EAFNOSUPPORT,
98 SVR4_EADDRINUSE,
99 SVR4_EADDRNOTAVAIL,
100 SVR4_ENETDOWN,
101 SVR4_ENETUNREACH,
102 SVR4_ENETRESET,
103 SVR4_ECONNABORTED,
104 SVR4_ECONNRESET,
105 SVR4_ENOBUFS,
106 SVR4_EISCONN,
107 SVR4_ENOTCONN,
108 SVR4_ESHUTDOWN,
109 SVR4_ETOOMANYREFS,
110 SVR4_ETIMEDOUT,
111 SVR4_ECONNREFUSED,
112 SVR4_ELOOP,
113 SVR4_ENAMETOOLONG,
114 SVR4_EHOSTDOWN,
115 SVR4_EHOSTUNREACH,
116 SVR4_ENOTEMPTY,
117 SVR4_EPROCLIM,
118 SVR4_EUSERS,
119 SVR4_EDQUOT,
120 SVR4_ESTALE,
121 SVR4_EREMOTE,
122 SVR4_EBADRPC,
123 SVR4_ERPCMISMATCH,
124 SVR4_EPROGUNAVAIL,
125 SVR4_EPROGMISMATCH,
126 SVR4_EPROCUNAVAIL,
127 SVR4_ENOLCK,
128 SVR4_ENOSYS,
129 SVR4_EFTYPE,
130 SVR4_EAUTH,
131 SVR4_ENEEDAUTH,
132 SVR4_EIDRM,
133 SVR4_ENOMSG,
134 };
Cache object: fb4f0ad50d4040ed99a023e380c1cc4a
|