summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-04-02 12:33:28 +0000
committerdas <das@FreeBSD.org>2005-04-02 12:33:28 +0000
commit1e73b68cbcff03471dc15e790109111a0e314c89 (patch)
tree208a6110ab088149f5621257ae5fdd5eac21aba8 /sys
parented4814bbdf1303d87f5a172008068a3cb7af10e0 (diff)
downloadFreeBSD-src-1e73b68cbcff03471dc15e790109111a0e314c89.zip
FreeBSD-src-1e73b68cbcff03471dc15e790109111a0e314c89.tar.gz
Add some missing errnos from POSIX. Nothing in FreeBSD generates
these at the moment, but applications that test for them will now have a better chance of compiling. I have intentionally omitted errnos that are only good for STREAMS, since apps that use STREAMS won't compile anyway. The exception is EPROTO, which was apparently intended for STREAMS, but worth having anyway because Linux (mis)uses it for other things.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/errno.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index 1e5a95c..77b5f67 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -166,9 +166,15 @@ __END_DECLS
#define ENOATTR 87 /* Attribute not found */
#define EDOOFUS 88 /* Programming error */
+#endif /* _POSIX_SOURCE */
-#define ELAST 88 /* Must be equal largest errno */
+#define EBADMSG 89 /* Bad message */
+#define EMULTIHOP 90 /* Multihop attempted */
+#define ENOLINK 91 /* Link has been severed */
+#define EPROTO 92 /* Protocol error */
+#ifndef _POSIX_SOURCE
+#define ELAST 92 /* Must be equal largest errno */
#endif /* _POSIX_SOURCE */
#ifdef _KERNEL
OpenPOWER on IntegriCloud