xref: /xnu-10063.141.1/bsd/sys/errno.h (revision d8b80295118ef25ac3a784134bcf95cd8e88109f)
1*d8b80295SApple OSS Distributions /*
2*d8b80295SApple OSS Distributions  * Copyright (c) 2000-2012 Apple, Inc. All rights reserved.
3*d8b80295SApple OSS Distributions  *
4*d8b80295SApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5*d8b80295SApple OSS Distributions  *
6*d8b80295SApple OSS Distributions  * This file contains Original Code and/or Modifications of Original Code
7*d8b80295SApple OSS Distributions  * as defined in and that are subject to the Apple Public Source License
8*d8b80295SApple OSS Distributions  * Version 2.0 (the 'License'). You may not use this file except in
9*d8b80295SApple OSS Distributions  * compliance with the License. The rights granted to you under the License
10*d8b80295SApple OSS Distributions  * may not be used to create, or enable the creation or redistribution of,
11*d8b80295SApple OSS Distributions  * unlawful or unlicensed copies of an Apple operating system, or to
12*d8b80295SApple OSS Distributions  * circumvent, violate, or enable the circumvention or violation of, any
13*d8b80295SApple OSS Distributions  * terms of an Apple operating system software license agreement.
14*d8b80295SApple OSS Distributions  *
15*d8b80295SApple OSS Distributions  * Please obtain a copy of the License at
16*d8b80295SApple OSS Distributions  * http://www.opensource.apple.com/apsl/ and read it before using this file.
17*d8b80295SApple OSS Distributions  *
18*d8b80295SApple OSS Distributions  * The Original Code and all software distributed under the License are
19*d8b80295SApple OSS Distributions  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20*d8b80295SApple OSS Distributions  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21*d8b80295SApple OSS Distributions  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22*d8b80295SApple OSS Distributions  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23*d8b80295SApple OSS Distributions  * Please see the License for the specific language governing rights and
24*d8b80295SApple OSS Distributions  * limitations under the License.
25*d8b80295SApple OSS Distributions  *
26*d8b80295SApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27*d8b80295SApple OSS Distributions  */
28*d8b80295SApple OSS Distributions /* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */
29*d8b80295SApple OSS Distributions /*
30*d8b80295SApple OSS Distributions  * Copyright (c) 1982, 1986, 1989, 1993
31*d8b80295SApple OSS Distributions  *	The Regents of the University of California.  All rights reserved.
32*d8b80295SApple OSS Distributions  * (c) UNIX System Laboratories, Inc.
33*d8b80295SApple OSS Distributions  * All or some portions of this file are derived from material licensed
34*d8b80295SApple OSS Distributions  * to the University of California by American Telephone and Telegraph
35*d8b80295SApple OSS Distributions  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
36*d8b80295SApple OSS Distributions  * the permission of UNIX System Laboratories, Inc.
37*d8b80295SApple OSS Distributions  *
38*d8b80295SApple OSS Distributions  * Redistribution and use in source and binary forms, with or without
39*d8b80295SApple OSS Distributions  * modification, are permitted provided that the following conditions
40*d8b80295SApple OSS Distributions  * are met:
41*d8b80295SApple OSS Distributions  * 1. Redistributions of source code must retain the above copyright
42*d8b80295SApple OSS Distributions  *    notice, this list of conditions and the following disclaimer.
43*d8b80295SApple OSS Distributions  * 2. Redistributions in binary form must reproduce the above copyright
44*d8b80295SApple OSS Distributions  *    notice, this list of conditions and the following disclaimer in the
45*d8b80295SApple OSS Distributions  *    documentation and/or other materials provided with the distribution.
46*d8b80295SApple OSS Distributions  * 3. All advertising materials mentioning features or use of this software
47*d8b80295SApple OSS Distributions  *    must display the following acknowledgement:
48*d8b80295SApple OSS Distributions  *	This product includes software developed by the University of
49*d8b80295SApple OSS Distributions  *	California, Berkeley and its contributors.
50*d8b80295SApple OSS Distributions  * 4. Neither the name of the University nor the names of its contributors
51*d8b80295SApple OSS Distributions  *    may be used to endorse or promote products derived from this software
52*d8b80295SApple OSS Distributions  *    without specific prior written permission.
53*d8b80295SApple OSS Distributions  *
54*d8b80295SApple OSS Distributions  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
55*d8b80295SApple OSS Distributions  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
56*d8b80295SApple OSS Distributions  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
57*d8b80295SApple OSS Distributions  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
58*d8b80295SApple OSS Distributions  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
59*d8b80295SApple OSS Distributions  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
60*d8b80295SApple OSS Distributions  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
61*d8b80295SApple OSS Distributions  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
62*d8b80295SApple OSS Distributions  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
63*d8b80295SApple OSS Distributions  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
64*d8b80295SApple OSS Distributions  * SUCH DAMAGE.
65*d8b80295SApple OSS Distributions  *
66*d8b80295SApple OSS Distributions  *	@(#)errno.h	8.5 (Berkeley) 1/21/94
67*d8b80295SApple OSS Distributions  */
68*d8b80295SApple OSS Distributions 
69*d8b80295SApple OSS Distributions #ifndef _SYS_ERRNO_H_
70*d8b80295SApple OSS Distributions #define _SYS_ERRNO_H_
71*d8b80295SApple OSS Distributions 
72*d8b80295SApple OSS Distributions #include <sys/cdefs.h>
73*d8b80295SApple OSS Distributions 
74*d8b80295SApple OSS Distributions #if !defined(KERNEL) && !defined(KERNEL_PRIVATE)
75*d8b80295SApple OSS Distributions 
76*d8b80295SApple OSS Distributions #if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1
77*d8b80295SApple OSS Distributions #include <sys/_types/_errno_t.h>
78*d8b80295SApple OSS Distributions #endif
79*d8b80295SApple OSS Distributions 
80*d8b80295SApple OSS Distributions __BEGIN_DECLS
81*d8b80295SApple OSS Distributions extern int * __error(void);
82*d8b80295SApple OSS Distributions #define errno (*__error())
83*d8b80295SApple OSS Distributions __END_DECLS
84*d8b80295SApple OSS Distributions #endif
85*d8b80295SApple OSS Distributions 
86*d8b80295SApple OSS Distributions /*
87*d8b80295SApple OSS Distributions  * Error codes
88*d8b80295SApple OSS Distributions  */
89*d8b80295SApple OSS Distributions 
90*d8b80295SApple OSS Distributions #define EPERM           1               /* Operation not permitted */
91*d8b80295SApple OSS Distributions #define ENOENT          2               /* No such file or directory */
92*d8b80295SApple OSS Distributions #define ESRCH           3               /* No such process */
93*d8b80295SApple OSS Distributions #define EINTR           4               /* Interrupted system call */
94*d8b80295SApple OSS Distributions #define EIO             5               /* Input/output error */
95*d8b80295SApple OSS Distributions #define ENXIO           6               /* Device not configured */
96*d8b80295SApple OSS Distributions #define E2BIG           7               /* Argument list too long */
97*d8b80295SApple OSS Distributions #define ENOEXEC         8               /* Exec format error */
98*d8b80295SApple OSS Distributions #define EBADF           9               /* Bad file descriptor */
99*d8b80295SApple OSS Distributions #define ECHILD          10              /* No child processes */
100*d8b80295SApple OSS Distributions #define EDEADLK         11              /* Resource deadlock avoided */
101*d8b80295SApple OSS Distributions                                         /* 11 was EAGAIN */
102*d8b80295SApple OSS Distributions #define ENOMEM          12              /* Cannot allocate memory */
103*d8b80295SApple OSS Distributions #define EACCES          13              /* Permission denied */
104*d8b80295SApple OSS Distributions #define EFAULT          14              /* Bad address */
105*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
106*d8b80295SApple OSS Distributions #define ENOTBLK         15              /* Block device required */
107*d8b80295SApple OSS Distributions #endif
108*d8b80295SApple OSS Distributions #define EBUSY           16              /* Device / Resource busy */
109*d8b80295SApple OSS Distributions #define EEXIST          17              /* File exists */
110*d8b80295SApple OSS Distributions #define EXDEV           18              /* Cross-device link */
111*d8b80295SApple OSS Distributions #define ENODEV          19              /* Operation not supported by device */
112*d8b80295SApple OSS Distributions #define ENOTDIR         20              /* Not a directory */
113*d8b80295SApple OSS Distributions #define EISDIR          21              /* Is a directory */
114*d8b80295SApple OSS Distributions #define EINVAL          22              /* Invalid argument */
115*d8b80295SApple OSS Distributions #define ENFILE          23              /* Too many open files in system */
116*d8b80295SApple OSS Distributions #define EMFILE          24              /* Too many open files */
117*d8b80295SApple OSS Distributions #define ENOTTY          25              /* Inappropriate ioctl for device */
118*d8b80295SApple OSS Distributions #define ETXTBSY         26              /* Text file busy */
119*d8b80295SApple OSS Distributions #define EFBIG           27              /* File too large */
120*d8b80295SApple OSS Distributions #define ENOSPC          28              /* No space left on device */
121*d8b80295SApple OSS Distributions #define ESPIPE          29              /* Illegal seek */
122*d8b80295SApple OSS Distributions #define EROFS           30              /* Read-only file system */
123*d8b80295SApple OSS Distributions #define EMLINK          31              /* Too many links */
124*d8b80295SApple OSS Distributions #define EPIPE           32              /* Broken pipe */
125*d8b80295SApple OSS Distributions 
126*d8b80295SApple OSS Distributions /* math software */
127*d8b80295SApple OSS Distributions #define EDOM            33              /* Numerical argument out of domain */
128*d8b80295SApple OSS Distributions #define ERANGE          34              /* Result too large */
129*d8b80295SApple OSS Distributions 
130*d8b80295SApple OSS Distributions /* non-blocking and interrupt i/o */
131*d8b80295SApple OSS Distributions #define EAGAIN          35              /* Resource temporarily unavailable */
132*d8b80295SApple OSS Distributions #define EWOULDBLOCK     EAGAIN          /* Operation would block */
133*d8b80295SApple OSS Distributions #define EINPROGRESS     36              /* Operation now in progress */
134*d8b80295SApple OSS Distributions #define EALREADY        37              /* Operation already in progress */
135*d8b80295SApple OSS Distributions 
136*d8b80295SApple OSS Distributions /* ipc/network software -- argument errors */
137*d8b80295SApple OSS Distributions #define ENOTSOCK        38              /* Socket operation on non-socket */
138*d8b80295SApple OSS Distributions #define EDESTADDRREQ    39              /* Destination address required */
139*d8b80295SApple OSS Distributions #define EMSGSIZE        40              /* Message too long */
140*d8b80295SApple OSS Distributions #define EPROTOTYPE      41              /* Protocol wrong type for socket */
141*d8b80295SApple OSS Distributions #define ENOPROTOOPT     42              /* Protocol not available */
142*d8b80295SApple OSS Distributions #define EPROTONOSUPPORT 43              /* Protocol not supported */
143*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
144*d8b80295SApple OSS Distributions #define ESOCKTNOSUPPORT 44              /* Socket type not supported */
145*d8b80295SApple OSS Distributions #endif
146*d8b80295SApple OSS Distributions #define ENOTSUP         45              /* Operation not supported */
147*d8b80295SApple OSS Distributions #if !__DARWIN_UNIX03 && !defined(KERNEL)
148*d8b80295SApple OSS Distributions /*
149*d8b80295SApple OSS Distributions  * This is the same for binary and source copmpatability, unless compiling
150*d8b80295SApple OSS Distributions  * the kernel itself, or compiling __DARWIN_UNIX03; if compiling for the
151*d8b80295SApple OSS Distributions  * kernel, the correct value will be returned.  If compiling non-POSIX
152*d8b80295SApple OSS Distributions  * source, the kernel return value will be converted by a stub in libc, and
153*d8b80295SApple OSS Distributions  * if compiling source with __DARWIN_UNIX03, the conversion in libc is not
154*d8b80295SApple OSS Distributions  * done, and the caller gets the expected (discrete) value.
155*d8b80295SApple OSS Distributions  */
156*d8b80295SApple OSS Distributions #define EOPNOTSUPP       ENOTSUP        /* Operation not supported on socket */
157*d8b80295SApple OSS Distributions #endif /* !__DARWIN_UNIX03 && !KERNEL */
158*d8b80295SApple OSS Distributions 
159*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
160*d8b80295SApple OSS Distributions #define EPFNOSUPPORT    46              /* Protocol family not supported */
161*d8b80295SApple OSS Distributions #endif
162*d8b80295SApple OSS Distributions #define EAFNOSUPPORT    47              /* Address family not supported by protocol family */
163*d8b80295SApple OSS Distributions #define EADDRINUSE      48              /* Address already in use */
164*d8b80295SApple OSS Distributions #define EADDRNOTAVAIL   49              /* Can't assign requested address */
165*d8b80295SApple OSS Distributions 
166*d8b80295SApple OSS Distributions /* ipc/network software -- operational errors */
167*d8b80295SApple OSS Distributions #define ENETDOWN        50              /* Network is down */
168*d8b80295SApple OSS Distributions #define ENETUNREACH     51              /* Network is unreachable */
169*d8b80295SApple OSS Distributions #define ENETRESET       52              /* Network dropped connection on reset */
170*d8b80295SApple OSS Distributions #define ECONNABORTED    53              /* Software caused connection abort */
171*d8b80295SApple OSS Distributions #define ECONNRESET      54              /* Connection reset by peer */
172*d8b80295SApple OSS Distributions #define ENOBUFS         55              /* No buffer space available */
173*d8b80295SApple OSS Distributions #define EISCONN         56              /* Socket is already connected */
174*d8b80295SApple OSS Distributions #define ENOTCONN        57              /* Socket is not connected */
175*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
176*d8b80295SApple OSS Distributions #define ESHUTDOWN       58              /* Can't send after socket shutdown */
177*d8b80295SApple OSS Distributions #define ETOOMANYREFS    59              /* Too many references: can't splice */
178*d8b80295SApple OSS Distributions #endif
179*d8b80295SApple OSS Distributions #define ETIMEDOUT       60              /* Operation timed out */
180*d8b80295SApple OSS Distributions #define ECONNREFUSED    61              /* Connection refused */
181*d8b80295SApple OSS Distributions 
182*d8b80295SApple OSS Distributions #define ELOOP           62              /* Too many levels of symbolic links */
183*d8b80295SApple OSS Distributions #define ENAMETOOLONG    63              /* File name too long */
184*d8b80295SApple OSS Distributions 
185*d8b80295SApple OSS Distributions /* should be rearranged */
186*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
187*d8b80295SApple OSS Distributions #define EHOSTDOWN       64              /* Host is down */
188*d8b80295SApple OSS Distributions #endif
189*d8b80295SApple OSS Distributions #define EHOSTUNREACH    65              /* No route to host */
190*d8b80295SApple OSS Distributions #define ENOTEMPTY       66              /* Directory not empty */
191*d8b80295SApple OSS Distributions 
192*d8b80295SApple OSS Distributions /* quotas & mush */
193*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
194*d8b80295SApple OSS Distributions #define EPROCLIM        67              /* Too many processes */
195*d8b80295SApple OSS Distributions #define EUSERS          68              /* Too many users */
196*d8b80295SApple OSS Distributions #endif
197*d8b80295SApple OSS Distributions #define EDQUOT          69              /* Disc quota exceeded */
198*d8b80295SApple OSS Distributions 
199*d8b80295SApple OSS Distributions /* Network File System */
200*d8b80295SApple OSS Distributions #define ESTALE          70              /* Stale NFS file handle */
201*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
202*d8b80295SApple OSS Distributions #define EREMOTE         71              /* Too many levels of remote in path */
203*d8b80295SApple OSS Distributions #define EBADRPC         72              /* RPC struct is bad */
204*d8b80295SApple OSS Distributions #define ERPCMISMATCH    73              /* RPC version wrong */
205*d8b80295SApple OSS Distributions #define EPROGUNAVAIL    74              /* RPC prog. not avail */
206*d8b80295SApple OSS Distributions #define EPROGMISMATCH   75              /* Program version wrong */
207*d8b80295SApple OSS Distributions #define EPROCUNAVAIL    76              /* Bad procedure for program */
208*d8b80295SApple OSS Distributions #endif
209*d8b80295SApple OSS Distributions 
210*d8b80295SApple OSS Distributions #define ENOLCK          77              /* No locks available */
211*d8b80295SApple OSS Distributions #define ENOSYS          78              /* Function not implemented */
212*d8b80295SApple OSS Distributions 
213*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
214*d8b80295SApple OSS Distributions #define EFTYPE          79              /* Inappropriate file type or format */
215*d8b80295SApple OSS Distributions #define EAUTH           80              /* Authentication error */
216*d8b80295SApple OSS Distributions #define ENEEDAUTH       81              /* Need authenticator */
217*d8b80295SApple OSS Distributions 
218*d8b80295SApple OSS Distributions /* Intelligent device errors */
219*d8b80295SApple OSS Distributions #define EPWROFF         82      /* Device power is off */
220*d8b80295SApple OSS Distributions #define EDEVERR         83      /* Device error, e.g. paper out */
221*d8b80295SApple OSS Distributions #endif
222*d8b80295SApple OSS Distributions 
223*d8b80295SApple OSS Distributions #define EOVERFLOW       84              /* Value too large to be stored in data type */
224*d8b80295SApple OSS Distributions 
225*d8b80295SApple OSS Distributions /* Program loading errors */
226*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
227*d8b80295SApple OSS Distributions #define EBADEXEC        85      /* Bad executable */
228*d8b80295SApple OSS Distributions #define EBADARCH        86      /* Bad CPU type in executable */
229*d8b80295SApple OSS Distributions #define ESHLIBVERS      87      /* Shared library version mismatch */
230*d8b80295SApple OSS Distributions #define EBADMACHO       88      /* Malformed Macho file */
231*d8b80295SApple OSS Distributions #endif
232*d8b80295SApple OSS Distributions 
233*d8b80295SApple OSS Distributions #define ECANCELED       89              /* Operation canceled */
234*d8b80295SApple OSS Distributions 
235*d8b80295SApple OSS Distributions #define EIDRM           90              /* Identifier removed */
236*d8b80295SApple OSS Distributions #define ENOMSG          91              /* No message of desired type */
237*d8b80295SApple OSS Distributions #define EILSEQ          92              /* Illegal byte sequence */
238*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
239*d8b80295SApple OSS Distributions #define ENOATTR         93              /* Attribute not found */
240*d8b80295SApple OSS Distributions #endif
241*d8b80295SApple OSS Distributions 
242*d8b80295SApple OSS Distributions #define EBADMSG         94              /* Bad message */
243*d8b80295SApple OSS Distributions #define EMULTIHOP       95              /* Reserved */
244*d8b80295SApple OSS Distributions #define ENODATA         96              /* No message available on STREAM */
245*d8b80295SApple OSS Distributions #define ENOLINK         97              /* Reserved */
246*d8b80295SApple OSS Distributions #define ENOSR           98              /* No STREAM resources */
247*d8b80295SApple OSS Distributions #define ENOSTR          99              /* Not a STREAM */
248*d8b80295SApple OSS Distributions #define EPROTO          100             /* Protocol error */
249*d8b80295SApple OSS Distributions #define ETIME           101             /* STREAM ioctl timeout */
250*d8b80295SApple OSS Distributions 
251*d8b80295SApple OSS Distributions #if __DARWIN_UNIX03 || defined(KERNEL)
252*d8b80295SApple OSS Distributions /* This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL */
253*d8b80295SApple OSS Distributions #define EOPNOTSUPP      102             /* Operation not supported on socket */
254*d8b80295SApple OSS Distributions #endif /* __DARWIN_UNIX03 || KERNEL */
255*d8b80295SApple OSS Distributions 
256*d8b80295SApple OSS Distributions #define ENOPOLICY       103             /* No such policy registered */
257*d8b80295SApple OSS Distributions 
258*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= 200809L
259*d8b80295SApple OSS Distributions #define ENOTRECOVERABLE 104             /* State not recoverable */
260*d8b80295SApple OSS Distributions #define EOWNERDEAD      105             /* Previous owner died */
261*d8b80295SApple OSS Distributions #endif
262*d8b80295SApple OSS Distributions 
263*d8b80295SApple OSS Distributions #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
264*d8b80295SApple OSS Distributions #define EQFULL          106             /* Interface output queue is full */
265*d8b80295SApple OSS Distributions #define ELAST           106             /* Must be equal largest errno */
266*d8b80295SApple OSS Distributions #endif
267*d8b80295SApple OSS Distributions 
268*d8b80295SApple OSS Distributions #ifdef KERNEL
269*d8b80295SApple OSS Distributions /* pseudo-errors returned inside kernel to modify return to process */
270*d8b80295SApple OSS Distributions #define ERESTART        (-1)            /* restart syscall */
271*d8b80295SApple OSS Distributions #define EJUSTRETURN     (-2)            /* don't modify regs, just return */
272*d8b80295SApple OSS Distributions 
273*d8b80295SApple OSS Distributions #ifdef KERNEL_PRIVATE
274*d8b80295SApple OSS Distributions #define ERECYCLE        (-5)            /* restart lookup under heavy vnode pressure/recycling */
275*d8b80295SApple OSS Distributions #define EREDRIVEOPEN    (-6)            /* redrive open */
276*d8b80295SApple OSS Distributions #endif
277*d8b80295SApple OSS Distributions #ifdef BSD_KERNEL_PRIVATE
278*d8b80295SApple OSS Distributions #define EKEEPLOOKING    (-7)
279*d8b80295SApple OSS Distributions #define EDATALESS       (-8)
280*d8b80295SApple OSS Distributions /* used for cvwait error returns to Libc */
281*d8b80295SApple OSS Distributions #define ECVCERORR       256
282*d8b80295SApple OSS Distributions #define ECVPERORR       512
283*d8b80295SApple OSS Distributions #else /* BSD_KERNEL_PRIVATE */
284*d8b80295SApple OSS Distributions /* -5, -6 and -7 and -106 are reserved for kernel internal use */
285*d8b80295SApple OSS Distributions #endif /* BSD_KERNEL_PRIVATE */
286*d8b80295SApple OSS Distributions #ifdef PRIVATE
287*d8b80295SApple OSS Distributions #define EQSUSPENDED     (-EQFULL)       /* Output queue is suspended */
288*d8b80295SApple OSS Distributions #endif /* PRIVATE */
289*d8b80295SApple OSS Distributions #endif /* KERNEL */
290*d8b80295SApple OSS Distributions #endif /* _SYS_ERRNO_H_ */
291