sem.h (9444) | sem.h (9759) |
---|---|
1/* $Id: sem.h,v 1.3 1995/03/28 07:57:35 bde Exp $ */ | 1/* $Id: sem.h,v 1.4 1995/07/08 16:36:28 joerg Exp $ */ |
2/* $NetBSD: sem.h,v 1.5 1994/06/29 06:45:15 cgd Exp $ */ 3 4/* 5 * SVID compatible sem.h file 6 * 7 * Author: Daniel Boulet 8 */ 9 --- 128 unchanged lines hidden (view full) --- 138#endif 139#ifndef SEMOPM 140#define SEMOPM 100 /* max # of operations per semop call */ 141#endif 142 143/* actual size of an undo structure */ 144#define SEMUSZ (sizeof(struct sem_undo)+sizeof(struct undo)*SEMUME) 145 | 2/* $NetBSD: sem.h,v 1.5 1994/06/29 06:45:15 cgd Exp $ */ 3 4/* 5 * SVID compatible sem.h file 6 * 7 * Author: Daniel Boulet 8 */ 9 --- 128 unchanged lines hidden (view full) --- 138#endif 139#ifndef SEMOPM 140#define SEMOPM 100 /* max # of operations per semop call */ 141#endif 142 143/* actual size of an undo structure */ 144#define SEMUSZ (sizeof(struct sem_undo)+sizeof(struct undo)*SEMUME) 145 |
146/* 147 * Structures allocated in machdep.c 148 */ 149struct semid_ds *sema; /* semaphore id pool */ 150struct sem *sem; /* semaphore pool */ 151struct map *semmap; /* semaphore allocation map */ 152struct sem_undo *semu_list; /* list of active undo structures */ 153int *semu; /* undo structure pool */ | 146extern struct semid_ds *sema; /* semaphore id pool */ 147extern struct sem *sem; /* semaphore pool */ 148extern struct map *semmap; /* semaphore allocation map */ 149extern struct sem_undo *semu_list; /* list of active undo structures */ 150extern int *semu; /* undo structure pool */ |
154 155/* 156 * Macro to find a particular sem_undo vector 157 */ 158#define SEMU(ix) ((struct sem_undo *)(((long)semu)+ix * SEMUSZ)) 159 160/* 161 * Parameters to the semconfig system call --- 21 unchanged lines hidden --- | 151 152/* 153 * Macro to find a particular sem_undo vector 154 */ 155#define SEMU(ix) ((struct sem_undo *)(((long)semu)+ix * SEMUSZ)) 156 157/* 158 * Parameters to the semconfig system call --- 21 unchanged lines hidden --- |