summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-30 11:43:09 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-12-02 07:45:52 +0100
commit3732c931822998864312e9ae5c9a325a83431802 (patch)
tree03af5e8084344a7c6d18c3cf2647351a174acfdc /cpukit/sapi
parentb48b1808a1d9fb1cf54425c1fa88574f9fa27019 (diff)
downloadrtems-3732c931822998864312e9ae5c9a325a83431802.tar.bz2
posix: Delete unused _POSIX_Fatal_error()
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/src/posixapi.c179
1 files changed, 0 insertions, 179 deletions
diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c
deleted file mode 100644
index 2cd771c56b..0000000000
--- a/cpukit/sapi/src/posixapi.c
+++ /dev/null
@@ -1,179 +0,0 @@
-/**
- * @file
- *
- * @brief Initialize POSIX API
- *
- * @ingroup ClassicRTEMS
- */
-
-/*
- * COPYRIGHT (c) 1989-2014.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/posix/posixapi.h>
-#include <rtems/posix/barrierimpl.h>
-#include <rtems/posix/condimpl.h>
-#include <rtems/posix/muteximpl.h>
-#include <rtems/posix/rwlockimpl.h>
-#include <rtems/posix/semaphoreimpl.h>
-#include <rtems/score/heap.h>
-
-#ifdef HEAP_PROTECTION
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != HEAP_BEGIN_PROTECTOR_0,
- POSIX_SEMAPHORE_MAGIC_0
-);
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != HEAP_BEGIN_PROTECTOR_1,
- POSIX_SEMAPHORE_MAGIC_1
-);
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != HEAP_END_PROTECTOR_0,
- POSIX_SEMAPHORE_MAGIC_2
-);
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != HEAP_END_PROTECTOR_1,
- POSIX_SEMAPHORE_MAGIC_3
-);
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != HEAP_FREE_PATTERN,
- POSIX_SEMAPHORE_MAGIC_4
-);
-RTEMS_STATIC_ASSERT(
- POSIX_BARRIER_MAGIC != HEAP_BEGIN_PROTECTOR_0,
- POSIX_BARRIER_MAGIC_0
-);
-RTEMS_STATIC_ASSERT(
- POSIX_BARRIER_MAGIC != HEAP_BEGIN_PROTECTOR_1,
- POSIX_BARRIER_MAGIC_1
-);
-RTEMS_STATIC_ASSERT(
- POSIX_BARRIER_MAGIC != HEAP_END_PROTECTOR_0,
- POSIX_BARRIER_MAGIC_2
-);
-RTEMS_STATIC_ASSERT(
- POSIX_BARRIER_MAGIC != HEAP_END_PROTECTOR_1,
- POSIX_BARRIER_MAGIC_3
-);
-RTEMS_STATIC_ASSERT(
- POSIX_BARRIER_MAGIC != HEAP_FREE_PATTERN,
- POSIX_BARRIER_MAGIC_4
-);
-RTEMS_STATIC_ASSERT(
- POSIX_RWLOCK_MAGIC != HEAP_BEGIN_PROTECTOR_0,
- POSIX_RWLOCK_MAGIC_0
-);
-RTEMS_STATIC_ASSERT(
- POSIX_RWLOCK_MAGIC != HEAP_BEGIN_PROTECTOR_1,
- POSIX_RWLOCK_MAGIC_1
-);
-RTEMS_STATIC_ASSERT(
- POSIX_RWLOCK_MAGIC != HEAP_END_PROTECTOR_0,
- POSIX_RWLOCK_MAGIC_2
-);
-RTEMS_STATIC_ASSERT(
- POSIX_RWLOCK_MAGIC != HEAP_END_PROTECTOR_1,
- POSIX_RWLOCK_MAGIC_3
-);
-RTEMS_STATIC_ASSERT(
- POSIX_RWLOCK_MAGIC != HEAP_FREE_PATTERN,
- POSIX_RWLOCK_MAGIC_4
-);
-RTEMS_STATIC_ASSERT(
- POSIX_CONDITION_VARIABLES_MAGIC != HEAP_BEGIN_PROTECTOR_0,
- POSIX_CONDITION_VARIABLES_MAGIC_0
-);
-RTEMS_STATIC_ASSERT(
- POSIX_CONDITION_VARIABLES_MAGIC != HEAP_BEGIN_PROTECTOR_1,
- POSIX_CONDITION_VARIABLES_MAGIC_1
-);
-RTEMS_STATIC_ASSERT(
- POSIX_CONDITION_VARIABLES_MAGIC != HEAP_END_PROTECTOR_0,
- POSIX_CONDITION_VARIABLES_MAGIC_2
-);
-RTEMS_STATIC_ASSERT(
- POSIX_CONDITION_VARIABLES_MAGIC != HEAP_END_PROTECTOR_1,
- POSIX_CONDITION_VARIABLES_MAGIC_3
-);
-RTEMS_STATIC_ASSERT(
- POSIX_CONDITION_VARIABLES_MAGIC != HEAP_FREE_PATTERN,
- POSIX_CONDITION_VARIABLES_MAGIC_4
-);
-RTEMS_STATIC_ASSERT(
- POSIX_MUTEX_MAGIC != HEAP_BEGIN_PROTECTOR_0,
- POSIX_MUTEX_MAGIC_0
-);
-RTEMS_STATIC_ASSERT(
- POSIX_MUTEX_MAGIC != HEAP_BEGIN_PROTECTOR_1,
- POSIX_MUTEX_MAGIC_1
-);
-RTEMS_STATIC_ASSERT(
- POSIX_MUTEX_MAGIC != HEAP_END_PROTECTOR_0,
- POSIX_MUTEX_MAGIC_2
-);
-RTEMS_STATIC_ASSERT(
- POSIX_MUTEX_MAGIC != HEAP_END_PROTECTOR_1,
- POSIX_MUTEX_MAGIC_3
-);
-RTEMS_STATIC_ASSERT(
- POSIX_MUTEX_MAGIC != HEAP_FREE_PATTERN,
- POSIX_MUTEX_MAGIC_4
-);
-#endif
-
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != POSIX_BARRIER_MAGIC,
- POSIX_SEMAPHORE_MAGIC_5
-);
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != POSIX_RWLOCK_MAGIC,
- POSIX_SEMAPHORE_MAGIC_6
-);
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != POSIX_CONDITION_VARIABLES_MAGIC,
- POSIX_SEMAPHORE_MAGIC_7
-);
-RTEMS_STATIC_ASSERT(
- POSIX_SEMAPHORE_MAGIC != POSIX_MUTEX_MAGIC,
- POSIX_SEMAPHORE_MAGIC_8
-);
-RTEMS_STATIC_ASSERT(
- POSIX_BARRIER_MAGIC != POSIX_RWLOCK_MAGIC,
- POSIX_BARRIER_MAGIC_5
-);
-RTEMS_STATIC_ASSERT(
- POSIX_BARRIER_MAGIC != POSIX_CONDITION_VARIABLES_MAGIC,
- POSIX_BARRIER_MAGIC_6
-);
-RTEMS_STATIC_ASSERT(
- POSIX_BARRIER_MAGIC != POSIX_MUTEX_MAGIC,
- POSIX_BARRIER_MAGIC_7
-);
-RTEMS_STATIC_ASSERT(
- POSIX_RWLOCK_MAGIC != POSIX_CONDITION_VARIABLES_MAGIC,
- POSIX_RWLOCK_MAGIC_5
-);
-RTEMS_STATIC_ASSERT(
- POSIX_RWLOCK_MAGIC != POSIX_MUTEX_MAGIC,
- POSIX_RWLOCK_MAGIC_6
-);
-RTEMS_STATIC_ASSERT(
- POSIX_CONDITION_VARIABLES_MAGIC != POSIX_MUTEX_MAGIC,
- POSIX_CONDITION_VARIABLES_MAGIC_5
-);
-
-void _POSIX_Fatal_error( POSIX_Fatal_domain domain, int eno )
-{
- uint32_t code = ( domain << 8 ) | ( ( uint32_t ) eno & 0xffU );
-
- _Terminate( INTERNAL_ERROR_POSIX_API, code );
-}