Searched refs:sem_a (Results 1 – 2 of 2) sorted by relevance
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_sem.c | 158 sem_t sem_a, sem_b; in ATF_TC_BODY() local 186 SEM_REQUIRE(sem_init(&sem_a, 0, 0)); in ATF_TC_BODY() 191 entry, (void *) &sem_a)); in ATF_TC_BODY() 197 SEM_REQUIRE(sem_post(&sem_a)); in ATF_TC_BODY() 205 SEM_REQUIRE(sem_destroy(&sem_a)); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/librt/ |
H A D | t_sem.c | 156 sem_t *sem_a; in ATF_TC_BODY() local 164 sem_a = sem_open("/sem_a", O_CREAT | O_EXCL, 0644, 0); in ATF_TC_BODY() 165 ATF_REQUIRE(sem_a != SEM_FAILED); in ATF_TC_BODY() 175 ATF_REQUIRE_MSG(sem_wait(sem_a) == 0, in ATF_TC_BODY() 188 ATF_REQUIRE_EQ(sem_post(sem_a), 0); in ATF_TC_BODY() 198 ATF_REQUIRE_EQ(sem_close(sem_a), 0); in ATF_TC_BODY()
|