diff options
Diffstat (limited to 'cpukit/sapi')
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 7 | ||||
-rw-r--r-- | cpukit/sapi/src/posixapi.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 50db8779af..2a3af15912 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -1695,6 +1695,11 @@ const rtems_libio_helper rtems_fs_init_helper = #include <rtems/posix/timer.h> /** + * POSIX Once support uses a single mutex. + */ + #define CONFIGURE_MAXIMUM_POSIX_INTERNAL_MUTEXES 1 + + /** * Account for the object control structures plus the name * of the object to be duplicated. */ @@ -1856,6 +1861,7 @@ const rtems_libio_helper rtems_fs_init_helper = #define CONFIGURE_MEMORY_FOR_POSIX \ ( CONFIGURE_MEMORY_FOR_POSIX_MUTEXES( CONFIGURE_MAXIMUM_POSIX_MUTEXES + \ + CONFIGURE_MAXIMUM_POSIX_INTERNAL_MUTEXES + \ CONFIGURE_MAXIMUM_GO_CHANNELS + CONFIGURE_GO_INIT_MUTEXES) + \ CONFIGURE_MEMORY_FOR_POSIX_CONDITION_VARIABLES( \ CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES + \ @@ -2304,6 +2310,7 @@ const rtems_libio_helper rtems_fs_init_helper = CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_ADA_TASKS + CONFIGURE_MAXIMUM_GOROUTINES, CONFIGURE_MAXIMUM_POSIX_MUTEXES + CONFIGURE_GNAT_MUTEXES + + CONFIGURE_MAXIMUM_POSIX_INTERNAL_MUTEXES + CONFIGURE_MAXIMUM_ADA_TASKS + CONFIGURE_MAXIMUM_FAKE_ADA_TASKS + CONFIGURE_GO_INIT_MUTEXES + CONFIGURE_MAXIMUM_GO_CHANNELS, CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES + diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c index af9ba2cac3..2d784a1671 100644 --- a/cpukit/sapi/src/posixapi.c +++ b/cpukit/sapi/src/posixapi.c @@ -33,6 +33,7 @@ #include <rtems/posix/keyimpl.h> #include <rtems/posix/mqueueimpl.h> #include <rtems/posix/muteximpl.h> +#include <rtems/posix/onceimpl.h> #include <rtems/posix/posixapi.h> #include <rtems/posix/priorityimpl.h> #include <rtems/posix/psignalimpl.h> @@ -66,6 +67,7 @@ void _POSIX_API_Initialize(void) _POSIX_Key_Manager_initialization(); _POSIX_Mutex_Manager_initialization(); _POSIX_Message_queue_Manager_initialization(); + _POSIX_Once_Manager_initialization(); _POSIX_Semaphore_Manager_initialization(); _POSIX_Timer_Manager_initialization(); _POSIX_Barrier_Manager_initialization(); |