xnu-1504.3.12.tar.gz
[apple/xnu.git] / bsd / sys / errno.h
index ec42fa74d1301474cf03c00acd7889b813084af7..54d5d037189b69dd1b1b9cd26cb1a6e4f0b1fbbc 100644 (file)
@@ -257,7 +257,13 @@ __END_DECLS
 /* pseudo-errors returned inside kernel to modify return to process */
 #define        ERESTART        (-1)            /* restart syscall */
 #define        EJUSTRETURN     (-2)            /* don't modify regs, just return */
+
+#ifdef BSD_KERNEL_PRIVATE
 #define ERECYCLE    (-5)               /* restart lookup under heavy vnode pressure/recycling */
 #define EREDRIVEOPEN   (-6)
+#else /* BSD_KERNEL_PRIVATE */
+/* -5 and -6 are reserved for kernel internal use */
+#endif /* BSD_KERNEL_PRIVATE */
+
 #endif
 #endif /* _SYS_ERRNO_H_ */