diff options
author | pluknet <pluknet@FreeBSD.org> | 2013-05-04 19:07:22 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2013-05-04 19:07:22 +0000 |
commit | bf7b6b6227253281ec4cfedd2f8c95e19532acb3 (patch) | |
tree | 36569bd97613ed668196165becbd391608df4cd0 | |
parent | f106bf787a663f94d44ad2b9916394298e13428e (diff) | |
download | FreeBSD-src-bf7b6b6227253281ec4cfedd2f8c95e19532acb3.zip FreeBSD-src-bf7b6b6227253281ec4cfedd2f8c95e19532acb3.tar.gz |
POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos.
-rw-r--r-- | lib/libc/gen/errlst.c | 2 | ||||
-rw-r--r-- | lib/libc/nls/C.msg | 4 | ||||
-rw-r--r-- | lib/libc/sys/intro.2 | 6 | ||||
-rw-r--r-- | 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 d817823..7b4fd62 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 1f71b2f..d08c571 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 90933b3..bc10b1d 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 f595514..d4c5950 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 |