[rtems commit] spsysinit01: Fix sem_open() call
Sebastian Huber
sebh at rtems.org
Tue Mar 14 06:43:29 UTC 2023
Module: rtems
Branch: master
Commit: 377eae4165d52d247bdeaac99c735fdb02edae65
Changeset: http://git.rtems.org/rtems/commit/?id=377eae4165d52d247bdeaac99c735fdb02edae65
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Mar 13 15:47:32 2023 +0100
spsysinit01: Fix sem_open() call
The O_CREAT flag requires a mode and initial value as third and fourth
argument.
Close #4878.
---
testsuites/sptests/spsysinit01/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c
index 1f7c1ada25..2438c91559 100644
--- a/testsuites/sptests/spsysinit01/init.c
+++ b/testsuites/sptests/spsysinit01/init.c
@@ -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);
More information about the vc
mailing list