From: Sami Kerola Date: Sun, 21 Oct 2012 16:39:36 +0000 (+0100) Subject: ipcs: add /proc and /sys path definitions X-Git-Tag: v2.23-rc1~500 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2b5c8c4fbfe60218488f93c001dbfe23cdb6137;p=thirdparty%2Futil-linux.git 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 --- diff --git a/include/pathnames.h b/include/pathnames.h index a7f33fed59..cc60baf96d 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"