#include "log.h"
-static void *init_shm_(int key, size_t size, int fl1, int fl2)
-{
+static void *init_shm_(int key, size_t size, int fl1, int fl2) {
int shmid;
void *shmhnd;
}
// Called by plugin to create the shared memory segment:
-void *init_shmput(int key, size_t size)
-{
+void *init_shmput(int key, size_t size) {
return init_shm_( key, size, IPC_CREAT | IPC_EXCL | 0600, 0 );
}
return init_shm_( key, size, 0, SHM_RDONLY );
}
-int release_shm(int key, void *p)
-{
+int release_shm(int key, void *p) {
int shmid;
shmid = shmget(key, 0, 0);