summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-15 09:38:31 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:56 +0100
commit529b08a705ef1b3bf3a1ef817aa043a74ce0e5ca (patch)
tree2b52cff5ccbf570d7f52a4ca4bdbbfe8203874bd
parentOptional POSIX Keys initialization (diff)
downloadrtems-529b08a705ef1b3bf3a1ef817aa043a74ce0e5ca.tar.bz2
posix: Delete empty _POSIX_API_Initialize()
-rw-r--r--cpukit/posix/include/rtems/posix/posixapi.h8
-rw-r--r--cpukit/sapi/src/exinit.c7
-rw-r--r--cpukit/sapi/src/posixapi.c24
-rw-r--r--cpukit/score/include/rtems/score/basedefs.h14
4 files changed, 0 insertions, 53 deletions
diff --git a/cpukit/posix/include/rtems/posix/posixapi.h b/cpukit/posix/include/rtems/posix/posixapi.h
index ec8b8453ff..8fee7a4f32 100644
--- a/cpukit/posix/include/rtems/posix/posixapi.h
+++ b/cpukit/posix/include/rtems/posix/posixapi.h
@@ -49,14 +49,6 @@ typedef enum {
void _POSIX_Fatal_error( POSIX_Fatal_domain domain, int eno );
/**
- * @brief Initialize POSIX API.
- *
- * This method is responsible for initializing each of the POSIX
- * API managers.
- */
-void _POSIX_API_Initialize(void);
-
-/**
* @brief Queries the object identifier @a id for a @a name.
*
* @param[in] information Object information.
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c
index edd8a5c55f..148268971c 100644
--- a/cpukit/sapi/src/exinit.c
+++ b/cpukit/sapi/src/exinit.c
@@ -51,9 +51,6 @@
#include <rtems/sptables.h>
-
-#include <rtems/posix/posixapi.h>
-
#ifdef RTEMS_DRVMGR_STARTUP
#include <drvmgr/drvmgr.h>
#endif
@@ -128,10 +125,6 @@ static void rtems_initialize_data_structures(void)
#endif
_SMP_Handler_initialize();
-
-/* MANAGERS */
-
- _POSIX_API_Initialize();
}
static void rtems_initialize_before_drivers(void)
diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c
index b3839ddd84..d1de103f18 100644
--- a/cpukit/sapi/src/posixapi.c
+++ b/cpukit/sapi/src/posixapi.c
@@ -19,35 +19,11 @@
#include "config.h"
#endif
-#define POSIX_API_INIT
-
-#include <rtems/system.h> /* include this before checking RTEMS_POSIX_API */
-
-#include <rtems/config.h>
#include <rtems/posix/posixapi.h>
-#ifdef RTEMS_POSIX_API
-#include <sys/types.h>
-#include <mqueue.h>
-#include <rtems/config.h>
-#include <rtems/posix/config.h>
-#include <rtems/posix/priorityimpl.h>
-#include <rtems/posix/psignalimpl.h>
-#endif
-
void _POSIX_Fatal_error( POSIX_Fatal_domain domain, int eno )
{
uint32_t code = ( domain << 8 ) | ( ( uint32_t ) eno & 0xffU );
_Terminate( INTERNAL_ERROR_POSIX_API, false, code );
}
-
-void _POSIX_API_Initialize(void)
-{
- /*
- * If there are any type size assumptions in the POSIX API, this is
- * the appropriate place to place them.
- *
- * Currently, there are no none type size assumptions.
- */
-}
diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index 34e021a639..ea7d8c7c91 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -96,20 +96,6 @@
#endif
/**
- * The following ensures that all data is declared in the space
- * of the initialization routine for either the Initialization Manager
- * or the initialization file for the appropriate API. It is
- * referenced as "external" in every other file.
- */
-#ifdef POSIX_API_INIT
- #undef POSIX_EXTERN
- #define POSIX_EXTERN
-#else
- #undef POSIX_EXTERN
- #define POSIX_EXTERN extern
-#endif
-
-/**
* The following (in conjunction with compiler arguments) are used
* to choose between the use of static inline functions and macro
* functions. The static inline implementation allows better