Skip to content
Permalink
1139b72d5e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (15 sloc) 423 Bytes
#ifndef SHMEM_UTIL_H
#define SHMEM_UTIL_H
#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <unistd.h>
#include <sys/shm.h>
#include <stdio.h>
#include <errno.h>
#include <syslog.h>
#define SVSHM_MODE (SHM_R | SHM_W | SHM_R>>3 | SHM_R>>6)
#define FLAGS (SVSHM_MODE)
#define AT_FLAGS 0
int shmem_init(char *key_file, int proj_id, size_t size, void **memory);
int shmem_destroy(char *key_file, int proj_id);
#endif