Searched refs:sem_undo (Results 1 - 2 of 2) sorted by relevance

/xnu-2782.1.97/bsd/sys/
H A Dsem_internal.h156 struct sem_undo { struct
216 * #define SEMUSZ SEM_ALIGN(offsetof(struct sem_undo, un_ent[SEMUME]))
218 #define SEMUSZ sizeof(struct sem_undo)
222 /* This is now a struct sem_undo with the new memory allocation
225 extern struct sem_undo *semu; /* undo structure pool */
228 * Macro to find a particular sem_undo vector
233 * #define SEMU(ix) ((struct sem_undo *)(((intptr_t)semu)+ix * seminfo.semusz))
238 * #define SEMU(ix) ((struct sem_undo *)(((intptr_t)semu)+ix * SEMUSZ))
244 * Process sem_undo vectors at proc exit.
/xnu-2782.1.97/bsd/kern/
H A Dsysv_sem.c133 struct sem_undo *semu = NULL; /* semaphore undo pool */
269 register struct sem_undo *newSemu;
287 MALLOC(newSemu, struct sem_undo *, sizeof (struct sem_undo) * newSize,
466 * Allocate a new sem_undo structure for a process
476 register struct sem_undo *suptr;
553 register struct sem_undo *suptr;
559 * Look for and remember the sem_undo if the caller doesn't provide it
640 struct sem_undo *suptr;
1327 * Oh-Oh! We ran out of either sem_undo'
[all...]

Completed in 23 milliseconds