Searched refs:semops (Results 1 – 2 of 2) sorted by relevance
52 struct sembuf semops; in semup() local53 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() local67 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()
77 static struct sembuf semops[NSEMS]; variable181 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 …]