command.c: cast members of struct timeval to long unsigned
[paraslash.git] / ipc.h
1 /** \file ipc.h inter process communication and shared memory routines */
2
3 enum shm_attach_mode {ATTACH_RO, ATTACH_RW};
4
5 int mutex_new(void);
6 int mutex_destroy(int id);
7 void mutex_lock(int id);
8 void mutex_unlock(int id);
9 int shm_new(size_t size);
10 int shm_attach(int id, enum shm_attach_mode mode, void **result);
11 int shm_detach(void *addr);
12 int shm_destroy(int id);