From 6e4c01e3a2c07d3d42c510fbff70c14ccbafd2df Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 23 Aug 2013 14:56:36 +1000 Subject: posix: Update to the pthread_once changes. Implement the reeview changes. Add a POSIX Fatal error domain. Fix confdefs.h to correctly handle the internal POSIX mutexes. --- cpukit/sapi/src/posixapi.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/sapi/src/posixapi.c') diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c index 2d784a1671..5254225e01 100644 --- a/cpukit/sapi/src/posixapi.c +++ b/cpukit/sapi/src/posixapi.c @@ -44,6 +44,13 @@ #include #include +void _POSIX_Fatal_error( POSIX_Fatal_domain domain, int eno ) +{ + uint32_t code = ( domain << 8 ) | ( ( uint32_t ) eno & 0xffU ); + + _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, false, code ); +} + Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ]; void _POSIX_API_Initialize(void) -- cgit v1.2.3