summaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authordaniel <daniel@planethacker.net>2025-05-07 09:45:50 -0700
committerdaniel <daniel@planethacker.net>2025-05-07 09:45:50 -0700
commiteeac69b2168c5a65f9608771006ccc43033cbd23 (patch)
tree1dc44a6016b607085a691768810d551045df9901 /shm.h
initial commitHEADmain
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/shm.h b/shm.h
new file mode 100644
index 0000000..1b759a5
--- /dev/null
+++ b/shm.h
@@ -0,0 +1,18 @@
+/*
+ * LOKI
+ *
+ * shm header file
+ *
+ * 1996/7 Guild Corporation Productions [daemon9]
+ */
+
+#define SHM_KEY 242 /* Shared memory key */
+#define SEM_KEY 424 /* Semaphore key */
+#define SHM_PRM S_IRUSR|S_IWUSR /* Shared Memory Permissions */
+#define SET_SIZE 1
+
+void prep_shm(); /* prepare shared mem segment */
+void locks(); /* lock shared memory */
+void ulocks(); /* unlock shared memory */
+void dump_shm(); /* release shared memory */
+