Home
last modified time | relevance | path

Searched refs:semops (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/ipc/semaphore/
Dsem01.c52 struct sembuf semops; in semup() local
53 semops.sem_num = 0; in semup()
54 semops.sem_op = 1; in semup()
55 semops.sem_flg = SEM_UNDO; in semup()
56 if (semop(semid, &semops, 1) == -1) { in semup()
66 struct sembuf semops; in semdown() local
67 semops.sem_num = 0; in semdown()
68 semops.sem_op = -1; in semdown()
69 semops.sem_flg = SEM_UNDO; in semdown()
70 if (semop(semid, &semops, 1) == -1) { in semdown()
/external/ltp/testcases/kernel/syscalls/ipc/semctl/
Dsemctl06.c77 static struct sembuf semops[NSEMS]; variable
181 semops[i].sem_num = i; in dotest()
182 semops[i].sem_op = maxsemvals[i]; in dotest()
183 semops[i].sem_flg = SEM_UNDO; in dotest()
185 if (semop(id, semops, NSEMS) < 0) { in dotest()
264 semops[j].sem_num = j; in dosemas()
265 semops[j].sem_flg = SEM_UNDO; in dosemas()
268 semops[j].sem_op = in dosemas()
271 } while (semops[j].sem_op == 0); in dosemas()
273 if (semop(id, semops, NSEMS) < 0) { in dosemas()
[all …]