aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/errno.h
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2005-04-02 12:33:28 +0000
committerDavid Schultz <das@FreeBSD.org>2005-04-02 12:33:28 +0000
commit5e9b87a863dbc8ccb86d084c4aabaa3a750ee4ac (patch)
tree208a6110ab088149f5621257ae5fdd5eac21aba8 /sys/sys/errno.h
parent6d2f64c103af114a2955898821408a593fdb7fa4 (diff)
downloadsrc-5e9b87a863dbc8ccb86d084c4aabaa3a750ee4ac.tar.gz
src-5e9b87a863dbc8ccb86d084c4aabaa3a750ee4ac.zip
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.
Notes
Notes: svn path=/head/; revision=144530
Diffstat (limited to 'sys/sys/errno.h')
-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 1e5a95c9b5c6..77b5f67a1734 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