diff options
Diffstat (limited to 'include/uapi/linux/shm.h')
-rw-r--r-- | include/uapi/linux/shm.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/uapi/linux/shm.h b/include/uapi/linux/shm.h index ec36fa1a83a4..c99cef0ed7ab 100644 --- a/include/uapi/linux/shm.h +++ b/include/uapi/linux/shm.h @@ -1,11 +1,9 @@ -#ifndef _UAPI_LINUX_SHM_H_ -#define _UAPI_LINUX_SHM_H_ +#ifndef _LINUX_SHM_H_ +#define _LINUX_SHM_H_ #include <linux/ipc.h> #include <linux/errno.h> -#ifndef __KERNEL__ #include <unistd.h> -#endif /* * SHMMAX, SHMMNI and SHMALL are upper limits are defaults which can @@ -15,9 +13,7 @@ #define SHMMAX 0x2000000 /* max shared seg size (bytes) */ #define SHMMIN 1 /* min shared seg size (bytes) */ #define SHMMNI 4096 /* max num of segs system wide */ -#ifndef __KERNEL__ #define SHMALL (SHMMAX/getpagesize()*(SHMMNI/16)) -#endif #define SHMSEG SHMMNI /* max shared segs per process */ @@ -76,4 +72,4 @@ struct shm_info { }; -#endif /* _UAPI_LINUX_SHM_H_ */ +#endif /* _LINUX_SHM_H_ */ |