summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-29 16:05:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-29 16:05:28 +0000
commit99f9dffaf449de6b0a95ba52fcd6628962d9817c (patch)
treeafd62dbc520895df16bc2dbfcaf72b2b21499356 /c/src
parentIt is now not an error to have 0 RTEMS initialization tasks since you could (diff)
downloadrtems-99f9dffaf449de6b0a95ba52fcd6628962d9817c.tar.bz2
Added default POSIX API configuration table.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/exec/sapi/src/posixapi.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/c/src/exec/sapi/src/posixapi.c b/c/src/exec/sapi/src/posixapi.c
index 4ba236e42f..0f394c7a3d 100644
--- a/c/src/exec/sapi/src/posixapi.c
+++ b/c/src/exec/sapi/src/posixapi.c
@@ -44,6 +44,16 @@
* XXX
*/
+posix_api_configuration_table _POSIX_Default_configuration = {
+ 0, /* maximum_threads */
+ 0, /* maximum_mutexes */
+ 0, /* maximum_condition_variables */
+ 0, /* maximum_keys */
+ 0, /* number_of_initialization_tasks */
+ NULL /* User_initialization_tasks_table */
+};
+
+
void _POSIX_API_Initialize(
rtems_configuration_table *configuration_table
)
@@ -51,8 +61,10 @@ void _POSIX_API_Initialize(
posix_api_configuration_table *api_configuration;
api_configuration = configuration_table->POSIX_api_configuration;
+ if ( !api_configuration )
+ api_configuration = &_POSIX_Default_configuration;
+
- assert( api_configuration );
_POSIX_Threads_Manager_initialization(
api_configuration->maximum_threads,