Lines Matching defs:undo
35 * - undo adjustments at process exit are limited to 0..SEMVMX.
369 int undo = un->semadj[sop->sem_num] - sem_op;
371 * Exceeding the undo range is an error.
373 if (undo < (-SEMAEM - 1) || undo > SEMAEM)
391 goto undo;
399 undo:
585 q->undo, q->pid);
709 /* Free the existing undo structures for this semaphore set. */
1124 * here. We guarantee there is only one thread using this undo list,
1179 * find_alloc_undo - Lookup (and if not present create) undo array
1183 * The function looks up (and if not present creates) the undo structure.
1184 * The size of the undo structure depends on the size of the semaphore
1209 /* no undo structure around - allocate one. */
1218 /* step 2: allocate new undo structure */
1236 * step 4: check for races: did someone else allocate the undo struct?
1243 /* step 5: initialize & link new undo structure */
1361 * allocated an undo structure, it was invalidated by an RMID
1410 queue.undo = un;
1517 * add semadj values to semaphores, free undo structures.
1518 * undo structures are not freed when semaphore arrays are destroyed
1590 * - Some unices ignore the undo entirely