Permalink
Cannot retrieve contributors at this time
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?
pvfs2-osd/src/apps/ucache/shmem_util.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (15 sloc)
423 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |