2 * This file has been modified for the cdrkit suite.
4 * The behaviour and appearence of the program code below can differ to a major
5 * extent from the version distributed by the original author(s).
7 * For details, see Changelog file distributed with the cdrkit package. If you
8 * received this file from another source then ask the distributing person for
9 * a log of modifications.
13 /* @(#)semshm.h 1.3 03/08/29 Copyright 1998,1999 Heiko Eissfeldt */
16 extern char *start_of_shm;
17 extern char *end_of_shm;
23 #if defined (HAVE_SEMGET) && defined(USE_SEMAPHORES)
26 #define sem_id 42 /* nearly any other number would do it too */
27 void init_pipes(void);
28 void init_parent(void);
29 void init_child(void);
34 /* the name of the shared memory mapping for the FIFO under BeOS. */
35 #define AREA_NAME "shmfifo"
39 int semrequest(int semid, int semnum);
40 int semrelease(int semid, int semnum, int amount);
41 int flush_buffers(void);
42 void * request_shm_sem(unsigned amount_of_sh_mem, unsigned char **pointer);