From e0906c9a0d2d5d9a717c901f3bb9d529281569f6 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Sat, 4 May 2013 19:07:22 +0000 Subject: [PATCH] POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos. --- lib/libc/gen/errlst.c | 2 ++ lib/libc/nls/C.msg | 4 ++++ lib/libc/sys/intro.2 | 6 +++++- sys/sys/errno.h | 4 +++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/errlst.c b/lib/libc/gen/errlst.c index d8178236deed..7b4fd62a71bb 100644 --- a/lib/libc/gen/errlst.c +++ b/lib/libc/gen/errlst.c @@ -152,5 +152,7 @@ const char *const sys_errlist[] = { "Protocol error", /* 92 - EPROTO */ "Capabilities insufficient", /* 93 - ENOTCAPABLE */ "Not permitted in capability mode", /* 94 - ECAPMODE */ + "State not recoverable", /* 95 - ENOTRECOVERABLE */ + "Previous owner died", /* 96 - EOWNERDEAD */ }; const int sys_nerr = sizeof(sys_errlist) / sizeof(sys_errlist[0]); diff --git a/lib/libc/nls/C.msg b/lib/libc/nls/C.msg index 1f71b2fc1733..d08c5719225e 100644 --- a/lib/libc/nls/C.msg +++ b/lib/libc/nls/C.msg @@ -193,6 +193,10 @@ $ ENOTCAPABLE 93 Capabilities insufficient $ ECAPMODE 94 Not permitted in capability mode +$ ENOTRECOVERABLE +95 State not recoverable +$ EOWNERDEAD +96 Previous owner died $ $ strsignal() support catalog $ diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2 index 90933b37f358..bc10b1de59de 100644 --- a/lib/libc/sys/intro.2 +++ b/lib/libc/sys/intro.2 @@ -28,7 +28,7 @@ .\" @(#)intro.2 8.5 (Berkeley) 2/27/95 .\" $FreeBSD$ .\" -.Dd April 27, 2013 +.Dd May 4, 2013 .Dt INTRO 2 .Os .Sh NAME @@ -470,6 +470,10 @@ An operation on a capability file descriptor requires greater privilege than the capability allows. .It Er 94 ECAPMODE Em "Not permitted in capability mode" . The system call or operation is not permitted for capability mode processes. +.It Er 95 ENOTRECOVERABLE Em "State not recoverable" . +The state protected by a robust mutex is not recoverable. +.It Er 96 EOWNERDEAD Em "Previous owner died" . +The owner of a robust mutex terminated while holding the mutex lock. .El .Sh DEFINITIONS .Bl -tag -width Ds diff --git a/sys/sys/errno.h b/sys/sys/errno.h index f59551451c97..d4c59504cc6a 100644 --- a/sys/sys/errno.h +++ b/sys/sys/errno.h @@ -176,10 +176,12 @@ __END_DECLS #ifndef _POSIX_SOURCE #define ENOTCAPABLE 93 /* Capabilities insufficient */ #define ECAPMODE 94 /* Not permitted in capability mode */ +#define ENOTRECOVERABLE 95 /* State not recoverable */ +#define EOWNERDEAD 96 /* Previous owner died */ #endif /* _POSIX_SOURCE */ #ifndef _POSIX_SOURCE -#define ELAST 94 /* Must be equal largest errno */ +#define ELAST 96 /* Must be equal largest errno */ #endif /* _POSIX_SOURCE */ #ifdef _KERNEL