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:
Martin Baulig
1999-12-11 14:33:18 +00:00
committed by Martin Baulig
parent c138d87c30
commit 18af9297ea
26 changed files with 162 additions and 147 deletions

View File

@@ -31,24 +31,24 @@
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_IPC_SHMMAX 0
#define GLIBTOP_IPC_SHMMIN 1
#define GLIBTOP_IPC_SHMMNI 2
#define GLIBTOP_IPC_SHMSEG 3
#define GLIBTOP_IPC_SHMALL 4
#define GLIBTOP_SHM_LIMITS_SHMMAX 0
#define GLIBTOP_SHM_LIMITS_SHMMIN 1
#define GLIBTOP_SHM_LIMITS_SHMMNI 2
#define GLIBTOP_SHM_LIMITS_SHMSEG 3
#define GLIBTOP_SHM_LIMITS_SHMALL 4
#define GLIBTOP_MAX_SHM_LIMITS 5
#define GLIBTOP_MAX_SHM_LIMITS 5
typedef struct _glibtop_shm_limits glibtop_shm_limits;
struct _glibtop_shm_limits
{
u_int64_t flags,
shmmax, /* GLIBTOP_IPC_SHMMAX */
shmmin, /* GLIBTOP_IPC_SHMMIN */
shmmni, /* GLIBTOP_IPC_SHMMNI */
shmseg, /* GLIBTOP_IPC_SHMSEG */
shmall; /* GLIBTOP_IPC_SHMALL */
shmmax, /* GLIBTOP_SHM_LIMITS_SHMMAX */
shmmin, /* GLIBTOP_SHM_LIMITS_SHMMIN */
shmmni, /* GLIBTOP_SHM_LIMITS_SHMMNI */
shmseg, /* GLIBTOP_SHM_LIMITS_SHMSEG */
shmall; /* GLIBTOP_SHM_LIMITS_SHMALL */
};
#define glibtop_get_shm_limits(shm) glibtop_get_shm_limits_l(glibtop_global_server, shm)