1/* $Id: sysv_sem.c,v 1.5 1995/05/30 08:06:02 rgrimes Exp $ */
| 1/* $Id: sysv_sem.c,v 1.6 1995/07/29 11:40:14 bde Exp $ */
|
2 3/* 4 * Implementation of SVID semaphores 5 * 6 * Author: Daniel Boulet 7 * 8 * This software is provided ``AS IS'' without any warranties of any kind. 9 */ 10 11#include <sys/param.h> 12#include <sys/systm.h> 13#include <sys/kernel.h> 14#include <sys/proc.h> 15#include <sys/sem.h> 16#include <sys/malloc.h> 17
| 2 3/* 4 * Implementation of SVID semaphores 5 * 6 * Author: Daniel Boulet 7 * 8 * This software is provided ``AS IS'' without any warranties of any kind. 9 */ 10 11#include <sys/param.h> 12#include <sys/systm.h> 13#include <sys/kernel.h> 14#include <sys/proc.h> 15#include <sys/sem.h> 16#include <sys/malloc.h> 17
|
| 18/* 19 * System initialization 20 */ 21 22extern void seminit(); /* should be static*/ 23SYSINIT(sysv_sem, SI_SUB_SYSV_SEM, SI_ORDER_FIRST, seminit, NULL) 24
|
18static int semctl(), semget(), semop(), semconfig(); 19int (*semcalls[])() = { semctl, semget, semop, semconfig }; 20int semtot = 0; 21struct semid_ds *sema; /* semaphore id pool */ 22struct sem *sem; /* semaphore pool */ 23struct map *semmap; /* semaphore allocation map */ 24struct sem_undo *semu_list; /* list of active undo structures */ 25int *semu; /* undo structure pool */
--- 920 unchanged lines hidden --- | 25static int semctl(), semget(), semop(), semconfig(); 26int (*semcalls[])() = { semctl, semget, semop, semconfig }; 27int semtot = 0; 28struct semid_ds *sema; /* semaphore id pool */ 29struct sem *sem; /* semaphore pool */ 30struct map *semmap; /* semaphore allocation map */ 31struct sem_undo *semu_list; /* list of active undo structures */ 32int *semu; /* undo structure pool */
--- 920 unchanged lines hidden --- |