diff options
author | Sami Kerola | 2012-10-21 18:39:36 +0200 |
---|---|---|
committer | Karel Zak | 2012-11-23 14:47:14 +0100 |
commit | d2b5c8c4fbfe60218488f93c001dbfe23cdb6137 (patch) | |
tree | 07dff64a0920104b7918d52087cfb37f14fb7773 /include/pathnames.h | |
parent | su: log failed logins to btmp (diff) | |
download | kernel-qcow2-util-linux-d2b5c8c4fbfe60218488f93c001dbfe23cdb6137.tar.gz kernel-qcow2-util-linux-d2b5c8c4fbfe60218488f93c001dbfe23cdb6137.tar.xz kernel-qcow2-util-linux-d2b5c8c4fbfe60218488f93c001dbfe23cdb6137.zip |
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 <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r-- | include/pathnames.h | 11 |
1 files changed, 11 insertions, 0 deletions
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" |