summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-03-30 14:23:42 +0000
committerMartin Baulig <martin@src.gnome.org>1999-03-30 14:23:42 +0000
commit24a1fe55bbf7dbe85c14adc5e27117b19321e0b2 (patch)
treef929ba80a5a2ddd574cf9b67cc585c5afe696cd3
parent66dddd97993d7547d87a191e098604fe0a3c88ec (diff)
downloadlibgtop-24a1fe55bbf7dbe85c14adc5e27117b19321e0b2.tar.gz
Changed indentation:
tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4
-rw-r--r--include/glibtop/close.h2
-rw-r--r--include/glibtop/command.h18
-rw-r--r--include/glibtop/cpu.h26
-rw-r--r--include/glibtop/error.h66
-rw-r--r--include/glibtop/fsusage.h14
-rw-r--r--include/glibtop/global.h2
-rw-r--r--include/glibtop/inodedb.h6
-rw-r--r--include/glibtop/loadavg.h12
-rw-r--r--include/glibtop/mem.h20
-rw-r--r--include/glibtop/mountlist.h18
-rw-r--r--include/glibtop/msg_limits.h18
-rw-r--r--include/glibtop/netload.h64
-rw-r--r--include/glibtop/open.h2
-rw-r--r--include/glibtop/parameter.h2
-rw-r--r--include/glibtop/ppp.h16
-rw-r--r--include/glibtop/procargs.h6
-rw-r--r--include/glibtop/prockernel.h32
-rw-r--r--include/glibtop/proclist.h10
-rw-r--r--include/glibtop/procmap.h14
-rw-r--r--include/glibtop/procmem.h20
-rw-r--r--include/glibtop/procsegment.h20
-rw-r--r--include/glibtop/procsignal.h12
-rw-r--r--include/glibtop/procstate.h22
-rw-r--r--include/glibtop/proctime.h38
-rw-r--r--include/glibtop/procuid.h28
-rw-r--r--include/glibtop/read.h2
-rw-r--r--include/glibtop/read_data.h2
-rw-r--r--include/glibtop/sem_limits.h24
-rw-r--r--include/glibtop/shm_limits.h14
-rw-r--r--include/glibtop/signal.h6
-rw-r--r--include/glibtop/swap.h14
-rw-r--r--include/glibtop/sysdeps.h50
-rw-r--r--include/glibtop/sysinfo.h12
-rw-r--r--include/glibtop/types.h2
-rw-r--r--include/glibtop/union.h46
-rw-r--r--include/glibtop/uptime.h9
-rw-r--r--include/glibtop/version.h2
-rw-r--r--include/glibtop/write.h2
-rw-r--r--include/glibtop/xmalloc.h2
39 files changed, 377 insertions, 298 deletions
diff --git a/include/glibtop/close.h b/include/glibtop/close.h
index 98bde6cd..e5819a4f 100644
--- a/include/glibtop/close.h
+++ b/include/glibtop/close.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
diff --git a/include/glibtop/command.h b/include/glibtop/command.h
index 02eced03..5434cc78 100644
--- a/include/glibtop/command.h
+++ b/include/glibtop/command.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -69,22 +71,22 @@ typedef union _glibtop_response_union glibtop_response_union;
struct _glibtop_command
{
- u_int64_t command;
- u_int64_t size, data_size;
- char parameter [_GLIBTOP_PARAM_SIZE];
+ u_int64_t command;
+ u_int64_t size, data_size;
+ char parameter [_GLIBTOP_PARAM_SIZE];
};
union _glibtop_response_union
{
- glibtop_union data;
- glibtop_sysdeps sysdeps;
+ glibtop_union data;
+ glibtop_sysdeps sysdeps;
};
struct _glibtop_response
{
- int64_t offset;
- u_int64_t size, data_size;
- glibtop_response_union u;
+ int64_t offset;
+ u_int64_t size, data_size;
+ glibtop_response_union u;
};
#define glibtop_call(p1, p2, p3, p4) glibtop_call_r(glibtop_global_server, p1, p2, p3, p4)
diff --git a/include/glibtop/cpu.h b/include/glibtop/cpu.h
index 96dd6200..88cd089a 100644
--- a/include/glibtop/cpu.h
+++ b/include/glibtop/cpu.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -51,18 +53,18 @@ typedef struct _glibtop_cpu glibtop_cpu;
struct _glibtop_cpu
{
- u_int64_t flags,
- total, /* GLIBTOP_CPU_TOTAL */
- user, /* GLIBTOP_CPU_USER */
- nice, /* GLIBTOP_CPU_NICE */
- sys, /* GLIBTOP_CPU_SYS */
- idle, /* GLIBTOP_CPU_IDLE */
- frequency, /* GLIBTOP_CPU_FREQUENCY */
- xcpu_total [GLIBTOP_NCPU], /* GLIBTOP_XCPU_TOTAL */
- xcpu_user [GLIBTOP_NCPU], /* GLIBTOP_XCPU_USER */
- xcpu_nice [GLIBTOP_NCPU], /* GLIBTOP_XCPU_NICE */
- xcpu_sys [GLIBTOP_NCPU], /* GLIBTOP_XCPU_SYS */
- xcpu_idle [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_IDLE */
+ u_int64_t flags,
+ total, /* GLIBTOP_CPU_TOTAL */
+ user, /* GLIBTOP_CPU_USER */
+ nice, /* GLIBTOP_CPU_NICE */
+ sys, /* GLIBTOP_CPU_SYS */
+ idle, /* GLIBTOP_CPU_IDLE */
+ frequency, /* GLIBTOP_CPU_FREQUENCY */
+ xcpu_total [GLIBTOP_NCPU], /* GLIBTOP_XCPU_TOTAL */
+ xcpu_user [GLIBTOP_NCPU], /* GLIBTOP_XCPU_USER */
+ xcpu_nice [GLIBTOP_NCPU], /* GLIBTOP_XCPU_NICE */
+ xcpu_sys [GLIBTOP_NCPU], /* GLIBTOP_XCPU_SYS */
+ xcpu_idle [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_IDLE */
};
#define glibtop_get_cpu(cpu) glibtop_get_cpu_l(glibtop_global_server, cpu)
diff --git a/include/glibtop/error.h b/include/glibtop/error.h
index 30f45f4d..2b7c835b 100644
--- a/include/glibtop/error.h
+++ b/include/glibtop/error.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -37,41 +39,41 @@ void glibtop_warn_io_vr (glibtop *server, char *format, int, va_list args);
static void
glibtop_error_r (glibtop *server, char *format, ...)
{
- va_list args;
+ va_list args;
- va_start (args, format);
- glibtop_error_vr (server, format, args);
- va_end (args);
+ va_start (args, format);
+ glibtop_error_vr (server, format, args);
+ va_end (args);
}
static void
glibtop_warn_r (glibtop *server, char *format, ...)
{
- va_list args;
+ va_list args;
- va_start (args, format);
- glibtop_warn_vr (server, format, args);
- va_end (args);
+ va_start (args, format);
+ glibtop_warn_vr (server, format, args);
+ va_end (args);
}
static void
glibtop_error_io_r (glibtop *server, char *format, ...)
{
- va_list args;
+ va_list args;
- va_start (args, format);
- glibtop_error_io_vr (server, format, errno, args);
- va_end (args);
+ va_start (args, format);
+ glibtop_error_io_vr (server, format, errno, args);
+ va_end (args);
}
static void
glibtop_warn_io_r (glibtop *server, char *format, ...)
{
- va_list args;
+ va_list args;
- va_start (args, format);
- glibtop_warn_io_vr (server, format, errno, args);
- va_end (args);
+ va_start (args, format);
+ glibtop_warn_io_vr (server, format, errno, args);
+ va_end (args);
}
#ifdef __GNUC__
@@ -87,37 +89,37 @@ glibtop_warn_io_r (glibtop *server, char *format, ...)
static void
glibtop_error (char *format, ...)
{
- va_list args;
- va_start (args, format);
- glibtop_error_vr (glibtop_global_server, format, args);
- va_end (args);
+ va_list args;
+ va_start (args, format);
+ glibtop_error_vr (glibtop_global_server, format, args);
+ va_end (args);
}
static void
glibtop_warn (char *format, ...)
{
- va_list args;
- va_start (args, format);
- glibtop_warn_vr (glibtop_global_server, format, args);
- va_end (args);
+ va_list args;
+ va_start (args, format);
+ glibtop_warn_vr (glibtop_global_server, format, args);
+ va_end (args);
}
static void
glibtop_error_io (char *format, ...)
{
- va_list args;
- va_start (args, format);
- glibtop_error_io_vr (glibtop_global_server, format, errno, args);
- va_end (args);
+ va_list args;
+ va_start (args, format);
+ glibtop_error_io_vr (glibtop_global_server, format, errno, args);
+ va_end (args);
}
static void
glibtop_warn_io (char *format, ...)
{
- va_list args;
- va_start (args, format);
- glibtop_warn_io_vr (glibtop_global_server, format, errno, args);
- va_end (args);
+ va_list args;
+ va_start (args, format);
+ glibtop_warn_io_vr (glibtop_global_server, format, errno, args);
+ va_end (args);
}
#endif /* no __GNUC__ */
diff --git a/include/glibtop/fsusage.h b/include/glibtop/fsusage.h
index 2b90552c..cbfade43 100644
--- a/include/glibtop/fsusage.h
+++ b/include/glibtop/fsusage.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -41,12 +43,12 @@ typedef struct _glibtop_fsusage glibtop_fsusage;
struct _glibtop_fsusage
{
- u_int64_t flags,
- blocks, /* Total blocks. */
- bfree, /* Free blocks available to superuser. */
- bavail, /* Free blocks available to non-superuser. */
- files, /* Total file nodes. */
- ffree; /* Free file nodes. */
+ u_int64_t flags,
+ blocks, /* Total blocks. */
+ bfree, /* Free blocks available to superuser. */
+ bavail, /* Free blocks available to non-superuser. */
+ files, /* Total file nodes. */
+ ffree; /* Free file nodes. */
};
#define glibtop_get_fsusage(fsusage,disk) glibtop_get_fsusage_l(glibtop_global_server, fsusage, disk)
diff --git a/include/glibtop/global.h b/include/glibtop/global.h
index 65ff0544..aa084b35 100644
--- a/include/glibtop/global.h
+++ b/include/glibtop/global.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
diff --git a/include/glibtop/inodedb.h b/include/glibtop/inodedb.h
index 5dc0017d..f284b322 100644
--- a/include/glibtop/inodedb.h
+++ b/include/glibtop/inodedb.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
@@ -39,12 +41,12 @@ typedef struct _glibtop_inodedb_key glibtop_inodedb_key;
struct _glibtop_inodedb_key
{
- u_int64_t device, inode;
+ u_int64_t device, inode;
};
struct _glibtop_inodedb
{
- GDBM_FILE system_dbf, user_dbf;
+ GDBM_FILE system_dbf, user_dbf;
};
#define glibtop_inodedb_open(p1,p2) glibtop_inodedb_open_s(glibtop_global_server, p1, p2)
diff --git a/include/glibtop/loadavg.h b/include/glibtop/loadavg.h
index ddcd08e6..f43642f6 100644
--- a/include/glibtop/loadavg.h
+++ b/include/glibtop/loadavg.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -40,11 +42,11 @@ typedef struct _glibtop_loadavg glibtop_loadavg;
struct _glibtop_loadavg
{
- u_int64_t flags;
- double loadavg [3]; /* GLIBTOP_LOADAVG_LOADAVG */
- u_int64_t nr_running, /* GLIBTOP_LOADAVG_NR_RUNNING */
- nr_tasks, /* GLIBTOP_LOADAVG_NR_TASKS */
- last_pid; /* GLIBTOP_LOADAVG_LAST_PID */
+ u_int64_t flags;
+ double loadavg [3]; /* GLIBTOP_LOADAVG_LOADAVG */
+ u_int64_t nr_running, /* GLIBTOP_LOADAVG_NR_RUNNING */
+ nr_tasks, /* GLIBTOP_LOADAVG_NR_TASKS */
+ last_pid; /* GLIBTOP_LOADAVG_LAST_PID */
};
#define glibtop_get_loadavg(loadavg) glibtop_get_loadavg_l(glibtop_global_server, loadavg)
diff --git a/include/glibtop/mem.h b/include/glibtop/mem.h
index 2ae4d4b2..2cf6b3e7 100644
--- a/include/glibtop/mem.h
+++ b/include/glibtop/mem.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -44,15 +46,15 @@ typedef struct _glibtop_mem glibtop_mem;
struct _glibtop_mem
{
- u_int64_t flags,
- total, /* GLIBTOP_MEM_TOTAL */
- used, /* GLIBTOP_MEM_USED */
- free, /* GLIBTOP_MEM_FREE */
- shared, /* GLIBTOP_MEM_SHARED */
- buffer, /* GLIBTOP_MEM_BUFFER */
- cached, /* GLIBTOP_MEM_CACHED */
- user, /* GLIBTOP_MEM_USER */
- locked; /* GLIBTOP_MEM_LOCKED */
+ u_int64_t flags,
+ total, /* GLIBTOP_MEM_TOTAL */
+ used, /* GLIBTOP_MEM_USED */
+ free, /* GLIBTOP_MEM_FREE */
+ shared, /* GLIBTOP_MEM_SHARED */
+ buffer, /* GLIBTOP_MEM_BUFFER */
+ cached, /* GLIBTOP_MEM_CACHED */
+ user, /* GLIBTOP_MEM_USER */
+ locked; /* GLIBTOP_MEM_LOCKED */
};
#define glibtop_get_mem(mem) glibtop_get_mem_l(glibtop_global_server, mem)
diff --git a/include/glibtop/mountlist.h b/include/glibtop/mountlist.h
index 2927b5a7..89a1dc70 100644
--- a/include/glibtop/mountlist.h
+++ b/include/glibtop/mountlist.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -41,18 +43,18 @@ typedef struct _glibtop_mountlist glibtop_mountlist;
struct _glibtop_mountentry
{
- u_int64_t dev;
- char devname [GLIBTOP_MOUNTENTRY_LEN+1];
- char mountdir [GLIBTOP_MOUNTENTRY_LEN+1];
- char type [GLIBTOP_MOUNTENTRY_LEN+1];
+ u_int64_t dev;
+ char devname [GLIBTOP_MOUNTENTRY_LEN+1];
+ char mountdir [GLIBTOP_MOUNTENTRY_LEN+1];
+ char type [GLIBTOP_MOUNTENTRY_LEN+1];
};
struct _glibtop_mountlist
{
- u_int64_t flags,
- number, /* GLIBTOP_MOUNTLIST_NUMBER */
- total, /* GLIBTOP_MOUNTLIST_TOTAL */
- size; /* GLIBTOP_MOUNTLIST_SIZE */
+ u_int64_t flags,
+ number, /* GLIBTOP_MOUNTLIST_NUMBER */
+ total, /* GLIBTOP_MOUNTLIST_TOTAL */
+ size; /* GLIBTOP_MOUNTLIST_SIZE */
};
#define glibtop_get_mountlist(mountlist,all_fs) glibtop_get_mountlist_l(glibtop_global_server, mountlist, all_fs)
diff --git a/include/glibtop/msg_limits.h b/include/glibtop/msg_limits.h
index b9208721..be3cb224 100644
--- a/include/glibtop/msg_limits.h
+++ b/include/glibtop/msg_limits.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -43,14 +45,14 @@ typedef struct _glibtop_msg_limits glibtop_msg_limits;
struct _glibtop_msg_limits
{
- u_int64_t flags,
- msgpool, /* GLIBTOP_IPC_MSGPOOL */
- msgmap, /* GLIBTOP_IPC_MSGMAP */
- msgmax, /* GLIBTOP_IPC_MSGMAX */
- msgmnb, /* GLIBTOP_IPC_MSGMNB */
- msgmni, /* GLIBTOP_IPC_MSGMNI */
- msgssz, /* GLIBTOP_IPC_MSGSSZ */
- msgtql; /* GLIBTOP_IPC_MSGTQL */
+ u_int64_t flags,
+ msgpool, /* GLIBTOP_IPC_MSGPOOL */
+ msgmap, /* GLIBTOP_IPC_MSGMAP */
+ msgmax, /* GLIBTOP_IPC_MSGMAX */
+ msgmnb, /* GLIBTOP_IPC_MSGMNB */
+ msgmni, /* GLIBTOP_IPC_MSGMNI */
+ msgssz, /* GLIBTOP_IPC_MSGSSZ */
+ msgtql; /* GLIBTOP_IPC_MSGTQL */
};
#define glibtop_get_msg_limits(msg) glibtop_get_msg_limits_l(glibtop_global_server, msg)
diff --git a/include/glibtop/netload.h b/include/glibtop/netload.h
index 90c09a5a..5bb98cae 100644
--- a/include/glibtop/netload.h
+++ b/include/glibtop/netload.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -49,41 +51,41 @@ BEGIN_LIBGTOP_DECLS
typedef struct _glibtop_netload glibtop_netload;
enum {
- GLIBTOP_IF_FLAGS_UP = 1,
- GLIBTOP_IF_FLAGS_BROADCAST,
- GLIBTOP_IF_FLAGS_DEBUG,
- GLIBTOP_IF_FLAGS_LOOPBACK,
- GLIBTOP_IF_FLAGS_POINTOPOINT,
- GLIBTOP_IF_FLAGS_RUNNING,
- GLIBTOP_IF_FLAGS_NOARP,
- GLIBTOP_IF_FLAGS_PROMISC,
- GLIBTOP_IF_FLAGS_ALLMULTI,
- GLIBTOP_IF_FLAGS_OACTIVE,
- GLIBTOP_IF_FLAGS_SIMPLEX,
- GLIBTOP_IF_FLAGS_LINK0,
- GLIBTOP_IF_FLAGS_LINK1,
- GLIBTOP_IF_FLAGS_LINK2,
- GLIBTOP_IF_FLAGS_ALTPHYS,
- GLIBTOP_IF_FLAGS_MULTICAST
+ GLIBTOP_IF_FLAGS_UP = 1,
+ GLIBTOP_IF_FLAGS_BROADCAST,
+ GLIBTOP_IF_FLAGS_DEBUG,
+ GLIBTOP_IF_FLAGS_LOOPBACK,
+ GLIBTOP_IF_FLAGS_POINTOPOINT,
+ GLIBTOP_IF_FLAGS_RUNNING,
+ GLIBTOP_IF_FLAGS_NOARP,
+ GLIBTOP_IF_FLAGS_PROMISC,
+ GLIBTOP_IF_FLAGS_ALLMULTI,
+ GLIBTOP_IF_FLAGS_OACTIVE,
+ GLIBTOP_IF_FLAGS_SIMPLEX,
+ GLIBTOP_IF_FLAGS_LINK0,
+ GLIBTOP_IF_FLAGS_LINK1,
+ GLIBTOP_IF_FLAGS_LINK2,
+ GLIBTOP_IF_FLAGS_ALTPHYS,
+ GLIBTOP_IF_FLAGS_MULTICAST
};
struct _glibtop_netload
{
- u_int64_t flags,
- if_flags, /* GLIBTOP_NETLOAD_IF_FLAGS */
- mtu, /* GLIBTOP_NETLOAD_MTU */
- subnet, /* GLIBTOP_NETLOAD_SUBNET */
- address, /* GLIBTOP_NETLOAD_ADDRESS */
- packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */
- packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */
- packets_total, /* GLIBTOP_NETLOAD_PACKETS_TOTAL*/
- bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */
- bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */
- bytes_total, /* GLIBTOP_NETLOAD_BYTES_TOTAL */
- errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */
- errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */
- errors_total, /* GLIBTOP_NETLOAD_ERRORS_TOTAL */
- collisions; /* GLIBTOP_NETLOAD_COLLISIONS */
+ u_int64_t flags,
+ if_flags, /* GLIBTOP_NETLOAD_IF_FLAGS */
+ mtu, /* GLIBTOP_NETLOAD_MTU */
+ subnet, /* GLIBTOP_NETLOAD_SUBNET */
+ address, /* GLIBTOP_NETLOAD_ADDRESS */
+ packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */
+ packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */
+ packets_total, /* GLIBTOP_NETLOAD_PACKETS_TOTAL*/
+ bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */
+ bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */
+ bytes_total, /* GLIBTOP_NETLOAD_BYTES_TOTAL */
+ errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */
+ errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */
+ errors_total, /* GLIBTOP_NETLOAD_ERRORS_TOTAL */
+ collisions; /* GLIBTOP_NETLOAD_COLLISIONS */
};
#define glibtop_get_netload(netload,interface) glibtop_get_netload_l(glibtop_global_server, netload, interface)
diff --git a/include/glibtop/open.h b/include/glibtop/open.h
index 6c898dc2..a0fc42bd 100644
--- a/include/glibtop/open.h
+++ b/include/glibtop/open.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
diff --git a/include/glibtop/parameter.h b/include/glibtop/parameter.h
index 1c09a406..f23810e8 100644
--- a/include/glibtop/parameter.h
+++ b/include/glibtop/parameter.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
diff --git a/include/glibtop/ppp.h b/include/glibtop/ppp.h
index 1a4ec64a..eb951cf6 100644
--- a/include/glibtop/ppp.h
+++ b/include/glibtop/ppp.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -38,17 +40,17 @@ BEGIN_LIBGTOP_DECLS
typedef struct _glibtop_ppp glibtop_ppp;
enum {
- GLIBTOP_PPP_STATE_UNKNOWN = 0,
- GLIBTOP_PPP_STATE_HANGUP,
- GLIBTOP_PPP_STATE_ONLINE
+ GLIBTOP_PPP_STATE_UNKNOWN = 0,
+ GLIBTOP_PPP_STATE_HANGUP,
+ GLIBTOP_PPP_STATE_ONLINE
};
struct _glibtop_ppp
{
- u_int64_t flags,
- state, /* GLIBTOP_PPP_STATE */
- bytes_in, /* GLIBTOP_PPP_BYTES_IN */
- bytes_out; /* GLIBTOP_PPP_BYTES_OUT */
+ u_int64_t flags,
+ state, /* GLIBTOP_PPP_STATE */
+ bytes_in, /* GLIBTOP_PPP_BYTES_IN */
+ bytes_out; /* GLIBTOP_PPP_BYTES_OUT */
};
#define glibtop_get_ppp(ppp,device) glibtop_get_ppp_l(glibtop_global_server, ppp, device)
diff --git a/include/glibtop/procargs.h b/include/glibtop/procargs.h
index c1a6016e..91039bd6 100644
--- a/include/glibtop/procargs.h
+++ b/include/glibtop/procargs.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -37,8 +39,8 @@ typedef struct _glibtop_proc_args glibtop_proc_args;
struct _glibtop_proc_args
{
- u_int64_t flags,
- size; /* GLIBTOP_PROC_ARGS_SIZE */
+ u_int64_t flags,
+ size; /* GLIBTOP_PROC_ARGS_SIZE */
};
#define glibtop_get_proc_args(proc_args,pid,max_len) glibtop_get_proc_args_l(glibtop_global_server, proc_args, pid, max_len)
diff --git a/include/glibtop/prockernel.h b/include/glibtop/prockernel.h
index 09d6ad31..ef8c5fcf 100644
--- a/include/glibtop/prockernel.h
+++ b/include/glibtop/prockernel.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -47,21 +49,21 @@ typedef struct _glibtop_proc_kernel glibtop_proc_kernel;
struct _glibtop_proc_kernel
{
- u_int64_t flags;
- u_int64_t k_flags, /* kernel flags for the process */
- min_flt, /* number of minor page faults since
- * process start */
- maj_flt, /* number of major page faults since
- * process start */
- cmin_flt, /* cumulative min_flt of process and
- * child processes */
- cmaj_flt, /* cumulative maj_flt of process and
- * child processes */
- kstk_esp, /* kernel stack pointer */
- kstk_eip, /* kernel stack pointer */
- nwchan; /* address of kernel wait channel
- * proc is sleeping in */
- char wchan [40];
+ u_int64_t flags;
+ u_int64_t k_flags, /* kernel flags for the process */
+ min_flt, /* number of minor page faults since
+ * process start */
+ maj_flt, /* number of major page faults since
+ * process start */
+ cmin_flt, /* cumulative min_flt of process and
+ * child processes */
+ cmaj_flt, /* cumulative maj_flt of process and
+ * child processes */
+ kstk_esp, /* kernel stack pointer */
+ kstk_eip, /* kernel stack pointer */
+ nwchan; /* address of kernel wait channel
+ * proc is sleeping in */
+ char wchan [40];
};
#define glibtop_get_proc_kernel(p1, p2) glibtop_get_proc_kernel_l(glibtop_global_server, p1, p2)
diff --git a/include/glibtop/proclist.h b/include/glibtop/proclist.h
index 00d3beed..7d2a034e 100644
--- a/include/glibtop/proclist.h
+++ b/include/glibtop/proclist.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -56,10 +58,10 @@ typedef struct _glibtop_proclist glibtop_proclist;
struct _glibtop_proclist
{
- u_int64_t flags,
- number, /* GLIBTOP_PROCLIST_NUMBER */
- total, /* GLIBTOP_PROCLIST_TOTAL */
- size; /* GLIBTOP_PROCLIST_SIZE */
+ u_int64_t flags,
+ number, /* GLIBTOP_PROCLIST_NUMBER */
+ total, /* GLIBTOP_PROCLIST_TOTAL */
+ size; /* GLIBTOP_PROCLIST_SIZE */
};
#define glibtop_get_proclist(proclist,which,arg) glibtop_get_proclist_l(glibtop_global_server, proclist, which, arg)
diff --git a/include/glibtop/procmap.h b/include/glibtop/procmap.h
index 0846bc28..4016e1fb 100644
--- a/include/glibtop/procmap.h
+++ b/include/glibtop/procmap.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -59,16 +61,16 @@ typedef struct _glibtop_proc_map glibtop_proc_map;
struct _glibtop_map_entry
{
- u_int64_t flags, start, end, offset, perm, inode, device;
- char filename [GLIBTOP_MAP_FILENAME_LEN+1];
+ u_int64_t flags, start, end, offset, perm, inode, device;
+ char filename [GLIBTOP_MAP_FILENAME_LEN+1];
};
struct _glibtop_proc_map
{
- u_int64_t flags,
- number, /* GLIBTOP_PROC_MAP_NUMBER */
- total, /* GLIBTOP_PROC_MAP_TOTAL */
- size; /* GLIBTOP_PROC_MAP_SIZE */
+ u_int64_t flags,
+ number, /* GLIBTOP_PROC_MAP_NUMBER */
+ total, /* GLIBTOP_PROC_MAP_TOTAL */
+ size; /* GLIBTOP_PROC_MAP_SIZE */
};
#define glibtop_get_proc_map(proc_map,pid) glibtop_get_proc_map_l(glibtop_global_server, proc_map, pid)
diff --git a/include/glibtop/procmem.h b/include/glibtop/procmem.h
index 7738c711..aa87239b 100644
--- a/include/glibtop/procmem.h
+++ b/include/glibtop/procmem.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -44,15 +46,15 @@ typedef struct _glibtop_proc_mem glibtop_proc_mem;
struct _glibtop_proc_mem
{
- u_int64_t flags,
- size, /* total # of pages of memory */
- vsize, /* number of pages of virtual memory ... */
- resident, /* number of resident set
- * (non-swapped) pages (4k) */
- share, /* number of pages of shared (mmap'd) memory */
- rss, /* resident set size */
- rss_rlim; /* current limit (in bytes) of the rss
- * of the process; usually 2,147,483,647 */
+ u_int64_t flags,
+ size, /* total # of pages of memory */
+ vsize, /* number of pages of virtual memory ... */
+ resident, /* number of resident set
+ * (non-swapped) pages (4k) */
+ share, /* number of pages of shared (mmap'd) memory */
+ rss, /* resident set size */
+ rss_rlim; /* current limit (in bytes) of the rss
+ * of the process; usually 2,147,483,647 */
};
#define glibtop_get_proc_mem(p1, p2) glibtop_get_proc_mem_l(glibtop_global_server, p1, p2)
diff --git a/include/glibtop/procsegment.h b/include/glibtop/procsegment.h
index e00444be..d0758c59 100644
--- a/include/glibtop/procsegment.h
+++ b/include/glibtop/procsegment.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -46,16 +48,16 @@ typedef struct _glibtop_proc_segment glibtop_proc_segment;
struct _glibtop_proc_segment
{
- u_int64_t flags,
- text_rss, /* text resident set size */
- shlib_rss, /* shared-lib resident set size */
- data_rss, /* data resident set size */
- stack_rss, /* stack resident set size */
- dirty_size, /* size of dirty pages */
- start_code,
+ u_int64_t flags,
+ text_rss, /* text resident set size */
+ shlib_rss, /* shared-lib resident set size */
+ data_rss, /* data resident set size */
+ stack_rss, /* stack resident set size */
+ dirty_size, /* size of dirty pages */
+ start_code,
/* address of beginning of code segment */
- end_code, /* address of end of code segment */
- start_stack; /* address of the bottom of stack segment */
+ end_code, /* address of end of code segment */
+ start_stack; /* address of the bottom of stack segment */
};
#define glibtop_get_proc_segment(p1, p2) glibtop_get_proc_segment_l(glibtop_global_server, p1, p2)
diff --git a/include/glibtop/procsignal.h b/include/glibtop/procsignal.h
index 4a9bd162..2c610c89 100644
--- a/include/glibtop/procsignal.h
+++ b/include/glibtop/procsignal.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -42,11 +44,11 @@ typedef struct _glibtop_proc_signal glibtop_proc_signal;
struct _glibtop_proc_signal
{
- u_int64_t flags,
- signal [2], /* mask of pending signals */
- blocked [2], /* mask of blocked signals */
- sigignore [2], /* mask of ignored signals */
- sigcatch [2]; /* mask of caught signals */
+ u_int64_t flags,
+ signal [2], /* mask of pending signals */
+ blocked [2], /* mask of blocked signals */
+ sigignore [2], /* mask of ignored signals */
+ sigcatch [2]; /* mask of caught signals */
};
#define glibtop_get_proc_signal(p1, p2) glibtop_get_proc_signal_l(glibtop_global_server, p1, p2)
diff --git a/include/glibtop/procstate.h b/include/glibtop/procstate.h
index ae3fec18..6f34226f 100644
--- a/include/glibtop/procstate.h
+++ b/include/glibtop/procstate.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -42,18 +44,18 @@ typedef struct _glibtop_proc_state glibtop_proc_state;
struct _glibtop_proc_state
{
- u_int64_t flags;
- char cmd[40], /* basename of executable file in
+ u_int64_t flags;
+ char cmd[40], /* basename of executable file in
* call to exec(2) */
- state; /* single-char code for process state
+ state; /* single-char code for process state
* (S=sleeping) */
- /* NOTE: when porting the library, TRY HARD to implement the
- * following two fields. */
- /* IMPORTANT NOTICE: For security reasons, it is extremely important
- * only to set the flags value for those two
- * fields if their values are corrent ! */
- int uid, /* UID of process */
- gid; /* GID of process */
+ /* NOTE: when porting the library, TRY HARD to implement the
+ * following two fields. */
+ /* IMPORTANT NOTICE: For security reasons, it is extremely important
+ * only to set the flags value for those two
+ * fields if their values are corrent ! */
+ int uid, /* UID of process */
+ gid; /* GID of process */
};
#define glibtop_get_proc_state(p1, p2) glibtop_get_proc_state_l(glibtop_global_server, p1, p2)
diff --git a/include/glibtop/proctime.h b/include/glibtop/proctime.h
index 236af2e4..81349ac1 100644
--- a/include/glibtop/proctime.h
+++ b/include/glibtop/proctime.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -50,24 +52,24 @@ typedef struct _glibtop_proc_time glibtop_proc_time;
struct _glibtop_proc_time
{
- u_int64_t flags,
- start_time, /* start time of process --
- * seconds since 1-1-70 */
- rtime, /* real time accumulated by process */
- utime, /* user-mode CPU time accumulated by process */
- stime, /* kernel-mode CPU time accumulated by process */
- cutime, /* cumulative utime of process and
- * reaped children */
- cstime, /* cumulative stime of process and
- * reaped children */
- timeout, /* The time (in jiffies) of the process's
- * next timeout */
- it_real_value, /* The time (in jiffies) before the
- * next SIGALRM is sent to the process
- * due to an interval timer. */
- frequency, /* Tick frequency. */
- xcpu_utime [GLIBTOP_NCPU], /* utime and stime for all CPUs on */
- xcpu_stime [GLIBTOP_NCPU]; /* SMP machines. */
+ u_int64_t flags,
+ start_time, /* start time of process --
+ * seconds since 1-1-70 */
+ rtime, /* real time accumulated by process */
+ utime, /* user-mode CPU time accumulated by process */
+ stime, /* kernel-mode CPU time accumulated by process */
+ cutime, /* cumulative utime of process and
+ * reaped children */
+ cstime, /* cumulative stime of process and
+ * reaped children */
+ timeout, /* The time (in jiffies) of the process's
+ * next timeout */
+ it_real_value, /* The time (in jiffies) before the
+ * next SIGALRM is sent to the process
+ * due to an interval timer. */
+ frequency, /* Tick frequency. */
+ xcpu_utime [GLIBTOP_NCPU], /* utime and stime for all CPUs on */
+ xcpu_stime [GLIBTOP_NCPU]; /* SMP machines. */
};
#define glibtop_get_proc_time(p1, p2) glibtop_get_proc_time_l(glibtop_global_server, p1, p2)
diff --git a/include/glibtop/procuid.h b/include/glibtop/procuid.h
index 3be378db..f92408a0 100644
--- a/include/glibtop/procuid.h
+++ b/include/glibtop/procuid.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -50,19 +52,19 @@ typedef struct _glibtop_proc_uid glibtop_proc_uid;
struct _glibtop_proc_uid
{
- u_int64_t flags;
- int uid, /* user id */
- euid, /* effective user id */
- gid, /* group id */
- egid, /* effective group id */
- pid, /* process id */
- ppid, /* pid of parent process */
- pgrp, /* process group id */
- session, /* session id */
- tty, /* full device number of controlling terminal */
- tpgid, /* terminal process group id */
- priority, /* kernel scheduling priority */
- nice; /* standard unix nice level of process */
+ u_int64_t flags;
+ int uid, /* user id */
+ euid, /* effective user id */
+ gid, /* group id */
+ egid, /* effective group id */
+ pid, /* process id */
+ ppid, /* pid of parent process */
+ pgrp, /* process group id */
+ session, /* session id */
+ tty, /* full device number of controlling terminal */
+ tpgid, /* terminal process group id */
+ priority, /* kernel scheduling priority */
+ nice; /* standard unix nice level of process */
};
#define glibtop_get_proc_uid(p1, p2) glibtop_get_proc_uid_l(glibtop_global_server, p1, p2)
diff --git a/include/glibtop/read.h b/include/glibtop/read.h
index e4862ba6..143a96e0 100644
--- a/include/glibtop/read.h
+++ b/include/glibtop/read.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
diff --git a/include/glibtop/read_data.h b/include/glibtop/read_data.h
index 07bfec05..76aa1ee6 100644
--- a/include/glibtop/read_data.h
+++ b/include/glibtop/read_data.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
diff --git a/include/glibtop/sem_limits.h b/include/glibtop/sem_limits.h
index e9576ff7..f4d21c2c 100644
--- a/include/glibtop/sem_limits.h
+++ b/include/glibtop/sem_limits.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -46,17 +48,17 @@ typedef struct _glibtop_sem_limits glibtop_sem_limits;
struct _glibtop_sem_limits
{
- u_int64_t flags,
- semmap, /* GLIBTOP_IPC_SEMMAP */
- semmni, /* GLIBTOP_IPC_SEMMNI */
- semmns, /* GLIBTOP_IPC_SEMMNS */
- semmnu, /* GLIBTOP_IPC_SEMMNU */
- semmsl, /* GLIBTOP_IPC_SEMMSL */
- semopm, /* GLIBTOP_IPC_SEMOPM */
- semume, /* GLIBTOP_IPC_SEMUME */
- semusz, /* GLIBTOP_IPC_SEMUSZ */
- semvmx, /* GLIBTOP_IPC_SEMVMX */
- semaem; /* GLIBTOP_IPC_SEMAEM */
+ u_int64_t flags,
+ semmap, /* GLIBTOP_IPC_SEMMAP */
+ semmni, /* GLIBTOP_IPC_SEMMNI */
+ semmns, /* GLIBTOP_IPC_SEMMNS */
+ semmnu, /* GLIBTOP_IPC_SEMMNU */
+ semmsl, /* GLIBTOP_IPC_SEMMSL */
+ semopm, /* GLIBTOP_IPC_SEMOPM */
+ semume, /* GLIBTOP_IPC_SEMUME */
+ semusz, /* GLIBTOP_IPC_SEMUSZ */
+ semvmx, /* GLIBTOP_IPC_SEMVMX */
+ semaem; /* GLIBTOP_IPC_SEMAEM */
};
#define glibtop_get_sem_limits(sem) glibtop_get_sem_limits_l(glibtop_global_server, sem)
diff --git a/include/glibtop/shm_limits.h b/include/glibtop/shm_limits.h
index db7db793..77a93edf 100644
--- a/include/glibtop/shm_limits.h
+++ b/include/glibtop/shm_limits.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -41,12 +43,12 @@ 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 */
+ u_int64_t flags,
+ shmmax, /* GLIBTOP_IPC_SHMMAX */
+ shmmin, /* GLIBTOP_IPC_SHMMIN */
+ shmmni, /* GLIBTOP_IPC_SHMMNI */
+ shmseg, /* GLIBTOP_IPC_SHMSEG */
+ shmall; /* GLIBTOP_IPC_SHMALL */
};
#define glibtop_get_shm_limits(shm) glibtop_get_shm_limits_l(glibtop_global_server, shm)
diff --git a/include/glibtop/signal.h b/include/glibtop/signal.h
index f8235b40..652559d8 100644
--- a/include/glibtop/signal.h
+++ b/include/glibtop/signal.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -36,8 +38,8 @@ typedef struct _glibtop_signame glibtop_signame;
struct _glibtop_signame
{
- const int number;
- const char *name, *label;
+ const int number;
+ const char *name, *label;
};
extern const glibtop_signame glibtop_sys_siglist [];
diff --git a/include/glibtop/swap.h b/include/glibtop/swap.h
index 049c2c2f..540a321e 100644
--- a/include/glibtop/swap.h
+++ b/include/glibtop/swap.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -41,12 +43,12 @@ typedef struct _glibtop_swap glibtop_swap;
struct _glibtop_swap
{
- u_int64_t flags,
- total, /* GLIBTOP_SWAP_TOTAL */
- used, /* GLIBTOP_SWAP_USED */
- free, /* GLIBTOP_SWAP_FREE */
- pagein, /* GLIBTOP_SWAP_PAGEIN */
- pageout; /* GLIBTOP_SWAP_PAGEOUT */
+ u_int64_t flags,
+ total, /* GLIBTOP_SWAP_TOTAL */
+ used, /* GLIBTOP_SWAP_USED */
+ free, /* GLIBTOP_SWAP_FREE */
+ pagein, /* GLIBTOP_SWAP_PAGEIN */
+ pageout; /* GLIBTOP_SWAP_PAGEOUT */
};
#define glibtop_get_swap(swap) glibtop_get_swap_l(glibtop_global_server, swap)
diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h
index 125cdf01..b81d9f3f 100644
--- a/include/glibtop/sysdeps.h
+++ b/include/glibtop/sysdeps.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -64,30 +66,30 @@ typedef struct _glibtop_sysdeps glibtop_sysdeps;
struct _glibtop_sysdeps
{
- u_int64_t flags,
- features, /* server features */
- cpu, /* glibtop_cpu */
- mem, /* glibtop_mem */
- swap, /* glibtop_swap */
- uptime, /* glibtop_uptime */
- loadavg, /* glibtop_loadavg */
- shm_limits, /* glibtop_shm_limits */
- msg_limits, /* glibtop_msg_limits */
- sem_limits, /* glibtop_sem_limits */
- proclist, /* glibtop_proclist */
- proc_state, /* glibtop_proc_state */
- proc_uid, /* glibtop_proc_uid */
- proc_mem, /* glibtop_proc_mem */
- proc_time, /* glibtop_proc_time */
- proc_signal, /* glibtop_proc_signal */
- proc_kernel, /* glibtop_proc_kernel */
- proc_segment, /* glibtop_proc_segment */
- proc_args, /* glibtop_proc_args */
- proc_map, /* glibtop_proc_map */
- mountlist, /* glibtop_mountlist */
- fsusage, /* glibtop_fsusage */
- netload, /* glibtop_netload */
- ppp; /* glibtop_ppp */
+ u_int64_t flags,
+ features, /* server features */
+ cpu, /* glibtop_cpu */
+ mem, /* glibtop_mem */
+ swap, /* glibtop_swap */
+ uptime, /* glibtop_uptime */
+ loadavg, /* glibtop_loadavg */
+ shm_limits, /* glibtop_shm_limits */
+ msg_limits, /* glibtop_msg_limits */
+ sem_limits, /* glibtop_sem_limits */
+ proclist, /* glibtop_proclist */
+ proc_state, /* glibtop_proc_state */
+ proc_uid, /* glibtop_proc_uid */
+ proc_mem, /* glibtop_proc_mem */
+ proc_time, /* glibtop_proc_time */
+ proc_signal, /* glibtop_proc_signal */
+ proc_kernel, /* glibtop_proc_kernel */
+ proc_segment, /* glibtop_proc_segment */
+ proc_args, /* glibtop_proc_args */
+ proc_map, /* glibtop_proc_map */
+ mountlist, /* glibtop_mountlist */
+ fsusage, /* glibtop_fsusage */
+ netload, /* glibtop_netload */
+ ppp; /* glibtop_ppp */
};
#define glibtop_get_sysdeps(sysdeps) glibtop_get_sysdeps_r(glibtop_global_server,sysdeps)
diff --git a/include/glibtop/sysinfo.h b/include/glibtop/sysinfo.h
index 4dc53605..59a988b8 100644
--- a/include/glibtop/sysinfo.h
+++ b/include/glibtop/sysinfo.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -42,15 +44,15 @@ typedef struct _glibtop_entry glibtop_entry;
struct _glibtop_entry
{
- GPtrArray *labels;
- GHashTable *values;
- GHashTable *descriptions;
+ GPtrArray *labels;
+ GHashTable *values;
+ GHashTable *descriptions;
};
struct _glibtop_sysinfo
{
- u_int64_t flags, ncpu;
- glibtop_entry cpuinfo [GLIBTOP_NCPU];
+ u_int64_t flags, ncpu;
+ glibtop_entry cpuinfo [GLIBTOP_NCPU];
};
#define glibtop_get_sysinfo() glibtop_get_sysinfo_s(glibtop_global_server)
diff --git a/include/glibtop/types.h b/include/glibtop/types.h
index ab052b08..8f43220b 100644
--- a/include/glibtop/types.h
+++ b/include/glibtop/types.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
diff --git a/include/glibtop/union.h b/include/glibtop/union.h
index 22dfe67d..aac6b518 100644
--- a/include/glibtop/union.h
+++ b/include/glibtop/union.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -56,28 +58,28 @@ typedef union _glibtop_union glibtop_union;
union _glibtop_union
{
- glibtop_cpu cpu;
- glibtop_mem mem;
- glibtop_swap swap;
- glibtop_uptime uptime;
- glibtop_loadavg loadavg;
- glibtop_shm_limits shm_limits;
- glibtop_msg_limits msg_limits;
- glibtop_sem_limits sem_limits;
- glibtop_proclist proclist;
- glibtop_proc_state proc_state;
- glibtop_proc_uid proc_uid;
- glibtop_proc_mem proc_mem;
- glibtop_proc_time proc_time;
- glibtop_proc_signal proc_signal;
- glibtop_proc_kernel proc_kernel;
- glibtop_proc_segment proc_segment;
- glibtop_proc_args proc_args;
- glibtop_proc_map proc_map;
- glibtop_mountlist mountlist;
- glibtop_fsusage fsusage;
- glibtop_netload netload;
- glibtop_ppp ppp;
+ glibtop_cpu cpu;
+ glibtop_mem mem;
+ glibtop_swap swap;
+ glibtop_uptime uptime;
+ glibtop_loadavg loadavg;
+ glibtop_shm_limits shm_limits;
+ glibtop_msg_limits msg_limits;
+ glibtop_sem_limits sem_limits;
+ glibtop_proclist proclist;
+ glibtop_proc_state proc_state;
+ glibtop_proc_uid proc_uid;
+ glibtop_proc_mem proc_mem;
+ glibtop_proc_time proc_time;
+ glibtop_proc_signal proc_signal;
+ glibtop_proc_kernel proc_kernel;
+ glibtop_proc_segment proc_segment;
+ glibtop_proc_args proc_args;
+ glibtop_proc_map proc_map;
+ glibtop_mountlist mountlist;
+ glibtop_fsusage fsusage;
+ glibtop_netload netload;
+ glibtop_ppp ppp;
};
END_LIBGTOP_DECLS
diff --git a/include/glibtop/uptime.h b/include/glibtop/uptime.h
index a487eb47..25a00776 100644
--- a/include/glibtop/uptime.h
+++ b/include/glibtop/uptime.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -38,9 +40,10 @@ typedef struct _glibtop_uptime glibtop_uptime;
struct _glibtop_uptime
{
- u_int64_t flags;
- double uptime, /* GLIBTOP_UPTIME_UPTIME */
- idletime; /* GLIBTOP_UPTIME_IDLETIME */
+ u_int64_t flags;
+ double uptime, /* GLIBTOP_UPTIME_UPTIME */
+ idletime; /* GLIBTOP_UPTIME_IDLETIME */
+ u_int64_t boot_time; /* GLIBTOP_UPTIME_BOOT_TIME */
};
#define glibtop_get_uptime(uptime) glibtop_get_uptime_l(glibtop_global_server, uptime)
diff --git a/include/glibtop/version.h b/include/glibtop/version.h
index 92354833..d0fc9cc6 100644
--- a/include/glibtop/version.h
+++ b/include/glibtop/version.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
diff --git a/include/glibtop/write.h b/include/glibtop/write.h
index bff8d4e7..5ab10c21 100644
--- a/include/glibtop/write.h
+++ b/include/glibtop/write.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
diff --git a/include/glibtop/xmalloc.h b/include/glibtop/xmalloc.h
index 9f5eac06..d7b6ce57 100644
--- a/include/glibtop/xmalloc.h
+++ b/include/glibtop/xmalloc.h
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig