ksem_open_should_fail
ksem_open_should_fail(TEST_PATH, O_RDONLY, 0777, 1, ENOENT);
ksem_open_should_fail("blah", 0, 0777, 1, EINVAL);
ksem_open_should_fail(TEST_PATH, O_RDONLY | O_DIRECT, 0777, 1, EINVAL);
ksem_open_should_fail(TEST_PATH, O_CREAT, 0777, UINT_MAX, EINVAL);
ksem_open_should_fail((char *)1024, O_RDONLY, 0777, 1, EFAULT);
ksem_open_should_fail(page, O_RDONLY, 0777, 1, ENAMETOOLONG);
ksem_open_should_fail("/notreallythere", 0, 0777, 1, ENOENT);
ksem_open_should_fail(TEST_PATH, O_CREAT | O_EXCL, 0777, 1, EEXIST);