Deleted Added
full compact
sysv_sem.c (8876) sysv_sem.c (9759)
1/* $Id: sysv_sem.c,v 1.4 1994/10/06 21:06:32 davidg Exp $ */
1/* $Id: sysv_sem.c,v 1.5 1995/05/30 08:06:02 rgrimes 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
18static int semctl(), semget(), semop(), semconfig();
19int (*semcalls[])() = { semctl, semget, semop, semconfig };
20int semtot = 0;
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
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 */
21
22static struct proc *semlock_holder = NULL;
23
24void
25seminit()
26{
27 register int i;
28

--- 912 unchanged lines hidden ---
26
27static struct proc *semlock_holder = NULL;
28
29void
30seminit()
31{
32 register int i;
33

--- 912 unchanged lines hidden ---