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.
This commit is contained in:
committed by
Martin Baulig
parent
c138d87c30
commit
18af9297ea
15
ChangeLog
15
ChangeLog
@@ -1,3 +1,18 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
1999-12-11 Martin Baulig <martin@home-of-linux.org>
|
1999-12-11 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
* features.def: Use `string' instead of `str' as type name.
|
* features.def: Use `string' instead of `str' as type name.
|
||||||
|
@@ -38,12 +38,12 @@ BEGIN_LIBGTOP_DECLS
|
|||||||
#define GLIBTOP_CPU_IDLE 4
|
#define GLIBTOP_CPU_IDLE 4
|
||||||
#define GLIBTOP_CPU_FREQUENCY 5
|
#define GLIBTOP_CPU_FREQUENCY 5
|
||||||
|
|
||||||
#define GLIBTOP_XCPU_TOTAL 6
|
#define GLIBTOP_CPU_XCPU_TOTAL 6
|
||||||
#define GLIBTOP_XCPU_USER 7
|
#define GLIBTOP_CPU_XCPU_USER 7
|
||||||
#define GLIBTOP_XCPU_NICE 8
|
#define GLIBTOP_CPU_XCPU_NICE 8
|
||||||
#define GLIBTOP_XCPU_SYS 9
|
#define GLIBTOP_CPU_XCPU_SYS 9
|
||||||
#define GLIBTOP_XCPU_IDLE 10
|
#define GLIBTOP_CPU_XCPU_IDLE 10
|
||||||
#define GLIBTOP_XCPU_FLAGS 11
|
#define GLIBTOP_CPU_XCPU_FLAGS 11
|
||||||
|
|
||||||
#define GLIBTOP_MAX_CPU 12
|
#define GLIBTOP_MAX_CPU 12
|
||||||
|
|
||||||
@@ -58,12 +58,12 @@ struct _glibtop_cpu
|
|||||||
sys, /* GLIBTOP_CPU_SYS */
|
sys, /* GLIBTOP_CPU_SYS */
|
||||||
idle, /* GLIBTOP_CPU_IDLE */
|
idle, /* GLIBTOP_CPU_IDLE */
|
||||||
frequency, /* GLIBTOP_CPU_FREQUENCY */
|
frequency, /* GLIBTOP_CPU_FREQUENCY */
|
||||||
xcpu_total [GLIBTOP_NCPU], /* GLIBTOP_XCPU_TOTAL */
|
xcpu_total [GLIBTOP_NCPU], /* GLIBTOP_CPU_XCPU_TOTAL */
|
||||||
xcpu_user [GLIBTOP_NCPU], /* GLIBTOP_XCPU_USER */
|
xcpu_user [GLIBTOP_NCPU], /* GLIBTOP_CPU_XCPU_USER */
|
||||||
xcpu_nice [GLIBTOP_NCPU], /* GLIBTOP_XCPU_NICE */
|
xcpu_nice [GLIBTOP_NCPU], /* GLIBTOP_CPU_XCPU_NICE */
|
||||||
xcpu_sys [GLIBTOP_NCPU], /* GLIBTOP_XCPU_SYS */
|
xcpu_sys [GLIBTOP_NCPU], /* GLIBTOP_CPU_XCPU_SYS */
|
||||||
xcpu_idle [GLIBTOP_NCPU], /* GLIBTOP_XCPU_IDLE */
|
xcpu_idle [GLIBTOP_NCPU], /* GLIBTOP_CPU_XCPU_IDLE */
|
||||||
xcpu_flags; /* GLIBTOP_XCPU_FLAGS */
|
xcpu_flags; /* GLIBTOP_CPU_XCPU_FLAGS */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define glibtop_get_cpu(cpu) glibtop_get_cpu_l(glibtop_global_server, cpu)
|
#define glibtop_get_cpu(cpu) glibtop_get_cpu_l(glibtop_global_server, cpu)
|
||||||
|
@@ -31,13 +31,13 @@
|
|||||||
|
|
||||||
BEGIN_LIBGTOP_DECLS
|
BEGIN_LIBGTOP_DECLS
|
||||||
|
|
||||||
#define GLIBTOP_IPC_MSGPOOL 0
|
#define GLIBTOP_MSG_LIMITS_MSGPOOL 0
|
||||||
#define GLIBTOP_IPC_MSGMAP 1
|
#define GLIBTOP_MSG_LIMITS_MSGMAP 1
|
||||||
#define GLIBTOP_IPC_MSGMAX 2
|
#define GLIBTOP_MSG_LIMITS_MSGMAX 2
|
||||||
#define GLIBTOP_IPC_MSGMNB 3
|
#define GLIBTOP_MSG_LIMITS_MSGMNB 3
|
||||||
#define GLIBTOP_IPC_MSGMNI 4
|
#define GLIBTOP_MSG_LIMITS_MSGMNI 4
|
||||||
#define GLIBTOP_IPC_MSGSSZ 5
|
#define GLIBTOP_MSG_LIMITS_MSGSSZ 5
|
||||||
#define GLIBTOP_IPC_MSGTQL 6
|
#define GLIBTOP_MSG_LIMITS_MSGTQL 6
|
||||||
|
|
||||||
#define GLIBTOP_MAX_MSG_LIMITS 7
|
#define GLIBTOP_MAX_MSG_LIMITS 7
|
||||||
|
|
||||||
@@ -46,13 +46,13 @@ typedef struct _glibtop_msg_limits glibtop_msg_limits;
|
|||||||
struct _glibtop_msg_limits
|
struct _glibtop_msg_limits
|
||||||
{
|
{
|
||||||
u_int64_t flags,
|
u_int64_t flags,
|
||||||
msgpool, /* GLIBTOP_IPC_MSGPOOL */
|
msgpool, /* GLIBTOP_MSG_LIMITS_MSGPOOL */
|
||||||
msgmap, /* GLIBTOP_IPC_MSGMAP */
|
msgmap, /* GLIBTOP_MSG_LIMITS_MSGMAP */
|
||||||
msgmax, /* GLIBTOP_IPC_MSGMAX */
|
msgmax, /* GLIBTOP_MSG_LIMITS_MSGMAX */
|
||||||
msgmnb, /* GLIBTOP_IPC_MSGMNB */
|
msgmnb, /* GLIBTOP_MSG_LIMITS_MSGMNB */
|
||||||
msgmni, /* GLIBTOP_IPC_MSGMNI */
|
msgmni, /* GLIBTOP_MSG_LIMITS_MSGMNI */
|
||||||
msgssz, /* GLIBTOP_IPC_MSGSSZ */
|
msgssz, /* GLIBTOP_MSG_LIMITS_MSGSSZ */
|
||||||
msgtql; /* GLIBTOP_IPC_MSGTQL */
|
msgtql; /* GLIBTOP_MSG_LIMITS_MSGTQL */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define glibtop_get_msg_limits(msg) glibtop_get_msg_limits_l(glibtop_global_server, msg)
|
#define glibtop_get_msg_limits(msg) glibtop_get_msg_limits_l(glibtop_global_server, msg)
|
||||||
|
@@ -31,16 +31,16 @@
|
|||||||
|
|
||||||
BEGIN_LIBGTOP_DECLS
|
BEGIN_LIBGTOP_DECLS
|
||||||
|
|
||||||
#define GLIBTOP_IPC_SEMMAP 0
|
#define GLIBTOP_SEM_LIMITS_SEMMAP 0
|
||||||
#define GLIBTOP_IPC_SEMMNI 1
|
#define GLIBTOP_SEM_LIMITS_SEMMNI 1
|
||||||
#define GLIBTOP_IPC_SEMMNS 2
|
#define GLIBTOP_SEM_LIMITS_SEMMNS 2
|
||||||
#define GLIBTOP_IPC_SEMMNU 3
|
#define GLIBTOP_SEM_LIMITS_SEMMNU 3
|
||||||
#define GLIBTOP_IPC_SEMMSL 4
|
#define GLIBTOP_SEM_LIMITS_SEMMSL 4
|
||||||
#define GLIBTOP_IPC_SEMOPM 5
|
#define GLIBTOP_SEM_LIMITS_SEMOPM 5
|
||||||
#define GLIBTOP_IPC_SEMUME 6
|
#define GLIBTOP_SEM_LIMITS_SEMUME 6
|
||||||
#define GLIBTOP_IPC_SEMUSZ 7
|
#define GLIBTOP_SEM_LIMITS_SEMUSZ 7
|
||||||
#define GLIBTOP_IPC_SEMVMX 8
|
#define GLIBTOP_SEM_LIMITS_SEMVMX 8
|
||||||
#define GLIBTOP_IPC_SEMAEM 9
|
#define GLIBTOP_SEM_LIMITS_SEMAEM 9
|
||||||
|
|
||||||
#define GLIBTOP_MAX_SEM_LIMITS 10
|
#define GLIBTOP_MAX_SEM_LIMITS 10
|
||||||
|
|
||||||
@@ -49,16 +49,16 @@ typedef struct _glibtop_sem_limits glibtop_sem_limits;
|
|||||||
struct _glibtop_sem_limits
|
struct _glibtop_sem_limits
|
||||||
{
|
{
|
||||||
u_int64_t flags,
|
u_int64_t flags,
|
||||||
semmap, /* GLIBTOP_IPC_SEMMAP */
|
semmap, /* GLIBTOP_SEM_LIMITS_SEMMAP */
|
||||||
semmni, /* GLIBTOP_IPC_SEMMNI */
|
semmni, /* GLIBTOP_SEM_LIMITS_SEMMNI */
|
||||||
semmns, /* GLIBTOP_IPC_SEMMNS */
|
semmns, /* GLIBTOP_SEM_LIMITS_SEMMNS */
|
||||||
semmnu, /* GLIBTOP_IPC_SEMMNU */
|
semmnu, /* GLIBTOP_SEM_LIMITS_SEMMNU */
|
||||||
semmsl, /* GLIBTOP_IPC_SEMMSL */
|
semmsl, /* GLIBTOP_SEM_LIMITS_SEMMSL */
|
||||||
semopm, /* GLIBTOP_IPC_SEMOPM */
|
semopm, /* GLIBTOP_SEM_LIMITS_SEMOPM */
|
||||||
semume, /* GLIBTOP_IPC_SEMUME */
|
semume, /* GLIBTOP_SEM_LIMITS_SEMUME */
|
||||||
semusz, /* GLIBTOP_IPC_SEMUSZ */
|
semusz, /* GLIBTOP_SEM_LIMITS_SEMUSZ */
|
||||||
semvmx, /* GLIBTOP_IPC_SEMVMX */
|
semvmx, /* GLIBTOP_SEM_LIMITS_SEMVMX */
|
||||||
semaem; /* GLIBTOP_IPC_SEMAEM */
|
semaem; /* GLIBTOP_SEM_LIMITS_SEMAEM */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define glibtop_get_sem_limits(sem) glibtop_get_sem_limits_l(glibtop_global_server, sem)
|
#define glibtop_get_sem_limits(sem) glibtop_get_sem_limits_l(glibtop_global_server, sem)
|
||||||
|
@@ -31,11 +31,11 @@
|
|||||||
|
|
||||||
BEGIN_LIBGTOP_DECLS
|
BEGIN_LIBGTOP_DECLS
|
||||||
|
|
||||||
#define GLIBTOP_IPC_SHMMAX 0
|
#define GLIBTOP_SHM_LIMITS_SHMMAX 0
|
||||||
#define GLIBTOP_IPC_SHMMIN 1
|
#define GLIBTOP_SHM_LIMITS_SHMMIN 1
|
||||||
#define GLIBTOP_IPC_SHMMNI 2
|
#define GLIBTOP_SHM_LIMITS_SHMMNI 2
|
||||||
#define GLIBTOP_IPC_SHMSEG 3
|
#define GLIBTOP_SHM_LIMITS_SHMSEG 3
|
||||||
#define GLIBTOP_IPC_SHMALL 4
|
#define GLIBTOP_SHM_LIMITS_SHMALL 4
|
||||||
|
|
||||||
#define GLIBTOP_MAX_SHM_LIMITS 5
|
#define GLIBTOP_MAX_SHM_LIMITS 5
|
||||||
|
|
||||||
@@ -44,11 +44,11 @@ typedef struct _glibtop_shm_limits glibtop_shm_limits;
|
|||||||
struct _glibtop_shm_limits
|
struct _glibtop_shm_limits
|
||||||
{
|
{
|
||||||
u_int64_t flags,
|
u_int64_t flags,
|
||||||
shmmax, /* GLIBTOP_IPC_SHMMAX */
|
shmmax, /* GLIBTOP_SHM_LIMITS_SHMMAX */
|
||||||
shmmin, /* GLIBTOP_IPC_SHMMIN */
|
shmmin, /* GLIBTOP_SHM_LIMITS_SHMMIN */
|
||||||
shmmni, /* GLIBTOP_IPC_SHMMNI */
|
shmmni, /* GLIBTOP_SHM_LIMITS_SHMMNI */
|
||||||
shmseg, /* GLIBTOP_IPC_SHMSEG */
|
shmseg, /* GLIBTOP_SHM_LIMITS_SHMSEG */
|
||||||
shmall; /* GLIBTOP_IPC_SHMALL */
|
shmall; /* GLIBTOP_SHM_LIMITS_SHMALL */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define glibtop_get_shm_limits(shm) glibtop_get_shm_limits_l(glibtop_global_server, shm)
|
#define glibtop_get_shm_limits(shm) glibtop_get_shm_limits_l(glibtop_global_server, shm)
|
||||||
|
@@ -60,9 +60,9 @@ glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
|
|||||||
#include <sys/msg.h>
|
#include <sys/msg.h>
|
||||||
|
|
||||||
static const unsigned long _glibtop_sysdeps_msg_limits =
|
static const unsigned long _glibtop_sysdeps_msg_limits =
|
||||||
(1L << GLIBTOP_IPC_MSGMAX) + (1L << GLIBTOP_IPC_MSGMNI) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMAX) + (1L << GLIBTOP_MSG_LIMITS_MSGMNI) +
|
||||||
(1L << GLIBTOP_IPC_MSGMNB) + (1L << GLIBTOP_IPC_MSGTQL) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMNB) + (1L << GLIBTOP_MSG_LIMITS_MSGTQL) +
|
||||||
(1L << GLIBTOP_IPC_MSGSSZ);
|
(1L << GLIBTOP_MSG_LIMITS_MSGSSZ);
|
||||||
|
|
||||||
/* The values in this structure never change at runtime, so we only
|
/* The values in this structure never change at runtime, so we only
|
||||||
* read it once during initialization. We have to use the name `_msginfo'
|
* read it once during initialization. We have to use the name `_msginfo'
|
||||||
|
@@ -61,11 +61,11 @@ glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
|
|||||||
#include <sys/sem.h>
|
#include <sys/sem.h>
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_sem_limits =
|
static unsigned long _glibtop_sysdeps_sem_limits =
|
||||||
(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMAP) + (1L << GLIBTOP_SEM_LIMITS_SEMMNI) +
|
||||||
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMNS) + (1L << GLIBTOP_SEM_LIMITS_SEMMNU) +
|
||||||
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMSL) + (1L << GLIBTOP_SEM_LIMITS_SEMOPM) +
|
||||||
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMUME) + (1L << GLIBTOP_SEM_LIMITS_SEMUSZ) +
|
||||||
(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
|
(1L << GLIBTOP_SEM_LIMITS_SEMVMX) + (1L << GLIBTOP_SEM_LIMITS_SEMAEM);
|
||||||
|
|
||||||
/* The values in this structure never change at runtime, so we only
|
/* The values in this structure never change at runtime, so we only
|
||||||
* read it once during initialization. We have to use the name `_seminfo'
|
* read it once during initialization. We have to use the name `_seminfo'
|
||||||
|
@@ -61,9 +61,9 @@ glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
|
|||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_shm_limits =
|
static unsigned long _glibtop_sysdeps_shm_limits =
|
||||||
(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMAX) + (1L << GLIBTOP_SHM_LIMITS_SHMMIN) +
|
||||||
(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMNI) + (1L << GLIBTOP_SHM_LIMITS_SHMSEG) +
|
||||||
(1L << GLIBTOP_IPC_SHMALL);
|
(1L << GLIBTOP_SHM_LIMITS_SHMALL);
|
||||||
|
|
||||||
/* The values in this structure never change at runtime, so we only
|
/* The values in this structure never change at runtime, so we only
|
||||||
* read it once during initialization. We have to use the name `_shminfo'
|
* read it once during initialization. We have to use the name `_shminfo'
|
||||||
|
@@ -32,9 +32,9 @@ static const unsigned long _glibtop_sysdeps_cpu =
|
|||||||
(1L << GLIBTOP_CPU_IDLE) + (1L << GLIBTOP_CPU_FREQUENCY);
|
(1L << GLIBTOP_CPU_IDLE) + (1L << GLIBTOP_CPU_FREQUENCY);
|
||||||
|
|
||||||
static const unsigned long _glibtop_sysdeps_cpu_smp =
|
static const unsigned long _glibtop_sysdeps_cpu_smp =
|
||||||
(1L << GLIBTOP_XCPU_TOTAL) + (1L << GLIBTOP_XCPU_USER) +
|
(1L << GLIBTOP_CPU_XCPU_TOTAL) + (1L << GLIBTOP_CPU_XCPU_USER) +
|
||||||
(1L << GLIBTOP_XCPU_NICE) + (1L << GLIBTOP_XCPU_SYS) +
|
(1L << GLIBTOP_CPU_XCPU_NICE) + (1L << GLIBTOP_CPU_XCPU_SYS) +
|
||||||
(1L << GLIBTOP_XCPU_IDLE);
|
(1L << GLIBTOP_CPU_XCPU_IDLE);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -27,10 +27,10 @@
|
|||||||
#include <sys/msg.h>
|
#include <sys/msg.h>
|
||||||
|
|
||||||
static const unsigned long _glibtop_sysdeps_msg_limits =
|
static const unsigned long _glibtop_sysdeps_msg_limits =
|
||||||
(1L << GLIBTOP_IPC_MSGPOOL) + (1L << GLIBTOP_IPC_MSGMAP) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGPOOL) + (1L << GLIBTOP_MSG_LIMITS_MSGMAP) +
|
||||||
(1L << GLIBTOP_IPC_MSGMAX) + (1L << GLIBTOP_IPC_MSGMNB) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMAX) + (1L << GLIBTOP_MSG_LIMITS_MSGMNB) +
|
||||||
(1L << GLIBTOP_IPC_MSGMNI) + (1L << GLIBTOP_IPC_MSGSSZ) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMNI) + (1L << GLIBTOP_MSG_LIMITS_MSGSSZ) +
|
||||||
(1L << GLIBTOP_IPC_MSGTQL);
|
(1L << GLIBTOP_MSG_LIMITS_MSGTQL);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -42,11 +42,11 @@ union semun
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_sem_limits =
|
static unsigned long _glibtop_sysdeps_sem_limits =
|
||||||
(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMAP) + (1L << GLIBTOP_SEM_LIMITS_SEMMNI) +
|
||||||
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMNS) + (1L << GLIBTOP_SEM_LIMITS_SEMMNU) +
|
||||||
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMSL) + (1L << GLIBTOP_SEM_LIMITS_SEMOPM) +
|
||||||
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMUME) + (1L << GLIBTOP_SEM_LIMITS_SEMUSZ) +
|
||||||
(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
|
(1L << GLIBTOP_SEM_LIMITS_SEMVMX) + (1L << GLIBTOP_SEM_LIMITS_SEMAEM);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -27,9 +27,9 @@
|
|||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_shm_limits =
|
static unsigned long _glibtop_sysdeps_shm_limits =
|
||||||
(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMAX) + (1L << GLIBTOP_SHM_LIMITS_SHMMIN) +
|
||||||
(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMNI) + (1L << GLIBTOP_SHM_LIMITS_SHMSEG) +
|
||||||
(1L << GLIBTOP_IPC_SHMALL);
|
(1L << GLIBTOP_SHM_LIMITS_SHMALL);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -31,9 +31,9 @@ static const unsigned long _glibtop_sysdeps_cpu =
|
|||||||
(1L << GLIBTOP_CPU_IDLE) + (1L << GLIBTOP_CPU_FREQUENCY);
|
(1L << GLIBTOP_CPU_IDLE) + (1L << GLIBTOP_CPU_FREQUENCY);
|
||||||
|
|
||||||
static const unsigned long _glibtop_sysdeps_cpu_smp =
|
static const unsigned long _glibtop_sysdeps_cpu_smp =
|
||||||
(1L << GLIBTOP_XCPU_TOTAL) + (1L << GLIBTOP_XCPU_USER) +
|
(1L << GLIBTOP_CPU_XCPU_TOTAL) + (1L << GLIBTOP_CPU_XCPU_USER) +
|
||||||
(1L << GLIBTOP_XCPU_NICE) + (1L << GLIBTOP_XCPU_SYS) +
|
(1L << GLIBTOP_CPU_XCPU_NICE) + (1L << GLIBTOP_CPU_XCPU_SYS) +
|
||||||
(1L << GLIBTOP_XCPU_IDLE);
|
(1L << GLIBTOP_CPU_XCPU_IDLE);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -27,10 +27,10 @@
|
|||||||
#include <sys/msg.h>
|
#include <sys/msg.h>
|
||||||
|
|
||||||
static const unsigned long _glibtop_sysdeps_msg_limits =
|
static const unsigned long _glibtop_sysdeps_msg_limits =
|
||||||
(1L << GLIBTOP_IPC_MSGPOOL) + (1L << GLIBTOP_IPC_MSGMAP) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGPOOL) + (1L << GLIBTOP_MSG_LIMITS_MSGMAP) +
|
||||||
(1L << GLIBTOP_IPC_MSGMAX) + (1L << GLIBTOP_IPC_MSGMNB) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMAX) + (1L << GLIBTOP_MSG_LIMITS_MSGMNB) +
|
||||||
(1L << GLIBTOP_IPC_MSGMNI) + (1L << GLIBTOP_IPC_MSGSSZ) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMNI) + (1L << GLIBTOP_MSG_LIMITS_MSGSSZ) +
|
||||||
(1L << GLIBTOP_IPC_MSGTQL);
|
(1L << GLIBTOP_MSG_LIMITS_MSGTQL);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -42,11 +42,11 @@ union semun
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_sem_limits =
|
static unsigned long _glibtop_sysdeps_sem_limits =
|
||||||
(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMAP) + (1L << GLIBTOP_SEM_LIMITS_SEMMNI) +
|
||||||
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMNS) + (1L << GLIBTOP_SEM_LIMITS_SEMMNU) +
|
||||||
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMSL) + (1L << GLIBTOP_SEM_LIMITS_SEMOPM) +
|
||||||
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMUME) + (1L << GLIBTOP_SEM_LIMITS_SEMUSZ) +
|
||||||
(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
|
(1L << GLIBTOP_SEM_LIMITS_SEMVMX) + (1L << GLIBTOP_SEM_LIMITS_SEMAEM);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -27,9 +27,9 @@
|
|||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_shm_limits =
|
static unsigned long _glibtop_sysdeps_shm_limits =
|
||||||
(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMAX) + (1L << GLIBTOP_SHM_LIMITS_SHMMIN) +
|
||||||
(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMNI) + (1L << GLIBTOP_SHM_LIMITS_SHMSEG) +
|
||||||
(1L << GLIBTOP_IPC_SHMALL);
|
(1L << GLIBTOP_SHM_LIMITS_SHMALL);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -26,9 +26,9 @@
|
|||||||
#include <glibtop/msg_limits.h>
|
#include <glibtop/msg_limits.h>
|
||||||
|
|
||||||
static const unsigned long _glibtop_sysdeps_msg_limits =
|
static const unsigned long _glibtop_sysdeps_msg_limits =
|
||||||
(1L << GLIBTOP_IPC_MSGMAP) + (1L << GLIBTOP_IPC_MSGMAX) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMAP) + (1L << GLIBTOP_MSG_LIMITS_MSGMAX) +
|
||||||
(1L << GLIBTOP_IPC_MSGMNB) + (1L << GLIBTOP_IPC_MSGMNI) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMNB) + (1L << GLIBTOP_MSG_LIMITS_MSGMNI) +
|
||||||
(1L << GLIBTOP_IPC_MSGTQL);
|
(1L << GLIBTOP_MSG_LIMITS_MSGTQL);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_MSGMAX);
|
buf->flags += (1L << GLIBTOP_MSG_LIMITS_MSGMAX);
|
||||||
|
|
||||||
buf->msgmax = value;
|
buf->msgmax = value;
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_MSGMNB);
|
buf->flags += (1L << GLIBTOP_MSG_LIMITS_MSGMNB);
|
||||||
|
|
||||||
buf->msgmnb = value;
|
buf->msgmnb = value;
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_MSGMNI);
|
buf->flags += (1L << GLIBTOP_MSG_LIMITS_MSGMNI);
|
||||||
|
|
||||||
buf->msgmni = value;
|
buf->msgmni = value;
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_MSGTQL);
|
buf->flags += (1L << GLIBTOP_MSG_LIMITS_MSGTQL);
|
||||||
|
|
||||||
buf->msgtql = value;
|
buf->msgtql = value;
|
||||||
}
|
}
|
||||||
|
@@ -26,9 +26,9 @@
|
|||||||
#include <glibtop/sem_limits.h>
|
#include <glibtop/sem_limits.h>
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_sem_limits =
|
static unsigned long _glibtop_sysdeps_sem_limits =
|
||||||
(1L << GLIBTOP_IPC_SEMMNI) + (1L << GLIBTOP_IPC_SEMMSL) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMNI) + (1L << GLIBTOP_SEM_LIMITS_SEMMSL) +
|
||||||
(1L << GLIBTOP_IPC_SEMOPM) + (1L << GLIBTOP_IPC_SEMVMX) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMOPM) + (1L << GLIBTOP_SEM_LIMITS_SEMVMX) +
|
||||||
(1L << GLIBTOP_IPC_SEMAEM);
|
(1L << GLIBTOP_SEM_LIMITS_SEMAEM);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SEMMNI);
|
buf->flags += (1L << GLIBTOP_SEM_LIMITS_SEMMNI);
|
||||||
|
|
||||||
buf->semmni = value;
|
buf->semmni = value;
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SEMMSL);
|
buf->flags += (1L << GLIBTOP_SEM_LIMITS_SEMMSL);
|
||||||
|
|
||||||
buf->semmsl = value;
|
buf->semmsl = value;
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SEMOPM);
|
buf->flags += (1L << GLIBTOP_SEM_LIMITS_SEMOPM);
|
||||||
|
|
||||||
buf->semopm = value;
|
buf->semopm = value;
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SEMUME);
|
buf->flags += (1L << GLIBTOP_SEM_LIMITS_SEMUME);
|
||||||
|
|
||||||
buf->semume = value;
|
buf->semume = value;
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SEMVMX);
|
buf->flags += (1L << GLIBTOP_SEM_LIMITS_SEMVMX);
|
||||||
|
|
||||||
buf->semvmx = value;
|
buf->semvmx = value;
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SEMAEM);
|
buf->flags += (1L << GLIBTOP_SEM_LIMITS_SEMAEM);
|
||||||
|
|
||||||
buf->semaem = value;
|
buf->semaem = value;
|
||||||
}
|
}
|
||||||
|
@@ -26,8 +26,8 @@
|
|||||||
#include <glibtop/shm_limits.h>
|
#include <glibtop/shm_limits.h>
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_shm_limits =
|
static unsigned long _glibtop_sysdeps_shm_limits =
|
||||||
(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMAX) + (1L << GLIBTOP_SHM_LIMITS_SHMMIN) +
|
||||||
(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG);
|
(1L << GLIBTOP_SHM_LIMITS_SHMMNI) + (1L << GLIBTOP_SHM_LIMITS_SHMSEG);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SHMMAX);
|
buf->flags += (1L << GLIBTOP_SHM_LIMITS_SHMMAX);
|
||||||
|
|
||||||
buf->shmmax = value;
|
buf->shmmax = value;
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SHMMIN);
|
buf->flags += (1L << GLIBTOP_SHM_LIMITS_SHMMIN);
|
||||||
|
|
||||||
buf->shmmin = value;
|
buf->shmmin = value;
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SHMMNI);
|
buf->flags += (1L << GLIBTOP_SHM_LIMITS_SHMMNI);
|
||||||
|
|
||||||
buf->shmmni = value;
|
buf->shmmni = value;
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
|
|||||||
|
|
||||||
if (ret != 1) return;
|
if (ret != 1) return;
|
||||||
|
|
||||||
buf->flags += (1L << GLIBTOP_IPC_SHMSEG);
|
buf->flags += (1L << GLIBTOP_SHM_LIMITS_SHMSEG);
|
||||||
|
|
||||||
buf->shmseg = value;
|
buf->shmseg = value;
|
||||||
}
|
}
|
||||||
|
@@ -33,9 +33,9 @@
|
|||||||
static const unsigned long _glibtop_sysdeps_cpu =
|
static const unsigned long _glibtop_sysdeps_cpu =
|
||||||
(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_USER) +
|
(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_USER) +
|
||||||
(1L << GLIBTOP_CPU_SYS) + (1L << GLIBTOP_CPU_IDLE) +
|
(1L << GLIBTOP_CPU_SYS) + (1L << GLIBTOP_CPU_IDLE) +
|
||||||
(1L << GLIBTOP_XCPU_TOTAL) + (1L << GLIBTOP_XCPU_USER) +
|
(1L << GLIBTOP_CPU_XCPU_TOTAL) + (1L << GLIBTOP_CPU_XCPU_USER) +
|
||||||
(1L << GLIBTOP_XCPU_SYS) + (1L << GLIBTOP_XCPU_IDLE) +
|
(1L << GLIBTOP_CPU_XCPU_SYS) + (1L << GLIBTOP_CPU_XCPU_IDLE) +
|
||||||
(1L << GLIBTOP_CPU_FREQUENCY) + (1L << GLIBTOP_XCPU_FLAGS);
|
(1L << GLIBTOP_CPU_FREQUENCY) + (1L << GLIBTOP_CPU_XCPU_FLAGS);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -29,10 +29,10 @@
|
|||||||
|
|
||||||
static struct nlist nlst[] = { {"msginfo"}, {NULL} };
|
static struct nlist nlst[] = { {"msginfo"}, {NULL} };
|
||||||
static const unsigned long _glibtop_sysdeps_msg_limits =
|
static const unsigned long _glibtop_sysdeps_msg_limits =
|
||||||
(1L << GLIBTOP_IPC_MSGPOOL) + (1L << GLIBTOP_IPC_MSGMAP) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGPOOL) + (1L << GLIBTOP_MSG_LIMITS_MSGMAP) +
|
||||||
(1L << GLIBTOP_IPC_MSGMAX) + (1L << GLIBTOP_IPC_MSGMNB) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMAX) + (1L << GLIBTOP_MSG_LIMITS_MSGMNB) +
|
||||||
(1L << GLIBTOP_IPC_MSGMNI) + (1L << GLIBTOP_IPC_MSGSSZ) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMNI) + (1L << GLIBTOP_MSG_LIMITS_MSGSSZ) +
|
||||||
(1L << GLIBTOP_IPC_MSGTQL);
|
(1L << GLIBTOP_MSG_LIMITS_MSGTQL);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -29,11 +29,11 @@
|
|||||||
|
|
||||||
static struct nlist nlst[] = { {"seminfo"}, {NULL} };
|
static struct nlist nlst[] = { {"seminfo"}, {NULL} };
|
||||||
static const unsigned long _glibtop_sysdeps_sem_limits =
|
static const unsigned long _glibtop_sysdeps_sem_limits =
|
||||||
(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMAP) + (1L << GLIBTOP_SEM_LIMITS_SEMMNI) +
|
||||||
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMNS) + (1L << GLIBTOP_SEM_LIMITS_SEMMNU) +
|
||||||
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMSL) + (1L << GLIBTOP_SEM_LIMITS_SEMOPM) +
|
||||||
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMUME) + (1L << GLIBTOP_SEM_LIMITS_SEMUSZ) +
|
||||||
(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
|
(1L << GLIBTOP_SEM_LIMITS_SEMVMX) + (1L << GLIBTOP_SEM_LIMITS_SEMAEM);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -29,8 +29,8 @@
|
|||||||
|
|
||||||
static struct nlist nlst[] = { {"shminfo"}, {NULL} };
|
static struct nlist nlst[] = { {"shminfo"}, {NULL} };
|
||||||
static const unsigned long _glibtop_sysdeps_shm_limits =
|
static const unsigned long _glibtop_sysdeps_shm_limits =
|
||||||
(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMAX) + (1L << GLIBTOP_SHM_LIMITS_SHMMIN) +
|
||||||
(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG);
|
(1L << GLIBTOP_SHM_LIMITS_SHMMNI) + (1L << GLIBTOP_SHM_LIMITS_SHMSEG);
|
||||||
|
|
||||||
/* Init function. */
|
/* Init function. */
|
||||||
|
|
||||||
|
@@ -34,9 +34,9 @@
|
|||||||
#include <sys/msg.h>
|
#include <sys/msg.h>
|
||||||
|
|
||||||
static const unsigned long _glibtop_sysdeps_msg_limits =
|
static const unsigned long _glibtop_sysdeps_msg_limits =
|
||||||
(1L << GLIBTOP_IPC_MSGMAP) + (1L << GLIBTOP_IPC_MSGMAX) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMAP) + (1L << GLIBTOP_MSG_LIMITS_MSGMAX) +
|
||||||
(1L << GLIBTOP_IPC_MSGMNB) + (1L << GLIBTOP_IPC_MSGMNI) +
|
(1L << GLIBTOP_MSG_LIMITS_MSGMNB) + (1L << GLIBTOP_MSG_LIMITS_MSGMNI) +
|
||||||
(1L << GLIBTOP_IPC_MSGSSZ) + (1L << GLIBTOP_IPC_MSGTQL);
|
(1L << GLIBTOP_MSG_LIMITS_MSGSSZ) + (1L << GLIBTOP_MSG_LIMITS_MSGTQL);
|
||||||
|
|
||||||
/* Provides information about sysv ipc limits. */
|
/* Provides information about sysv ipc limits. */
|
||||||
|
|
||||||
|
@@ -34,11 +34,11 @@
|
|||||||
#include <sys/sem.h>
|
#include <sys/sem.h>
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_sem_limits =
|
static unsigned long _glibtop_sysdeps_sem_limits =
|
||||||
(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMAP) + (1L << GLIBTOP_SEM_LIMITS_SEMMNI) +
|
||||||
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMNS) + (1L << GLIBTOP_SEM_LIMITS_SEMMNU) +
|
||||||
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMMSL) + (1L << GLIBTOP_SEM_LIMITS_SEMOPM) +
|
||||||
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
|
(1L << GLIBTOP_SEM_LIMITS_SEMUME) + (1L << GLIBTOP_SEM_LIMITS_SEMUSZ) +
|
||||||
(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
|
(1L << GLIBTOP_SEM_LIMITS_SEMVMX) + (1L << GLIBTOP_SEM_LIMITS_SEMAEM);
|
||||||
|
|
||||||
/* Provides information about sysv sem limits. */
|
/* Provides information about sysv sem limits. */
|
||||||
|
|
||||||
|
@@ -34,9 +34,9 @@
|
|||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
|
|
||||||
static unsigned long _glibtop_sysdeps_shm_limits =
|
static unsigned long _glibtop_sysdeps_shm_limits =
|
||||||
(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMAX) + (1L << GLIBTOP_SHM_LIMITS_SHMMIN) +
|
||||||
(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG) +
|
(1L << GLIBTOP_SHM_LIMITS_SHMMNI) + (1L << GLIBTOP_SHM_LIMITS_SHMSEG) +
|
||||||
(1L << GLIBTOP_IPC_SHMALL);
|
(1L << GLIBTOP_SHM_LIMITS_SHMALL);
|
||||||
|
|
||||||
/* Provides information about sysv ipc limits. */
|
/* Provides information about sysv ipc limits. */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user