1 /*-
2 * ibcs2_errno.h
3 * SPDX-License-Identifier: BSD-4-Clause
4 *
5 * Copyright (c) 1995 Scott Bartram
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by Scott Bartram.
19 * 4. The name of the author may not be used to endorse or promote products
20 * derived from this software without specific prior written permission
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD: releng/12.0/sys/i386/ibcs2/ibcs2_errno.h 326260 2017-11-27 15:08:52Z pfg $
34 */
35
36 #ifndef _IBCS2_ERRNO_H
37 #define _IBCS2_ERRNO_H
38
39 #define _SCO_NET 1
40
41 #define IBCS2_EPERM 1
42 #define IBCS2_ENOENT 2
43 #define IBCS2_ESRCH 3
44 #define IBCS2_EINTR 4
45 #define IBCS2_EIO 5
46 #define IBCS2_ENXIO 6
47 #define IBCS2_E2BIG 7
48 #define IBCS2_ENOEXEC 8
49 #define IBCS2_EBADF 9
50 #define IBCS2_ECHILD 10
51 #define IBCS2_EAGAIN 11
52 #define IBCS2_ENOMEM 12
53 #define IBCS2_EACCES 13
54 #define IBCS2_EFAULT 14
55 #define IBCS2_ENOTBLK 15
56 #define IBCS2_EBUSY 16
57 #define IBCS2_EEXIST 17
58 #define IBCS2_EXDEV 18
59 #define IBCS2_ENODEV 19
60 #define IBCS2_ENOTDIR 20
61 #define IBCS2_EISDIR 21
62 #define IBCS2_EINVAL 22
63 #define IBCS2_ENFILE 23
64 #define IBCS2_EMFILE 24
65 #define IBCS2_ENOTTY 25
66 #define IBCS2_ETXTBSY 26
67 #define IBCS2_EFBIG 27
68 #define IBCS2_ENOSPC 28
69 #define IBCS2_ESPIPE 29
70 #define IBCS2_EROFS 30
71 #define IBCS2_EMLINK 31
72 #define IBCS2_EPIPE 32
73 #define IBCS2_EDOM 33
74 #define IBCS2_ERANGE 34
75 #define IBCS2_ENOMSG 35
76 #define IBCS2_EIDRM 36
77 #define IBCS2_ECHRNG 37
78 #define IBCS2_EL2NSYNC 38
79 #define IBCS2_EL3HLT 39
80 #define IBCS2_EL3RST 40
81 #define IBCS2_ELNRNG 41
82 #define IBCS2_EUNATCH 42
83 #define IBCS2_ENOCSI 43
84 #define IBCS2_EL2HLT 44
85 #define IBCS2_EDEADLK 45
86 #define IBCS2_ENOLCK 46
87 #define IBCS2_ENOSTR 60
88 #define IBCS2_ENODATA 61
89 #define IBCS2_ETIME 62
90 #define IBCS2_ENOSR 63
91 #define IBCS2_ENONET 64
92 #define IBCS2_ENOPKG 65
93 #define IBCS2_EREMOTE 66
94 #define IBCS2_ENOLINK 67
95 #define IBCS2_EADV 68
96 #define IBCS2_ESRMNT 69
97 #define IBCS2_ECOMM 70
98 #define IBCS2_EPROTO 71
99 #define IBCS2_EMULTIHOP 74
100 #define IBCS2_ELBIN 75
101 #define IBCS2_EDOTDOT 76
102 #define IBCS2_EBADMSG 77
103 #define IBCS2_ENAMETOOLONG 78
104 #define IBCS2_EOVERFLOW 79
105 #define IBCS2_ENOTUNIQ 80
106 #define IBCS2_EBADFD 81
107 #define IBCS2_EREMCHG 82
108 #define IBCS2_EILSEQ 88
109 #define IBCS2_ENOSYS 89
110
111 #if defined(_SCO_NET) /* not strict iBCS2 */
112 #define IBCS2_EWOULDBLOCK 90
113 #define IBCS2_EINPROGRESS 91
114 #define IBCS2_EALREADY 92
115 #define IBCS2_ENOTSOCK 93
116 #define IBCS2_EDESTADDRREQ 94
117 #define IBCS2_EMSGSIZE 95
118 #define IBCS2_EPROTOTYPE 96
119 #define IBCS2_EPROTONOSUPPORT 97
120 #define IBCS2_ESOCKTNOSUPPORT 98
121 #define IBCS2_EOPNOTSUPP 99
122 #define IBCS2_EPFNOSUPPORT 100
123 #define IBCS2_EAFNOSUPPORT 101
124 #define IBCS2_EADDRINUSE 102
125 #define IBCS2_EADDRNOTAVAIL 103
126 #define IBCS2_ENETDOWN 104
127 #define IBCS2_ENETUNREACH 105
128 #define IBCS2_ENETRESET 106
129 #define IBCS2_ECONNABORTED 107
130 #define IBCS2_ECONNRESET 108
131 #define IBCS2_ENOBUFS IBCS2_ENOSR
132 #define IBCS2_EISCONN 110
133 #define IBCS2_ENOTCONN 111
134 #define IBCS2_ESHUTDOWN 112
135 #define IBCS2_ETOOMANYREFS 113
136 #define IBCS2_ETIMEDOUT 114
137 #define IBCS2_ECONNREFUSED 115
138 #define IBCS2_EHOSTDOWN 116
139 #define IBCS2_EHOSTUNREACH 117
140 #define IBCS2_ENOPROTOOPT 118
141 #define IBCS2_ENOTEMPTY 145
142 #define IBCS2_ELOOP 150
143 #else
144 #define IBCS2_ELOOP 90
145 #define IBCS2_EWOULDBLOCK 90
146 #define IBCS2_ERESTART 91
147 #define IBCS2_ESTRPIPE 92
148 #define IBCS2_ENOTEMPTY 93
149 #define IBCS2_EUSERS 94
150 #endif
151
152 #define IBCS2_ESTALE 151
153 #define IBCS2_EIORESID 500
154
155 extern int bsd2ibcs_errno[];
156
157 #endif /* _IBCS2_ERRNO_H */
Cache object: 7b6e024fa410a3903f5e8d2e5eb44dd2
|