Deleted Added
full compact
sysv_sem.c (2729) sysv_sem.c (2836)
1/* $Id$ */
1/* $Id: sysv_sem.c,v 1.1 1994/09/13 14:47:00 dfr 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 */

--- 6 unchanged lines hidden (view full) ---

16#include <sys/malloc.h>
17
18static int semctl(), semget(), semop(), semconfig();
19int (*semcalls[])() = { semctl, semget, semop, semconfig };
20int semtot = 0;
21
22static struct proc *semlock_holder = NULL;
23
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 */

--- 6 unchanged lines hidden (view full) ---

16#include <sys/malloc.h>
17
18static int semctl(), semget(), semop(), semconfig();
19int (*semcalls[])() = { semctl, semget, semop, semconfig };
20int semtot = 0;
21
22static struct proc *semlock_holder = NULL;
23
24int
24void
25seminit()
26{
27 register int i;
28 vm_offset_t whocares1, whocares2;
29
30 if (sema == NULL)
31 panic("sema is NULL");
32 if (semu == NULL)

--- 144 unchanged lines hidden (view full) ---

177 /*
178 * The second pass failed even though we freed
179 * something after the first pass!
180 * This is IMPOSSIBLE!
181 */
182 panic("semu_alloc - second attempt failed");
183 }
184 }
25seminit()
26{
27 register int i;
28 vm_offset_t whocares1, whocares2;
29
30 if (sema == NULL)
31 panic("sema is NULL");
32 if (semu == NULL)

--- 144 unchanged lines hidden (view full) ---

177 /*
178 * The second pass failed even though we freed
179 * something after the first pass!
180 * This is IMPOSSIBLE!
181 */
182 panic("semu_alloc - second attempt failed");
183 }
184 }
185 return (NULL);
185}
186
187/*
188 * Adjust a particular entry for a particular proc
189 */
190
191int
192semundo_adjust(p, supptr, semid, semnum, adjval)

--- 635 unchanged lines hidden (view full) ---

828 *retval = 0;
829 return(0);
830}
831
832/*
833 * Go through the undo structures for this process and apply the adjustments to
834 * semaphores.
835 */
186}
187
188/*
189 * Adjust a particular entry for a particular proc
190 */
191
192int
193semundo_adjust(p, supptr, semid, semnum, adjval)

--- 635 unchanged lines hidden (view full) ---

829 *retval = 0;
830 return(0);
831}
832
833/*
834 * Go through the undo structures for this process and apply the adjustments to
835 * semaphores.
836 */
837void
836semexit(p)
837 struct proc *p;
838{
839 register struct sem_undo *suptr;
840 register struct sem_undo **supptr;
841 int did_something;
842
843 /*

--- 96 unchanged lines hidden ---
838semexit(p)
839 struct proc *p;
840{
841 register struct sem_undo *suptr;
842 register struct sem_undo **supptr;
843 int did_something;
844
845 /*

--- 96 unchanged lines hidden ---