summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/sys/shm.h
blob: c27f5ddcf8bdf8fa87bdc0e774944b61c0ffc358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _SYS_SHM_H
#define _SYS_SHM_H

#include <linux/shm.h>
#include <sys/ipc.h>
#include <asm/page.h>

#ifndef PAGE_SIZE
#define PAGE_SIZE getpagesize()
#endif

extern int shmget(key_t key, int size, int shmflg) __THROW;
extern void *shmat(int shmid, const void *shmaddr, int shmflg) __THROW;
extern int shmdt (const void *shmaddr) __THROW;
extern int shmctl(int shmid, int cmd, struct shmid_ds *buf) __THROW;

#endif