From d4311908c8153d13a066f354d11cab72528aba05 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 12 Mar 2009 15:32:09 +0000 Subject: [PATCH] 2009-03-12 Joel Sherrill PR 1393/cpukit * posix/src/mutextranslatereturncode.c: Add entry to table for CORE_MUTEX_RELEASE_NOT_ORDER. --- cpukit/ChangeLog | 6 ++++++ cpukit/posix/src/mutextranslatereturncode.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b782c63e0a..102a41c8c2 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2009-03-12 Joel Sherrill + + PR 1393/cpukit + * posix/src/mutextranslatereturncode.c: Add entry to table for + CORE_MUTEX_RELEASE_NOT_ORDER. + 2009-03-09 Joel Sherrill PR 1376/filesystem diff --git a/cpukit/posix/src/mutextranslatereturncode.c b/cpukit/posix/src/mutextranslatereturncode.c index d2a684bfe0..0392e29eac 100644 --- a/cpukit/posix/src/mutextranslatereturncode.c +++ b/cpukit/posix/src/mutextranslatereturncode.c @@ -1,7 +1,7 @@ /* * POSIX Mutex Error Translation * - * COPYRIGHT (c) 1989-2008. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -39,6 +39,9 @@ static int _POSIX_Mutex_Return_codes[CORE_MUTEX_STATUS_LAST + 1] = { EPERM, /* CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE */ EINVAL, /* CORE_MUTEX_WAS_DELETED */ ETIMEDOUT, /* CORE_MUTEX_TIMEOUT */ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ + EDEADLK, /* CORE_MUTEX_RELEASE_NOT_ORDER */ +#endif EINVAL /* CORE_MUTEX_STATUS_CEILING_VIOLATED */ };