From c627b2a3a1ca1a6aca1c20e133db0f95a65a71fb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 28 May 1996 21:40:52 +0000 Subject: split the inclusion of "EXTERN" data based on whether it was sapi, score, rtems api, or posix api related. --- c/src/exec/posix/headers/cond.h | 2 +- c/src/exec/posix/headers/intr.h | 5 ++-- c/src/exec/posix/headers/key.h | 2 +- c/src/exec/posix/headers/mqueue.h | 2 +- c/src/exec/posix/headers/mutex.h | 5 +++- c/src/exec/posix/headers/posixapi.h | 34 ++++++++++++++++++++++++ c/src/exec/posix/headers/pthread.h | 6 ++--- c/src/exec/posix/headers/semaphore.h | 2 +- c/src/exec/posix/include/rtems/posix/cond.h | 2 +- c/src/exec/posix/include/rtems/posix/intr.h | 5 ++-- c/src/exec/posix/include/rtems/posix/key.h | 2 +- c/src/exec/posix/include/rtems/posix/mqueue.h | 2 +- c/src/exec/posix/include/rtems/posix/mutex.h | 5 +++- c/src/exec/posix/include/rtems/posix/posixapi.h | 34 ++++++++++++++++++++++++ c/src/exec/posix/include/rtems/posix/pthread.h | 6 ++--- c/src/exec/posix/include/rtems/posix/semaphore.h | 2 +- 16 files changed, 96 insertions(+), 20 deletions(-) create mode 100644 c/src/exec/posix/headers/posixapi.h create mode 100644 c/src/exec/posix/include/rtems/posix/posixapi.h (limited to 'c/src/exec/posix') diff --git a/c/src/exec/posix/headers/cond.h b/c/src/exec/posix/headers/cond.h index 4448e38b6c..137871e0dc 100644 --- a/c/src/exec/posix/headers/cond.h +++ b/c/src/exec/posix/headers/cond.h @@ -40,7 +40,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Condition_variables_Information; +POSIX_EXTERN Objects_Information _POSIX_Condition_variables_Information; /* * _POSIX_Condition_variables_Manager_initialization diff --git a/c/src/exec/posix/headers/intr.h b/c/src/exec/posix/headers/intr.h index ae1690f676..68c336ac0a 100644 --- a/c/src/exec/posix/headers/intr.h +++ b/c/src/exec/posix/headers/intr.h @@ -53,14 +53,15 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information; +POSIX_EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information; /* * The following is an array which is used to manage the set of * interrupt handlers installed on each vector. */ -EXTERN POSIX_Interrupt_Control _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ]; +POSIX_EXTERN POSIX_Interrupt_Control + _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ]; /* * _POSIX_Interrupt_Manager_initialization diff --git a/c/src/exec/posix/headers/key.h b/c/src/exec/posix/headers/key.h index 0e690161b8..b552fec1d2 100644 --- a/c/src/exec/posix/headers/key.h +++ b/c/src/exec/posix/headers/key.h @@ -40,7 +40,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Keys_Information; +POSIX_EXTERN Objects_Information _POSIX_Keys_Information; /* * _POSIX_Keys_Manager_initialization diff --git a/c/src/exec/posix/headers/mqueue.h b/c/src/exec/posix/headers/mqueue.h index 5d5cfee61b..92691ce6dd 100644 --- a/c/src/exec/posix/headers/mqueue.h +++ b/c/src/exec/posix/headers/mqueue.h @@ -45,7 +45,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Message_queue_Information; +POSIX_EXTERN Objects_Information _POSIX_Message_queue_Information; /* * _POSIX_Message_queue_Manager_initialization diff --git a/c/src/exec/posix/headers/mutex.h b/c/src/exec/posix/headers/mutex.h index 5639d908d2..0fb8ed6d5a 100644 --- a/c/src/exec/posix/headers/mutex.h +++ b/c/src/exec/posix/headers/mutex.h @@ -21,6 +21,9 @@ extern "C" { #endif +#include +#include + /* * Data Structure used to manage a POSIX mutex */ @@ -36,7 +39,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Mutex_Information; +POSIX_EXTERN Objects_Information _POSIX_Mutex_Information; /* * _POSIX_Mutex_Manager_initialization diff --git a/c/src/exec/posix/headers/posixapi.h b/c/src/exec/posix/headers/posixapi.h new file mode 100644 index 0000000000..42c41da8c6 --- /dev/null +++ b/c/src/exec/posix/headers/posixapi.h @@ -0,0 +1,34 @@ +/* + * POSIX API Support + * + * NOTE: + * + * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. + * On-Line Applications Research Corporation (OAR). + * All rights assigned to U.S. Government, 1994. + * + * This material may be reproduced by or for the U.S. Government pursuant + * to the copyright license under the clause at DFARS 252.227-7013. This + * notice must appear in all copies of this file and its derivatives. + * + * $Id$ + */ + +#ifndef __POSIX_API_h +#define __POSIX_API_h + +#include + +/*PAGE + * + * _POSIX_API_Initialize + * + * XXX + */ + +void _POSIX_API_Initialize( + rtems_configuration_table *configuration_table +); + +#endif +/* end of include file */ diff --git a/c/src/exec/posix/headers/pthread.h b/c/src/exec/posix/headers/pthread.h index 1ec9d9f193..9dca4705b7 100644 --- a/c/src/exec/posix/headers/pthread.h +++ b/c/src/exec/posix/headers/pthread.h @@ -35,15 +35,15 @@ typedef Thread_Control POSIX_Threads_Control; * this class of objects. */ -EXTERN Objects_Information _POSIX_Threads_Information; +POSIX_EXTERN Objects_Information _POSIX_Threads_Information; /* * These are used to manage the user initialization tasks. */ -EXTERN posix_initialization_tasks_table +POSIX_EXTERN posix_initialization_tasks_table *_POSIX_Threads_User_initialization_tasks; -EXTERN unsigned32 _POSIX_Threads_Number_of_initialization_tasks; +POSIX_EXTERN unsigned32 _POSIX_Threads_Number_of_initialization_tasks; /* diff --git a/c/src/exec/posix/headers/semaphore.h b/c/src/exec/posix/headers/semaphore.h index a538663989..b2334d8f66 100644 --- a/c/src/exec/posix/headers/semaphore.h +++ b/c/src/exec/posix/headers/semaphore.h @@ -41,7 +41,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Semaphore_Information; +POSIX_EXTERN Objects_Information _POSIX_Semaphore_Information; /* * _POSIX_Semaphore_Manager_initialization diff --git a/c/src/exec/posix/include/rtems/posix/cond.h b/c/src/exec/posix/include/rtems/posix/cond.h index 4448e38b6c..137871e0dc 100644 --- a/c/src/exec/posix/include/rtems/posix/cond.h +++ b/c/src/exec/posix/include/rtems/posix/cond.h @@ -40,7 +40,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Condition_variables_Information; +POSIX_EXTERN Objects_Information _POSIX_Condition_variables_Information; /* * _POSIX_Condition_variables_Manager_initialization diff --git a/c/src/exec/posix/include/rtems/posix/intr.h b/c/src/exec/posix/include/rtems/posix/intr.h index ae1690f676..68c336ac0a 100644 --- a/c/src/exec/posix/include/rtems/posix/intr.h +++ b/c/src/exec/posix/include/rtems/posix/intr.h @@ -53,14 +53,15 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information; +POSIX_EXTERN Objects_Information _POSIX_Interrupt_Handlers_Information; /* * The following is an array which is used to manage the set of * interrupt handlers installed on each vector. */ -EXTERN POSIX_Interrupt_Control _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ]; +POSIX_EXTERN POSIX_Interrupt_Control + _POSIX_Interrupt_Information[ ISR_NUMBER_OF_VECTORS ]; /* * _POSIX_Interrupt_Manager_initialization diff --git a/c/src/exec/posix/include/rtems/posix/key.h b/c/src/exec/posix/include/rtems/posix/key.h index 0e690161b8..b552fec1d2 100644 --- a/c/src/exec/posix/include/rtems/posix/key.h +++ b/c/src/exec/posix/include/rtems/posix/key.h @@ -40,7 +40,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Keys_Information; +POSIX_EXTERN Objects_Information _POSIX_Keys_Information; /* * _POSIX_Keys_Manager_initialization diff --git a/c/src/exec/posix/include/rtems/posix/mqueue.h b/c/src/exec/posix/include/rtems/posix/mqueue.h index 5d5cfee61b..92691ce6dd 100644 --- a/c/src/exec/posix/include/rtems/posix/mqueue.h +++ b/c/src/exec/posix/include/rtems/posix/mqueue.h @@ -45,7 +45,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Message_queue_Information; +POSIX_EXTERN Objects_Information _POSIX_Message_queue_Information; /* * _POSIX_Message_queue_Manager_initialization diff --git a/c/src/exec/posix/include/rtems/posix/mutex.h b/c/src/exec/posix/include/rtems/posix/mutex.h index 5639d908d2..0fb8ed6d5a 100644 --- a/c/src/exec/posix/include/rtems/posix/mutex.h +++ b/c/src/exec/posix/include/rtems/posix/mutex.h @@ -21,6 +21,9 @@ extern "C" { #endif +#include +#include + /* * Data Structure used to manage a POSIX mutex */ @@ -36,7 +39,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Mutex_Information; +POSIX_EXTERN Objects_Information _POSIX_Mutex_Information; /* * _POSIX_Mutex_Manager_initialization diff --git a/c/src/exec/posix/include/rtems/posix/posixapi.h b/c/src/exec/posix/include/rtems/posix/posixapi.h new file mode 100644 index 0000000000..42c41da8c6 --- /dev/null +++ b/c/src/exec/posix/include/rtems/posix/posixapi.h @@ -0,0 +1,34 @@ +/* + * POSIX API Support + * + * NOTE: + * + * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. + * On-Line Applications Research Corporation (OAR). + * All rights assigned to U.S. Government, 1994. + * + * This material may be reproduced by or for the U.S. Government pursuant + * to the copyright license under the clause at DFARS 252.227-7013. This + * notice must appear in all copies of this file and its derivatives. + * + * $Id$ + */ + +#ifndef __POSIX_API_h +#define __POSIX_API_h + +#include + +/*PAGE + * + * _POSIX_API_Initialize + * + * XXX + */ + +void _POSIX_API_Initialize( + rtems_configuration_table *configuration_table +); + +#endif +/* end of include file */ diff --git a/c/src/exec/posix/include/rtems/posix/pthread.h b/c/src/exec/posix/include/rtems/posix/pthread.h index 1ec9d9f193..9dca4705b7 100644 --- a/c/src/exec/posix/include/rtems/posix/pthread.h +++ b/c/src/exec/posix/include/rtems/posix/pthread.h @@ -35,15 +35,15 @@ typedef Thread_Control POSIX_Threads_Control; * this class of objects. */ -EXTERN Objects_Information _POSIX_Threads_Information; +POSIX_EXTERN Objects_Information _POSIX_Threads_Information; /* * These are used to manage the user initialization tasks. */ -EXTERN posix_initialization_tasks_table +POSIX_EXTERN posix_initialization_tasks_table *_POSIX_Threads_User_initialization_tasks; -EXTERN unsigned32 _POSIX_Threads_Number_of_initialization_tasks; +POSIX_EXTERN unsigned32 _POSIX_Threads_Number_of_initialization_tasks; /* diff --git a/c/src/exec/posix/include/rtems/posix/semaphore.h b/c/src/exec/posix/include/rtems/posix/semaphore.h index a538663989..b2334d8f66 100644 --- a/c/src/exec/posix/include/rtems/posix/semaphore.h +++ b/c/src/exec/posix/include/rtems/posix/semaphore.h @@ -41,7 +41,7 @@ typedef struct { * this class of objects. */ -EXTERN Objects_Information _POSIX_Semaphore_Information; +POSIX_EXTERN Objects_Information _POSIX_Semaphore_Information; /* * _POSIX_Semaphore_Manager_initialization -- cgit v1.2.3