[PATCH 30/38] posix: Delete empty _POSIX_API_Initialize()
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Jan 26 15:37:56 UTC 2016
---
cpukit/posix/include/rtems/posix/posixapi.h | 8 --------
cpukit/sapi/src/exinit.c | 7 -------
cpukit/sapi/src/posixapi.c | 24 ------------------------
cpukit/score/include/rtems/score/basedefs.h | 14 --------------
4 files changed, 53 deletions(-)
diff --git a/cpukit/posix/include/rtems/posix/posixapi.h b/cpukit/posix/include/rtems/posix/posixapi.h
index ec8b845..8fee7a4 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 edd8a5c..1482689 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 b3839dd..d1de103 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 34e021a..ea7d8c7 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
--
1.8.4.5
More information about the devel
mailing list