From d2b5c8c4fbfe60218488f93c001dbfe23cdb6137 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 21 Oct 2012 17:39:36 +0100 Subject: ipcs: add /proc and /sys path definitions The necessary proc and sysfs files are tested to be present. When information files are missing the ipcs will use obsolted system calls, and data structures, as fallback. [kzak@redhat.com: - fix #define _PATH_PROC_IPC_MSG "/proc/sys/kernel/sem" typo] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- include/pathnames.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/pathnames.h') diff --git a/include/pathnames.h b/include/pathnames.h index a7f33fed5..cc60baf96 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -152,6 +152,17 @@ /* wdctl path */ #define _PATH_WATCHDOG_DEV "/dev/watchdog" +/* ipc paths */ +#define _PATH_PROC_SYSV_MSG "/proc/sysvipc/msg" +#define _PATH_PROC_SYSV_SEM "/proc/sysvipc/sem" +#define _PATH_PROC_SYSV_SHM "/proc/sysvipc/shm" +#define _PATH_PROC_IPC_MSGMAX "/proc/sys/kernel/msgmax" +#define _PATH_PROC_IPC_MSGMNB "/proc/sys/kernel/msgmnb" +#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_SHMMNI "/proc/sys/kernel/shmmni" + /* kernel command line */ #define _PATH_PROC_CMDLINE "/proc/cmdline" -- cgit v1.2.3-55-g7522