summaryrefslogtreecommitdiff
path: root/sysdeps/linux/shm_limits.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-12-11 14:33:18 +0000
committerMartin Baulig <martin@src.gnome.org>1999-12-11 14:33:18 +0000
commit18af9297eae8bbb9823851673cfc83285425f40d (patch)
tree19fc56f78c3db3c19b5f4b065dd8450787712ab7 /sysdeps/linux/shm_limits.c
parentc138d87c30fee9fee21ec8a8a2591f37a1402a6e (diff)
downloadlibgtop-18af9297eae8bbb9823851673cfc83285425f40d.tar.gz
This is a larger source-incompatible commit, but it'll make it easier to
1999-12-11 Martin Baulig <martin@home-of-linux.org> This is a larger source-incompatible commit, but it'll make it easier to write automatically generated code (for instance for scripting languages). Renamed all constants for the flags field to match the field names from the features.def and structures.def where this was not already the case. * include/glibtop/cpu.h: s/GLIBTOP_XCPU_/GLIBTOP_CPU_XCPU_/g. * include/glibtop/shm_limits.h: s/GLIBTOP_IPC_/GLIBTOP_SHM_LIMITS_/g. * include/glibtop/sem_limits.h: s/GLIBTOP_IPC_/GLIBTOP_SEM_LIMITS_/g. * include/glibtop/msg_limits.h: s/GLIBTOP_IPC_/GLIBTOP_MSG_LIMITS_/g.
Diffstat (limited to 'sysdeps/linux/shm_limits.c')
-rw-r--r--sysdeps/linux/shm_limits.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/linux/shm_limits.c b/sysdeps/linux/shm_limits.c
index 2845fc16..a59eadef 100644
--- a/sysdeps/linux/shm_limits.c
+++ b/sysdeps/linux/shm_limits.c
@@ -27,9 +27,9 @@
#include <sys/shm.h>
static unsigned long _glibtop_sysdeps_shm_limits =
-(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
-(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG) +
-(1L << GLIBTOP_IPC_SHMALL);
+(1L << GLIBTOP_SHM_LIMITS_SHMMAX) + (1L << GLIBTOP_SHM_LIMITS_SHMMIN) +
+(1L << GLIBTOP_SHM_LIMITS_SHMMNI) + (1L << GLIBTOP_SHM_LIMITS_SHMSEG) +
+(1L << GLIBTOP_SHM_LIMITS_SHMALL);
/* Init function. */