]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ipcs: add /proc and /sys path definitions
authorSami Kerola <kerolasa@iki.fi>
Sun, 21 Oct 2012 16:39:36 +0000 (17:39 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 23 Nov 2012 13:47:14 +0000 (14:47 +0100)
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 <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/pathnames.h

index a7f33fed592cc008ab17f187495c085f7be4a014..cc60baf96dd1aff861a1d1eebbb07c3443567afc 100644 (file)
 /* 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"