Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/ipc/semaphore/
Dsem01.c51 struct sembuf semops; in semup() local
52 semops.sem_num = 0; in semup()
53 semops.sem_op = 1; in semup()
54 semops.sem_flg = SEM_UNDO; in semup()
55 if (semop(semid, &semops, 1) == -1) { in semup()
65 struct sembuf semops; in semdown() local
66 semops.sem_num = 0; in semdown()
67 semops.sem_op = -1; in semdown()
68 semops.sem_flg = SEM_UNDO; in semdown()
69 if (semop(semid, &semops, 1) == -1) { in semdown()
/third_party/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 …]