/src/tests/lib/semaphore/ |
sem.c | 242 #define SEM2 "/justsem" 245 sem_t *sem1, *sem2; local in function:ATF_TC_BODY 261 sem2 = sem_open(SEM2, O_CREAT, 0444, 0); 262 if (sem2 == NULL) 266 ATF_REQUIRE_EQ(sem_trywait(sem2), -1); 271 sem_unlink(SEM2); 272 ATF_REQUIRE_EQ(sem_post(sem2), 0); 273 ATF_REQUIRE_EQ(sem_trywait(sem2), 0); 274 ATF_REQUIRE_EQ(sem_trywait(sem2), -1) [all...] |
/src/tests/lib/librt/ |
t_sem.c | 324 sem_t *sem, *sem2, *sem3; local in function:ATF_TC_BODY 328 sem2 = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0); 329 ATF_REQUIRE(sem2 == SEM_FAILED && errno == EEXIST);
|
/src/tests/modules/ |
t_kcov.c | 182 static sem_t sem1, sem2; variable in typeref:typename:sem_t 201 sem_wait(&sem2); 213 sem_init(&sem2, 0, 0); 218 sem_post(&sem2);
|