xref: /freebsd/cddl/lib/libdtrace/errno.d (revision 193d9e768ba63fcfb187cfd17f461f7d41345048)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  *
22  * Portions Copyright 2006-2008 John Birrell jb@freebsd.org
23  *
24  * $FreeBSD$
25  */
26 /*
27  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
28  * Use is subject to license terms.
29  */
30 
31 inline int EPERM = 1;
32 #pragma D binding "1.0" EPERM
33 inline int ENOENT = 2;
34 #pragma D binding "1.0" ENOENT
35 inline int ESRCH = 3;
36 #pragma D binding "1.0" ESRCH
37 inline int EINTR = 4;
38 #pragma D binding "1.0" EINTR
39 inline int EIO = 5;
40 #pragma D binding "1.0" EIO
41 inline int ENXIO = 6;
42 #pragma D binding "1.0" ENXIO
43 inline int E2BIG = 7;
44 #pragma D binding "1.0" E2BIG
45 inline int ENOEXEC = 8;
46 #pragma D binding "1.0" ENOEXEC
47 inline int EBADF = 9;
48 #pragma D binding "1.0" EBADF
49 inline int ECHILD = 10;
50 #pragma D binding "1.0" ECHILD
51 inline int EDEADLK = 11;
52 #pragma D binding "1.0" EDEADLK
53 inline int ENOMEM = 12;
54 #pragma D binding "1.0" ENOMEM
55 inline int EACCES = 13;
56 #pragma D binding "1.0" EACCES
57 inline int EFAULT = 14;
58 #pragma D binding "1.0" EFAULT
59 inline int ENOTBLK = 15;
60 #pragma D binding "1.0" ENOTBLK
61 inline int EBUSY = 16;
62 #pragma D binding "1.0" EBUSY
63 inline int EEXIST = 17;
64 #pragma D binding "1.0" EEXIST
65 inline int EXDEV = 18;
66 #pragma D binding "1.0" EXDEV
67 inline int ENODEV = 19;
68 #pragma D binding "1.0" ENODEV
69 inline int ENOTDIR = 20;
70 #pragma D binding "1.0" ENOTDIR
71 inline int EISDIR = 21;
72 #pragma D binding "1.0" EISDIR
73 inline int EINVAL = 22;
74 #pragma D binding "1.0" EINVAL
75 inline int ENFILE = 23;
76 #pragma D binding "1.0" ENFILE
77 inline int EMFILE = 24;
78 #pragma D binding "1.0" EMFILE
79 inline int ENOTTY = 25;
80 #pragma D binding "1.0" ENOTTY
81 inline int ETXTBSY = 26;
82 #pragma D binding "1.0" ETXTBSY
83 inline int EFBIG = 27;
84 #pragma D binding "1.0" EFBIG
85 inline int ENOSPC = 28;
86 #pragma D binding "1.0" ENOSPC
87 inline int ESPIPE = 29;
88 #pragma D binding "1.0" ESPIPE
89 inline int EROFS = 30;
90 #pragma D binding "1.0" EROFS
91 inline int EMLINK = 31;
92 #pragma D binding "1.0" EMLINK
93 inline int EPIPE = 32;
94 #pragma D binding "1.0" EPIPE
95 inline int EDOM = 33;
96 #pragma D binding "1.0" EDOM
97 inline int ERANGE = 34;
98 #pragma D binding "1.0" ERANGE
99 inline int EAGAIN = 35;
100 #pragma D binding "1.0" EAGAIN
101 inline int EWOULDBLOCK = EAGAIN;
102 #pragma D binding "1.0" EWOULDBLOCK
103 inline int EINPROGRESS = 36;
104 #pragma D binding "1.0" EINPROGRESS
105 inline int EALREADY = 37;
106 #pragma D binding "1.0" EALREADY
107 inline int ENOTSOCK = 38;
108 #pragma D binding "1.0" ENOTSOCK
109 inline int EDESTADDRREQ = 39;
110 #pragma D binding "1.0" EDESTADDRREQ
111 inline int EMSGSIZE = 40;
112 #pragma D binding "1.0" EMSGSIZE
113 inline int EPROTOTYPE = 41;
114 #pragma D binding "1.0" EPROTOTYPE
115 inline int ENOPROTOOPT = 42;
116 #pragma D binding "1.0" ENOPROTOOPT
117 inline int EPROTONOSUPPORT = 43;
118 #pragma D binding "1.0" EPROTONOSUPPORT
119 inline int ESOCKTNOSUPPORT = 44;
120 #pragma D binding "1.0" ESOCKTNOSUPPORT
121 inline int EOPNOTSUPP = 45;
122 #pragma D binding "1.0" EOPNOTSUPP
123 inline int ENOTSUP = EOPNOTSUPP;
124 #pragma D binding "1.0" ENOTSUP
125 inline int EPFNOSUPPORT = 46;
126 #pragma D binding "1.0" EPFNOSUPPORT
127 inline int EAFNOSUPPORT = 47;
128 #pragma D binding "1.0" EAFNOSUPPORT
129 inline int EADDRINUSE = 48;
130 #pragma D binding "1.0" EADDRINUSE
131 inline int EADDRNOTAVAIL = 49;
132 #pragma D binding "1.0" EADDRNOTAVAIL
133 inline int ENETDOWN = 50;
134 #pragma D binding "1.0" ENETDOWN
135 inline int ENETUNREACH = 51;
136 #pragma D binding "1.0" ENETUNREACH
137 inline int ENETRESET = 52;
138 #pragma D binding "1.0" ENETRESET
139 inline int ECONNABORTED = 53;
140 #pragma D binding "1.0" ECONNABORTED
141 inline int ECONNRESET = 54;
142 #pragma D binding "1.0" ECONNRESET
143 inline int ENOBUFS = 55;
144 #pragma D binding "1.0" ENOBUFS
145 inline int EISCONN = 56;
146 #pragma D binding "1.0" EISCONN
147 inline int ENOTCONN = 57;
148 #pragma D binding "1.0" ENOTCONN
149 inline int ESHUTDOWN = 58;
150 #pragma D binding "1.0" ESHUTDOWN
151 inline int ETOOMANYREFS = 59;
152 #pragma D binding "1.0" ETOOMANYREFS
153 inline int ETIMEDOUT = 60;
154 #pragma D binding "1.0" ETIMEDOUT
155 inline int ECONNREFUSED = 61;
156 #pragma D binding "1.0" ECONNREFUSED
157 inline int ELOOP = 62;
158 #pragma D binding "1.0" ELOOP
159 inline int ENAMETOOLONG = 63;
160 #pragma D binding "1.0" ENAMETOOLONG
161 inline int EHOSTDOWN = 64;
162 #pragma D binding "1.0" EHOSTDOWN
163 inline int EHOSTUNREACH = 65;
164 #pragma D binding "1.0" EHOSTUNREACH
165 inline int ENOTEMPTY = 66;
166 #pragma D binding "1.0" ENOTEMPTY
167 inline int EPROCLIM = 67;
168 #pragma D binding "1.0" EPROCLIM
169 inline int EUSERS = 68;
170 #pragma D binding "1.0" EUSERS
171 inline int EDQUOT = 69;
172 #pragma D binding "1.0" EDQUOT
173 inline int ESTALE = 70;
174 #pragma D binding "1.0" ESTALE
175 inline int EREMOTE = 71;
176 #pragma D binding "1.0" EREMOTE
177 inline int EBADRPC = 72;
178 #pragma D binding "1.0" EBADRPC
179 inline int ERPCMISMATCH = 73;
180 #pragma D binding "1.0" ERPCMISMATCH
181 inline int EPROGUNAVAIL = 74;
182 #pragma D binding "1.0" EPROGUNAVAIL
183 inline int EPROGMISMATCH = 75;
184 #pragma D binding "1.0" EPROGMISMATCH
185 inline int EPROCUNAVAIL = 76;
186 #pragma D binding "1.0" EPROCUNAVAIL
187 inline int ENOLCK = 77;
188 #pragma D binding "1.0" ENOLCK
189 inline int ENOSYS = 78;
190 #pragma D binding "1.0" ENOSYS
191 inline int EFTYPE = 79;
192 #pragma D binding "1.0" EFTYPE
193 inline int EAUTH = 80;
194 #pragma D binding "1.0" EAUTH
195 inline int ENEEDAUTH = 81;
196 #pragma D binding "1.0" ENEEDAUTH
197 inline int EIDRM = 82;
198 #pragma D binding "1.0" EIDRM
199 inline int ENOMSG = 83;
200 #pragma D binding "1.0" ENOMSG
201 inline int EOVERFLOW = 84;
202 #pragma D binding "1.0" EOVERFLOW
203 inline int ECANCELED = 85;
204 #pragma D binding "1.0" ECANCELED
205 inline int EILSEQ = 86;
206 #pragma D binding "1.0" EILSEQ
207 inline int ENOATTR = 87;
208 #pragma D binding "1.0" ENOATTR
209 inline int EDOOFUS = 88;
210 #pragma D binding "1.0" EDOOFUS
211 inline int EBADMSG = 89;
212 #pragma D binding "1.0" EBADMSG
213 inline int EMULTIHOP = 90;
214 #pragma D binding "1.0" EMULTIHOP
215 inline int ENOLINK = 91;
216 #pragma D binding "1.0" ENOLINK
217 inline int EPROTO = 92;
218 #pragma D binding "1.0" EPROTO
219 inline int ELAST = 92;
220 #pragma D binding "1.0" ELAST
221 inline int ERESTART = -1;
222 #pragma D binding "1.0" ERESTART
223 inline int EJUSTRETURN = -2;
224 #pragma D binding "1.0" EJUSTRETURN
225 inline int ENOIOCTL = -3;
226 #pragma D binding "1.0" ENOIOCTL
227 inline int EDIRIOCTL = -4;
228 #pragma D binding "1.0" EDIRIOCTL
229