diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-29 16:05:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-29 16:05:28 +0000 |
commit | 99f9dffaf449de6b0a95ba52fcd6628962d9817c (patch) | |
tree | afd62dbc520895df16bc2dbfcaf72b2b21499356 /c/src | |
parent | It is now not an error to have 0 RTEMS initialization tasks since you could (diff) | |
download | rtems-99f9dffaf449de6b0a95ba52fcd6628962d9817c.tar.bz2 |
Added default POSIX API configuration table.
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/exec/sapi/src/posixapi.c | 14 |
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, |