summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorSami Kerola2012-10-21 18:40:28 +0200
committerKarel Zak2012-11-23 14:58:21 +0100
commite5995acda2d3d55ba4d926741ddd789c9776f1e7 (patch)
treed1866f90239ef20e2afbf1aef18e6f92ce4b8c2d /include/pathnames.h
parentlib/path: add path_read_u64() (diff)
downloadkernel-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.h1
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 */