summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/semopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/semopen.c')
-rw-r--r--cpukit/posix/src/semopen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/posix/src/semopen.c b/cpukit/posix/src/semopen.c
index 63915fca57..86bd6a615e 100644
--- a/cpukit/posix/src/semopen.c
+++ b/cpukit/posix/src/semopen.c
@@ -20,6 +20,7 @@
#include <rtems/posix/semaphoreimpl.h>
#include <rtems/score/wkspace.h>
+#include <rtems/sysinit.h>
#include <stdarg.h>
#include <fcntl.h>
@@ -172,3 +173,14 @@ sem_t *sem_open(
_Objects_Allocator_unlock();
return sem;
}
+
+static void _POSIX_Semaphore_Manager_initialization( void )
+{
+ _Objects_Initialize_information( &_POSIX_Semaphore_Information );
+}
+
+RTEMS_SYSINIT_ITEM(
+ _POSIX_Semaphore_Manager_initialization,
+ RTEMS_SYSINIT_POSIX_SEMAPHORE,
+ RTEMS_SYSINIT_ORDER_MIDDLE
+);