1 /* $OpenBSD: ibcs2_errno.c,v 1.4 1997/01/23 16:12:16 niklas Exp $ */
2 /* $NetBSD: ibcs2_errno.c,v 1.2 1996/05/03 17:05:16 christos Exp $ */
3
4 /*
5 * ibcs2_errno.c
6 * Copyright (c) 1995 Scott Bartram
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. All advertising materials mentioning features or use of this software
18 * must display the following acknowledgement:
19 * This product includes software developed by Scott Bartram.
20 * 4. The name of the author may not be used to endorse or promote products
21 * derived from this software without specific prior written permission
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35 #include <compat/ibcs2/ibcs2_errno.h>
36
37 int bsd2ibcs_errno[] = {
38 0, /* 0 */
39 IBCS2_EPERM, /* 1 */
40 IBCS2_ENOENT, /* 2 */
41 IBCS2_ESRCH, /* 3 */
42 IBCS2_EINTR, /* 4 */
43 IBCS2_EIO, /* 5 */
44 IBCS2_ENXIO, /* 6 */
45 IBCS2_E2BIG, /* 7 */
46 IBCS2_ENOEXEC, /* 8 */
47 IBCS2_EBADF, /* 9 */
48 IBCS2_ECHILD, /* 10 */
49 IBCS2_EDEADLK, /* 11 */
50 IBCS2_ENOMEM, /* 12 */
51 IBCS2_EACCES, /* 13 */
52 IBCS2_EFAULT, /* 14 */
53 IBCS2_ENOTBLK, /* 15 */
54 IBCS2_EBUSY, /* 16 */
55 IBCS2_EEXIST, /* 17 */
56 IBCS2_EXDEV, /* 18 */
57 IBCS2_ENODEV, /* 19 */
58 IBCS2_ENOTDIR, /* 20 */
59 IBCS2_EISDIR, /* 21 */
60 IBCS2_EINVAL, /* 22 */
61 IBCS2_ENFILE, /* 23 */
62 IBCS2_EMFILE, /* 24 */
63 IBCS2_ENOTTY, /* 25 */
64 IBCS2_ETXTBSY, /* 26 */
65 IBCS2_EFBIG, /* 27 */
66 IBCS2_ENOSPC, /* 28 */
67 IBCS2_ESPIPE, /* 29 */
68 IBCS2_EROFS, /* 30 */
69 IBCS2_EMLINK, /* 31 */
70 IBCS2_EPIPE, /* 32 */
71 IBCS2_EDOM, /* 33 */
72 IBCS2_ERANGE, /* 34 */
73 IBCS2_EAGAIN, /* 35 */
74 IBCS2_EINPROGRESS, /* 36 */
75 IBCS2_EALREADY, /* 37 */
76 IBCS2_ENOTSOCK, /* 38 */
77 IBCS2_EDESTADDRREQ, /* 39 */
78 IBCS2_EMSGSIZE, /* 40 */
79 IBCS2_EPROTOTYPE, /* 41 */
80 IBCS2_ENOPROTOOPT, /* 42 */
81 IBCS2_EPROTONOSUPPORT, /* 43 */
82 IBCS2_ESOCKTNOSUPPORT, /* 44 */
83 IBCS2_EOPNOTSUPP, /* 45 */
84 IBCS2_EPFNOSUPPORT, /* 46 */
85 IBCS2_EAFNOSUPPORT, /* 47 */
86 IBCS2_EADDRINUSE, /* 48 */
87 IBCS2_EADDRNOTAVAIL, /* 49 */
88 IBCS2_ENETDOWN, /* 50 */
89 IBCS2_ENETUNREACH, /* 51 */
90 IBCS2_ENETRESET, /* 52 */
91 IBCS2_ECONNABORTED, /* 53 */
92 IBCS2_ECONNRESET, /* 54 */
93 IBCS2_ENOBUFS, /* 55 */
94 IBCS2_EISCONN, /* 56 */
95 IBCS2_ENOTCONN, /* 57 */
96 IBCS2_ESHUTDOWN, /* 58 */
97 IBCS2_ETOOMANYREFS, /* 59 */
98 IBCS2_ETIMEDOUT, /* 60 */
99 IBCS2_ECONNREFUSED, /* 61 */
100 IBCS2_ELOOP, /* 62 */
101 IBCS2_ENAMETOOLONG, /* 63 */
102 IBCS2_EHOSTDOWN, /* 64 */
103 IBCS2_EHOSTUNREACH, /* 65 */
104 IBCS2_ENOTEMPTY, /* 66 */
105 0, /* 67 */
106 0, /* 68 */
107 0, /* 69 */
108 IBCS2_ESTALE, /* 70 */
109 IBCS2_EREMOTE, /* 71 */
110 0, /* 72 */
111 0, /* 73 */
112 0, /* 74 */
113 0, /* 75 */
114 0, /* 76 */
115 IBCS2_ENOLCK, /* 77 */
116 IBCS2_ENOSYS, /* 78 */
117 0, /* 79 */
118 0, /* 80 */
119 0, /* 81 */
120 };