Lines Matching defs:ksem
45 #include <sys/ksem.h>
55 intptr_t ksem;
58 ksem = 0;
59 ATF_REQUIRE_EQ(_ksem_init(0, &ksem), 0);
60 ATF_REQUIRE(_ksem_close(ksem) == -1 && errno == EINVAL);
61 ATF_REQUIRE_EQ(_ksem_destroy(ksem), 0);
72 intptr_t ksem;
75 ksem = KSEM_PSHARED;
76 ATF_REQUIRE_EQ(_ksem_init(0, &ksem), 0);
77 ATF_REQUIRE(_ksem_close(ksem) == -1 && errno == EINVAL);
78 ATF_REQUIRE_EQ(_ksem_destroy(ksem), 0);
89 intptr_t ksem;
92 ATF_REQUIRE_EQ(_ksem_open("/ksem_x", O_CREAT | O_EXCL, 0644, 0, &ksem),
94 ATF_REQUIRE(_ksem_destroy(ksem) == -1 && errno == EINVAL);
95 ATF_REQUIRE_EQ(_ksem_close(ksem), 0);
111 intptr_t ksem, ksem1;
115 ATF_REQUIRE_EQ(_ksem_open("/ksem_b", O_CREAT | O_EXCL, 0644, 0, &ksem),
119 ATF_REQUIRE(_ksem_getvalue(ksem, &val) == 0 && val == 0);
127 ATF_REQUIRE_EQ(_ksem_close(ksem), 0);