X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..743345f9a4b36f7e2f9ba37691e70c50baecb56e:/bsd/sys/errno.h?ds=sidebyside diff --git a/bsd/sys/errno.h b/bsd/sys/errno.h index 231c68ead..246deb772 100644 --- a/bsd/sys/errno.h +++ b/bsd/sys/errno.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2012 Apple, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -72,6 +72,11 @@ #include #if !defined(KERNEL) && !defined(KERNEL_PRIVATE) + +#if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 +#include +#endif + __BEGIN_DECLS extern int * __error(void); #define errno (*__error()) @@ -256,7 +261,8 @@ __END_DECLS #endif #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL -#define ELAST 105 /* Must be equal largest errno */ +#define EQFULL 106 /* Interface output queue is full */ +#define ELAST 106 /* Must be equal largest errno */ #endif #ifdef KERNEL @@ -264,16 +270,20 @@ __END_DECLS #define ERESTART (-1) /* restart syscall */ #define EJUSTRETURN (-2) /* don't modify regs, just return */ -#ifdef BSD_KERNEL_PRIVATE +#ifdef KERNEL_PRIVATE #define ERECYCLE (-5) /* restart lookup under heavy vnode pressure/recycling */ +#endif +#ifdef BSD_KERNEL_PRIVATE #define EREDRIVEOPEN (-6) #define EKEEPLOOKING (-7) /* used for cvwait error returns to Libc */ #define ECVCERORR 256 #define ECVPERORR 512 #else /* BSD_KERNEL_PRIVATE */ -/* -5 and -6 are reserved for kernel internal use */ +/* -5, -6 and -7 and -106 are reserved for kernel internal use */ #endif /* BSD_KERNEL_PRIVATE */ - -#endif +#ifdef PRIVATE +#define EQSUSPENDED (-EQFULL) /* Output queue is suspended */ +#endif /* PRIVATE */ +#endif /* KERNEL */ #endif /* _SYS_ERRNO_H_ */