summaryrefslogtreecommitdiffstats
path: root/tools/regression/posixsem2/semtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/posixsem2/semtest.c')
-rw-r--r--tools/regression/posixsem2/semtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/posixsem2/semtest.c b/tools/regression/posixsem2/semtest.c
index 7557a61..befc7c5 100644
--- a/tools/regression/posixsem2/semtest.c
+++ b/tools/regression/posixsem2/semtest.c
@@ -58,10 +58,10 @@ test_named(void)
printf("testing named process-shared semaphore\n");
sem_unlink(SEM_NAME);
- s = sem_open(SEM_NAME, O_CREAT, 0777);
+ s = sem_open(SEM_NAME, O_CREAT, 0777, 0);
if (s == SEM_FAILED)
err(1, "sem_open failed");
- s2 = sem_open(SEM_NAME, O_CREAT, 0777);
+ s2 = sem_open(SEM_NAME, O_CREAT, 0777, 0);
if (s2 == SEM_FAILED)
err(2, "second sem_open call failed");
if (s != s2)
OpenPOWER on IntegriCloud