summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-28 16:33:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-28 16:33:11 +0000
commit962c9b65f22d8b0b1efd041fbb327338bf7ebf04 (patch)
treeb45f1ddba60c10949a59109b275de8c5efc46dc1
parentcommented out interrupt support (diff)
downloadrtems-962c9b65f22d8b0b1efd041fbb327338bf7ebf04.tar.bz2
new file
-rw-r--r--c/src/exec/sapi/src/posixapi.c72
-rw-r--r--cpukit/sapi/src/posixapi.c72
2 files changed, 144 insertions, 0 deletions
diff --git a/c/src/exec/sapi/src/posixapi.c b/c/src/exec/sapi/src/posixapi.c
new file mode 100644
index 0000000000..6efba79034
--- /dev/null
+++ b/c/src/exec/sapi/src/posixapi.c
@@ -0,0 +1,72 @@
+/*
+ * RTEMS API Initialization 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$
+ */
+
+#include <assert.h>
+
+#include <rtems/system.h>
+
+#define INIT
+
+#include <rtems/posix/cond.h>
+#include <rtems/posix/condmp.h>
+#include <rtems/posix/config.h>
+#include <rtems/posix/key.h>
+#include <rtems/posix/mutex.h>
+#include <rtems/posix/mutexmp.h>
+#include <rtems/posix/priority.h>
+#include <rtems/posix/pthread.h>
+#include <rtems/posix/pthreadmp.h>
+#include <rtems/posix/time.h>
+
+/*PAGE
+ *
+ * _POSIX_API_Initialize
+ *
+ * XXX
+ */
+
+void _POSIX_API_Initialize(
+ rtems_configuration_table *configuration_table
+)
+{
+ posix_api_configuration_table *api_configuration;
+
+ api_configuration = configuration_table->POSIX_api_configuration;
+
+ assert( api_configuration );
+
+ _RTEMS_tasks_Manager_initialization(
+ api_configuration->maximum_tasks
+#if 0
+,
+ api_configuration->number_of_initialization_tasks,
+ api_configuration->User_initialization_tasks_table
+#endif
+ );
+
+ _POSIX_Condition_variables_Manager_initialization(
+ api_configuration->maximum_condition_variables
+ );
+
+ void _POSIX_Key_Manager_initialization( api_configuration->maximum_keys );
+
+ _POSIX_Mutex_Manager_initialization(
+ api_configuration->maximum_mutexes
+ );
+
+}
+
+/* end of file */
diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c
new file mode 100644
index 0000000000..6efba79034
--- /dev/null
+++ b/cpukit/sapi/src/posixapi.c
@@ -0,0 +1,72 @@
+/*
+ * RTEMS API Initialization 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$
+ */
+
+#include <assert.h>
+
+#include <rtems/system.h>
+
+#define INIT
+
+#include <rtems/posix/cond.h>
+#include <rtems/posix/condmp.h>
+#include <rtems/posix/config.h>
+#include <rtems/posix/key.h>
+#include <rtems/posix/mutex.h>
+#include <rtems/posix/mutexmp.h>
+#include <rtems/posix/priority.h>
+#include <rtems/posix/pthread.h>
+#include <rtems/posix/pthreadmp.h>
+#include <rtems/posix/time.h>
+
+/*PAGE
+ *
+ * _POSIX_API_Initialize
+ *
+ * XXX
+ */
+
+void _POSIX_API_Initialize(
+ rtems_configuration_table *configuration_table
+)
+{
+ posix_api_configuration_table *api_configuration;
+
+ api_configuration = configuration_table->POSIX_api_configuration;
+
+ assert( api_configuration );
+
+ _RTEMS_tasks_Manager_initialization(
+ api_configuration->maximum_tasks
+#if 0
+,
+ api_configuration->number_of_initialization_tasks,
+ api_configuration->User_initialization_tasks_table
+#endif
+ );
+
+ _POSIX_Condition_variables_Manager_initialization(
+ api_configuration->maximum_condition_variables
+ );
+
+ void _POSIX_Key_Manager_initialization( api_configuration->maximum_keys );
+
+ _POSIX_Mutex_Manager_initialization(
+ api_configuration->maximum_mutexes
+ );
+
+}
+
+/* end of file */