/*
- * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2012 Apple, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
#include <sys/cdefs.h>
#if !defined(KERNEL) && !defined(KERNEL_PRIVATE)
+
+#if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1
+#include <sys/_types/_errno_t.h>
+#endif
+
__BEGIN_DECLS
extern int * __error(void);
#define errno (*__error())
#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
#define ERECYCLE (-5) /* restart lookup under heavy vnode pressure/recycling */
#define EREDRIVEOPEN (-6)
#define EKEEPLOOKING (-7)
+#define ERESERVEDNAME (-8) /* path is known but not usable */
/* 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_ */