server: Fix brown paper bag bug in generic_com_on().
[paraslash.git] / ipc.h
diff --git a/ipc.h b/ipc.h
index 733cba6d83fd4b01e13ccf720013f56f9c2a3b3c..c44371045cdfb7a4313068a5e91bfb22fd366a84 100644 (file)
--- a/ipc.h
+++ b/ipc.h
@@ -1,5 +1,6 @@
 /** \file ipc.h inter process communication and shared memory routines */
 
 /** \file ipc.h inter process communication and shared memory routines */
 
+/** possible values for shm_attach() */
 enum shm_attach_mode {ATTACH_RO, ATTACH_RW};
 
 int mutex_new(void);
 enum shm_attach_mode {ATTACH_RO, ATTACH_RW};
 
 int mutex_new(void);
@@ -10,3 +11,5 @@ int shm_new(size_t size);
 int shm_attach(int id, enum shm_attach_mode mode, void **result);
 int shm_detach(void *addr);
 int shm_destroy(int id);
 int shm_attach(int id, enum shm_attach_mode mode, void **result);
 int shm_detach(void *addr);
 int shm_destroy(int id);
+int shm_size(int id, size_t *result);
+size_t shm_get_shmmax(void);