From 529b08a705ef1b3bf3a1ef817aa043a74ce0e5ca Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 15 Dec 2015 09:38:31 +0100 Subject: posix: Delete empty _POSIX_API_Initialize() --- 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 ec8b8453ff..8fee7a4f32 100644 --- a/cpukit/posix/include/rtems/posix/posixapi.h +++ b/cpukit/posix/include/rtems/posix/posixapi.h @@ -48,14 +48,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. * 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 - -#include - #ifdef RTEMS_DRVMGR_STARTUP #include #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 /* include this before checking RTEMS_POSIX_API */ - -#include #include -#ifdef RTEMS_POSIX_API -#include -#include -#include -#include -#include -#include -#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 @@ -95,20 +95,6 @@ #define SAPI_EXTERN extern #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 -- cgit v1.2.3