#ifndef _SHAREDMEM_H
#define _SHAREDMEM_H
#include <sys/types.h>
#include <stddef.h>
#ifndef KEY_T_DEFINED
#define KEY_T_DEFINED
#endif
typedef struct {
int id;
void *addr;
int create_errno;
size_t size;
int count;
int created;
int key;
char name[64];
} shm_t;
#ifdef __cplusplus
extern "C" {
#endif
extern shm_t *rcs_shm_open(key_t key, size_t size, int oflag,
...);
extern int rcs_shm_close(shm_t * shm);
extern int rcs_shm_delete(shm_t * shm);
extern int rcs_shm_nattch(shm_t * shm);
#ifdef __cplusplus
}
#endif
#endif