diff options
author | Sami Kerola | 2012-10-21 18:40:28 +0200 |
---|---|---|
committer | Karel Zak | 2012-11-23 14:58:21 +0100 |
commit | e5995acda2d3d55ba4d926741ddd789c9776f1e7 (patch) | |
tree | d1866f90239ef20e2afbf1aef18e6f92ce4b8c2d /include/pathnames.h | |
parent | lib/path: add path_read_u64() (diff) | |
download | kernel-qcow2-util-linux-e5995acda2d3d55ba4d926741ddd789c9776f1e7.tar.gz kernel-qcow2-util-linux-e5995acda2d3d55ba4d926741ddd789c9776f1e7.tar.xz kernel-qcow2-util-linux-e5995acda2d3d55ba4d926741ddd789c9776f1e7.zip |
ipcs: determine ipc limits from /proc
Some of the limit values are not dynamic. Like in kernel these values
are #defined.
[kzak@redhat.com: - use better names for functions,
- add ipcutils.{c,h}
- read also shmmax from /proc]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r-- | include/pathnames.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h index cc60baf96..0f9f30c04 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -161,6 +161,7 @@ #define _PATH_PROC_IPC_MSGMNI "/proc/sys/kernel/msgmni" #define _PATH_PROC_IPC_SEM "/proc/sys/kernel/sem" #define _PATH_PROC_IPC_SHMALL "/proc/sys/kernel/shmall" +#define _PATH_PROC_IPC_SHMMAX "/proc/sys/kernel/shmmax" #define _PATH_PROC_IPC_SHMMNI "/proc/sys/kernel/shmmni" /* kernel command line */ |