mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
spsysinit01: Fix sem_open() call
The O_CREAT flag requires a mode and initial value as third and fourth argument. Close #4878.
This commit is contained in:
1 parent
2859e422b3
commit
377eae4165
1 file changed
+1
-1
@@ -908,7 +908,7 @@ static void do_posix_sem_open(void)
|
||||
sem_t *sem;
|
||||
int rv;
|
||||
|
||||
sem = sem_open("sem", O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
sem = sem_open("sem", O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO, 0);
|
||||
rtems_test_assert(sem != SEM_FAILED);
|
||||
|
||||
rv = sem_close(sem);
|
||||
|
||||
Reference in new issue
Block a user