xref: /dflybsd-src/test/testcases/posixipc/open_bad_value/open_bad_value.c (revision e586f31ca9899b49a4fc156613d9ecd853defcec)
1 #include <common.h>
2 
3 int
4 main(void) {
5 	int retval = 0;
6 
7 	(void)sem_unlink(TEST_PATH);
8 	retval = sem_open_should_fail(TEST_PATH, O_CREAT, 0777,
9 	    SEM_VALUE_MAX+1U, EINVAL);
10 
11 	return retval;
12 }
13