sem_open_should_fail
int sem_open_should_fail(const char *, int, mode_t, unsigned int, int);
retval = sem_open_should_fail(TEST_PATH, O_CREAT | O_EXCL, 0777, 1, EEXIST);
retval = sem_open_should_fail(TEST_PATH, O_RDONLY, 0777, 1, ENOENT);
retval = sem_open_should_fail(TEST_PATH, O_CREAT, 0777,
retval = sem_open_should_fail(TEST_PATH, O_RDONLY | O_DIRECT, 0777, 1, EINVAL);
retval = sem_open_should_fail("blah", 0, 0777, 1, ENOENT);
sem_open_should_fail("/notreallythere", 0, 0777, 1, ENOENT);
sem_open_should_fail(page, O_RDONLY, 0777, 1, ENAMETOOLONG);