aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/errno.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2009-10-07 20:20:51 +0000
committerRobert Watson <rwatson@FreeBSD.org>2009-10-07 20:20:51 +0000
commit44a43f00ed0654acd7921257ba27cb5b47b11da0 (patch)
tree3b198a14c8bbf3d806889bfa7f6f66dcc96e4223 /sys/sys/errno.h
parentfbaa591f50948f714fc5bc20dc755103bc00de71 (diff)
downloadsrc-44a43f00ed0654acd7921257ba27cb5b47b11da0.tar.gz
src-44a43f00ed0654acd7921257ba27cb5b47b11da0.zip
Add a new errno, ENOTCAPABLE, to be returned when a process requests an
operation on a file descriptor that is not authorized by the descriptor's capability flags. MFC after: 1 month Sponsored by: Google
Notes
Notes: svn path=/head/; revision=197841
Diffstat (limited to 'sys/sys/errno.h')
-rw-r--r--sys/sys/errno.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index 77b5f67a1734..1fceb007c18a 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -174,7 +174,11 @@ __END_DECLS
#define EPROTO 92 /* Protocol error */
#ifndef _POSIX_SOURCE
-#define ELAST 92 /* Must be equal largest errno */
+#define ENOTCAPABLE 93 /* Capabilities insufficient */
+#endif /* _POSIX_SOURCE */
+
+#ifndef _POSIX_SOURCE
+#define ELAST 93 /* Must be equal largest errno */
#endif /* _POSIX_SOURCE */
#ifdef _KERNEL