diff options
author | Chris Johns <chrisj@rtems.org> | 2013-08-23 14:56:36 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-08-23 14:56:36 +1000 |
commit | 6e4c01e3a2c07d3d42c510fbff70c14ccbafd2df (patch) | |
tree | ec6d62205983fabb345a6d84cd50804265fe3349 /cpukit/sapi/src/posixapi.c | |
parent | bsps/arm: Add more CP15 cache functions (diff) | |
download | rtems-6e4c01e3a2c07d3d42c510fbff70c14ccbafd2df.tar.bz2 |
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.
Diffstat (limited to 'cpukit/sapi/src/posixapi.c')
-rw-r--r-- | cpukit/sapi/src/posixapi.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <rtems/posix/spinlockimpl.h> #include <rtems/posix/time.h> +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) |