summaryrefslogtreecommitdiff
path: root/icedax/semshm.h
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-12-31 05:04:42 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-12-31 05:04:42 +0400
commit71dc8760ff4de5f365330d1bc571d934deb54af9 (patch)
tree7346d42a282562a3937d82307012b5857d642ce6 /icedax/semshm.h
downloadcdrkit-upstream.tar.gz
Imported Upstream version 1.1.11upstream/1.1.11upstream
Diffstat (limited to 'icedax/semshm.h')
-rw-r--r--icedax/semshm.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/icedax/semshm.h b/icedax/semshm.h
new file mode 100644
index 0000000..2007f82
--- /dev/null
+++ b/icedax/semshm.h
@@ -0,0 +1,43 @@
+/*
+ * This file has been modified for the cdrkit suite.
+ *
+ * The behaviour and appearence of the program code below can differ to a major
+ * extent from the version distributed by the original author(s).
+ *
+ * For details, see Changelog file distributed with the cdrkit package. If you
+ * received this file from another source then ask the distributing person for
+ * a log of modifications.
+ *
+ */
+
+/* @(#)semshm.h 1.3 03/08/29 Copyright 1998,1999 Heiko Eissfeldt */
+#undef DEBUG_SHM
+#ifdef DEBUG_SHM
+extern char *start_of_shm;
+extern char *end_of_shm;
+#endif
+
+#define FREE_SEM 0
+#define DEF_SEM 1
+
+#if defined (HAVE_SEMGET) && defined(USE_SEMAPHORES)
+extern int sem_id;
+#else
+#define sem_id 42 /* nearly any other number would do it too */
+void init_pipes(void);
+void init_parent(void);
+void init_child(void);
+#endif
+
+
+#ifdef HAVE_AREAS
+/* the name of the shared memory mapping for the FIFO under BeOS. */
+#define AREA_NAME "shmfifo"
+#endif
+
+void free_sem(void);
+int semrequest(int semid, int semnum);
+int semrelease(int semid, int semnum, int amount);
+int flush_buffers(void);
+void * request_shm_sem(unsigned amount_of_sh_mem, unsigned char **pointer);
+