X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ipc.h;h=c44371045cdfb7a4313068a5e91bfb22fd366a84;hp=25c56d26fbb17c9a2fa43c99c21844eb962ddf5c;hb=0b8b2469b5d2b81ff928bddd10d4ac3b819b75f8;hpb=730cb7dd464355316ee30846a3d2e91f22b4f7e1 diff --git a/ipc.h b/ipc.h index 25c56d26..c4437104 100644 --- a/ipc.h +++ b/ipc.h @@ -1,7 +1,15 @@ /** \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); +int mutex_destroy(int id); void mutex_lock(int id); void mutex_unlock(int id); +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_size(int id, size_t *result); +size_t shm_get_shmmax(void);