Changed indentation:

tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4
This commit is contained in:
Martin Baulig
1999-03-30 14:23:42 +00:00
parent 66dddd9799
commit 24a1fe55bb
39 changed files with 377 additions and 298 deletions

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -69,22 +71,22 @@ typedef union _glibtop_response_union glibtop_response_union;
struct _glibtop_command struct _glibtop_command
{ {
u_int64_t command; u_int64_t command;
u_int64_t size, data_size; u_int64_t size, data_size;
char parameter [_GLIBTOP_PARAM_SIZE]; char parameter [_GLIBTOP_PARAM_SIZE];
}; };
union _glibtop_response_union union _glibtop_response_union
{ {
glibtop_union data; glibtop_union data;
glibtop_sysdeps sysdeps; glibtop_sysdeps sysdeps;
}; };
struct _glibtop_response struct _glibtop_response
{ {
int64_t offset; int64_t offset;
u_int64_t size, data_size; u_int64_t size, data_size;
glibtop_response_union u; glibtop_response_union u;
}; };
#define glibtop_call(p1, p2, p3, p4) glibtop_call_r(glibtop_global_server, p1, p2, p3, p4) #define glibtop_call(p1, p2, p3, p4) glibtop_call_r(glibtop_global_server, p1, p2, p3, p4)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -51,18 +53,18 @@ typedef struct _glibtop_cpu glibtop_cpu;
struct _glibtop_cpu struct _glibtop_cpu
{ {
u_int64_t flags, u_int64_t flags,
total, /* GLIBTOP_CPU_TOTAL */ total, /* GLIBTOP_CPU_TOTAL */
user, /* GLIBTOP_CPU_USER */ user, /* GLIBTOP_CPU_USER */
nice, /* GLIBTOP_CPU_NICE */ nice, /* GLIBTOP_CPU_NICE */
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_XCPU_TOTAL */
xcpu_user [GLIBTOP_NCPU], /* GLIBTOP_XCPU_USER */ xcpu_user [GLIBTOP_NCPU], /* GLIBTOP_XCPU_USER */
xcpu_nice [GLIBTOP_NCPU], /* GLIBTOP_XCPU_NICE */ xcpu_nice [GLIBTOP_NCPU], /* GLIBTOP_XCPU_NICE */
xcpu_sys [GLIBTOP_NCPU], /* GLIBTOP_XCPU_SYS */ xcpu_sys [GLIBTOP_NCPU], /* GLIBTOP_XCPU_SYS */
xcpu_idle [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_IDLE */ xcpu_idle [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_IDLE */
}; };
#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)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* 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 static void
glibtop_error_r (glibtop *server, char *format, ...) glibtop_error_r (glibtop *server, char *format, ...)
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
glibtop_error_vr (server, format, args); glibtop_error_vr (server, format, args);
va_end (args); va_end (args);
} }
static void static void
glibtop_warn_r (glibtop *server, char *format, ...) glibtop_warn_r (glibtop *server, char *format, ...)
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
glibtop_warn_vr (server, format, args); glibtop_warn_vr (server, format, args);
va_end (args); va_end (args);
} }
static void static void
glibtop_error_io_r (glibtop *server, char *format, ...) glibtop_error_io_r (glibtop *server, char *format, ...)
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
glibtop_error_io_vr (server, format, errno, args); glibtop_error_io_vr (server, format, errno, args);
va_end (args); va_end (args);
} }
static void static void
glibtop_warn_io_r (glibtop *server, char *format, ...) glibtop_warn_io_r (glibtop *server, char *format, ...)
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
glibtop_warn_io_vr (server, format, errno, args); glibtop_warn_io_vr (server, format, errno, args);
va_end (args); va_end (args);
} }
#ifdef __GNUC__ #ifdef __GNUC__
@@ -87,37 +89,37 @@ glibtop_warn_io_r (glibtop *server, char *format, ...)
static void static void
glibtop_error (char *format, ...) glibtop_error (char *format, ...)
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
glibtop_error_vr (glibtop_global_server, format, args); glibtop_error_vr (glibtop_global_server, format, args);
va_end (args); va_end (args);
} }
static void static void
glibtop_warn (char *format, ...) glibtop_warn (char *format, ...)
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
glibtop_warn_vr (glibtop_global_server, format, args); glibtop_warn_vr (glibtop_global_server, format, args);
va_end (args); va_end (args);
} }
static void static void
glibtop_error_io (char *format, ...) glibtop_error_io (char *format, ...)
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
glibtop_error_io_vr (glibtop_global_server, format, errno, args); glibtop_error_io_vr (glibtop_global_server, format, errno, args);
va_end (args); va_end (args);
} }
static void static void
glibtop_warn_io (char *format, ...) glibtop_warn_io (char *format, ...)
{ {
va_list args; va_list args;
va_start (args, format); va_start (args, format);
glibtop_warn_io_vr (glibtop_global_server, format, errno, args); glibtop_warn_io_vr (glibtop_global_server, format, errno, args);
va_end (args); va_end (args);
} }
#endif /* no __GNUC__ */ #endif /* no __GNUC__ */

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -41,12 +43,12 @@ typedef struct _glibtop_fsusage glibtop_fsusage;
struct _glibtop_fsusage struct _glibtop_fsusage
{ {
u_int64_t flags, u_int64_t flags,
blocks, /* Total blocks. */ blocks, /* Total blocks. */
bfree, /* Free blocks available to superuser. */ bfree, /* Free blocks available to superuser. */
bavail, /* Free blocks available to non-superuser. */ bavail, /* Free blocks available to non-superuser. */
files, /* Total file nodes. */ files, /* Total file nodes. */
ffree; /* Free file nodes. */ ffree; /* Free file nodes. */
}; };
#define glibtop_get_fsusage(fsusage,disk) glibtop_get_fsusage_l(glibtop_global_server, fsusage, disk) #define glibtop_get_fsusage(fsusage,disk) glibtop_get_fsusage_l(glibtop_global_server, fsusage, disk)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0. This file is part of LibGTop 1.0.
@@ -39,12 +41,12 @@ typedef struct _glibtop_inodedb_key glibtop_inodedb_key;
struct _glibtop_inodedb_key struct _glibtop_inodedb_key
{ {
u_int64_t device, inode; u_int64_t device, inode;
}; };
struct _glibtop_inodedb 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) #define glibtop_inodedb_open(p1,p2) glibtop_inodedb_open_s(glibtop_global_server, p1, p2)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -40,11 +42,11 @@ typedef struct _glibtop_loadavg glibtop_loadavg;
struct _glibtop_loadavg struct _glibtop_loadavg
{ {
u_int64_t flags; u_int64_t flags;
double loadavg [3]; /* GLIBTOP_LOADAVG_LOADAVG */ double loadavg [3]; /* GLIBTOP_LOADAVG_LOADAVG */
u_int64_t nr_running, /* GLIBTOP_LOADAVG_NR_RUNNING */ u_int64_t nr_running, /* GLIBTOP_LOADAVG_NR_RUNNING */
nr_tasks, /* GLIBTOP_LOADAVG_NR_TASKS */ nr_tasks, /* GLIBTOP_LOADAVG_NR_TASKS */
last_pid; /* GLIBTOP_LOADAVG_LAST_PID */ last_pid; /* GLIBTOP_LOADAVG_LAST_PID */
}; };
#define glibtop_get_loadavg(loadavg) glibtop_get_loadavg_l(glibtop_global_server, loadavg) #define glibtop_get_loadavg(loadavg) glibtop_get_loadavg_l(glibtop_global_server, loadavg)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -44,15 +46,15 @@ typedef struct _glibtop_mem glibtop_mem;
struct _glibtop_mem struct _glibtop_mem
{ {
u_int64_t flags, u_int64_t flags,
total, /* GLIBTOP_MEM_TOTAL */ total, /* GLIBTOP_MEM_TOTAL */
used, /* GLIBTOP_MEM_USED */ used, /* GLIBTOP_MEM_USED */
free, /* GLIBTOP_MEM_FREE */ free, /* GLIBTOP_MEM_FREE */
shared, /* GLIBTOP_MEM_SHARED */ shared, /* GLIBTOP_MEM_SHARED */
buffer, /* GLIBTOP_MEM_BUFFER */ buffer, /* GLIBTOP_MEM_BUFFER */
cached, /* GLIBTOP_MEM_CACHED */ cached, /* GLIBTOP_MEM_CACHED */
user, /* GLIBTOP_MEM_USER */ user, /* GLIBTOP_MEM_USER */
locked; /* GLIBTOP_MEM_LOCKED */ locked; /* GLIBTOP_MEM_LOCKED */
}; };
#define glibtop_get_mem(mem) glibtop_get_mem_l(glibtop_global_server, mem) #define glibtop_get_mem(mem) glibtop_get_mem_l(glibtop_global_server, mem)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -41,18 +43,18 @@ typedef struct _glibtop_mountlist glibtop_mountlist;
struct _glibtop_mountentry struct _glibtop_mountentry
{ {
u_int64_t dev; u_int64_t dev;
char devname [GLIBTOP_MOUNTENTRY_LEN+1]; char devname [GLIBTOP_MOUNTENTRY_LEN+1];
char mountdir [GLIBTOP_MOUNTENTRY_LEN+1]; char mountdir [GLIBTOP_MOUNTENTRY_LEN+1];
char type [GLIBTOP_MOUNTENTRY_LEN+1]; char type [GLIBTOP_MOUNTENTRY_LEN+1];
}; };
struct _glibtop_mountlist struct _glibtop_mountlist
{ {
u_int64_t flags, u_int64_t flags,
number, /* GLIBTOP_MOUNTLIST_NUMBER */ number, /* GLIBTOP_MOUNTLIST_NUMBER */
total, /* GLIBTOP_MOUNTLIST_TOTAL */ total, /* GLIBTOP_MOUNTLIST_TOTAL */
size; /* GLIBTOP_MOUNTLIST_SIZE */ size; /* GLIBTOP_MOUNTLIST_SIZE */
}; };
#define glibtop_get_mountlist(mountlist,all_fs) glibtop_get_mountlist_l(glibtop_global_server, mountlist, all_fs) #define glibtop_get_mountlist(mountlist,all_fs) glibtop_get_mountlist_l(glibtop_global_server, mountlist, all_fs)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -43,14 +45,14 @@ 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_IPC_MSGPOOL */
msgmap, /* GLIBTOP_IPC_MSGMAP */ msgmap, /* GLIBTOP_IPC_MSGMAP */
msgmax, /* GLIBTOP_IPC_MSGMAX */ msgmax, /* GLIBTOP_IPC_MSGMAX */
msgmnb, /* GLIBTOP_IPC_MSGMNB */ msgmnb, /* GLIBTOP_IPC_MSGMNB */
msgmni, /* GLIBTOP_IPC_MSGMNI */ msgmni, /* GLIBTOP_IPC_MSGMNI */
msgssz, /* GLIBTOP_IPC_MSGSSZ */ msgssz, /* GLIBTOP_IPC_MSGSSZ */
msgtql; /* GLIBTOP_IPC_MSGTQL */ msgtql; /* GLIBTOP_IPC_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)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -49,41 +51,41 @@ BEGIN_LIBGTOP_DECLS
typedef struct _glibtop_netload glibtop_netload; typedef struct _glibtop_netload glibtop_netload;
enum { enum {
GLIBTOP_IF_FLAGS_UP = 1, GLIBTOP_IF_FLAGS_UP = 1,
GLIBTOP_IF_FLAGS_BROADCAST, GLIBTOP_IF_FLAGS_BROADCAST,
GLIBTOP_IF_FLAGS_DEBUG, GLIBTOP_IF_FLAGS_DEBUG,
GLIBTOP_IF_FLAGS_LOOPBACK, GLIBTOP_IF_FLAGS_LOOPBACK,
GLIBTOP_IF_FLAGS_POINTOPOINT, GLIBTOP_IF_FLAGS_POINTOPOINT,
GLIBTOP_IF_FLAGS_RUNNING, GLIBTOP_IF_FLAGS_RUNNING,
GLIBTOP_IF_FLAGS_NOARP, GLIBTOP_IF_FLAGS_NOARP,
GLIBTOP_IF_FLAGS_PROMISC, GLIBTOP_IF_FLAGS_PROMISC,
GLIBTOP_IF_FLAGS_ALLMULTI, GLIBTOP_IF_FLAGS_ALLMULTI,
GLIBTOP_IF_FLAGS_OACTIVE, GLIBTOP_IF_FLAGS_OACTIVE,
GLIBTOP_IF_FLAGS_SIMPLEX, GLIBTOP_IF_FLAGS_SIMPLEX,
GLIBTOP_IF_FLAGS_LINK0, GLIBTOP_IF_FLAGS_LINK0,
GLIBTOP_IF_FLAGS_LINK1, GLIBTOP_IF_FLAGS_LINK1,
GLIBTOP_IF_FLAGS_LINK2, GLIBTOP_IF_FLAGS_LINK2,
GLIBTOP_IF_FLAGS_ALTPHYS, GLIBTOP_IF_FLAGS_ALTPHYS,
GLIBTOP_IF_FLAGS_MULTICAST GLIBTOP_IF_FLAGS_MULTICAST
}; };
struct _glibtop_netload struct _glibtop_netload
{ {
u_int64_t flags, u_int64_t flags,
if_flags, /* GLIBTOP_NETLOAD_IF_FLAGS */ if_flags, /* GLIBTOP_NETLOAD_IF_FLAGS */
mtu, /* GLIBTOP_NETLOAD_MTU */ mtu, /* GLIBTOP_NETLOAD_MTU */
subnet, /* GLIBTOP_NETLOAD_SUBNET */ subnet, /* GLIBTOP_NETLOAD_SUBNET */
address, /* GLIBTOP_NETLOAD_ADDRESS */ address, /* GLIBTOP_NETLOAD_ADDRESS */
packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */ packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */
packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */ packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */
packets_total, /* GLIBTOP_NETLOAD_PACKETS_TOTAL*/ packets_total, /* GLIBTOP_NETLOAD_PACKETS_TOTAL*/
bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */ bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */
bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */ bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */
bytes_total, /* GLIBTOP_NETLOAD_BYTES_TOTAL */ bytes_total, /* GLIBTOP_NETLOAD_BYTES_TOTAL */
errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */ errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */
errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */ errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */
errors_total, /* GLIBTOP_NETLOAD_ERRORS_TOTAL */ errors_total, /* GLIBTOP_NETLOAD_ERRORS_TOTAL */
collisions; /* GLIBTOP_NETLOAD_COLLISIONS */ collisions; /* GLIBTOP_NETLOAD_COLLISIONS */
}; };
#define glibtop_get_netload(netload,interface) glibtop_get_netload_l(glibtop_global_server, netload, interface) #define glibtop_get_netload(netload,interface) glibtop_get_netload_l(glibtop_global_server, netload, interface)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0. This file is part of LibGTop 1.0.

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0. This file is part of LibGTop 1.0.

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -38,17 +40,17 @@ BEGIN_LIBGTOP_DECLS
typedef struct _glibtop_ppp glibtop_ppp; typedef struct _glibtop_ppp glibtop_ppp;
enum { enum {
GLIBTOP_PPP_STATE_UNKNOWN = 0, GLIBTOP_PPP_STATE_UNKNOWN = 0,
GLIBTOP_PPP_STATE_HANGUP, GLIBTOP_PPP_STATE_HANGUP,
GLIBTOP_PPP_STATE_ONLINE GLIBTOP_PPP_STATE_ONLINE
}; };
struct _glibtop_ppp struct _glibtop_ppp
{ {
u_int64_t flags, u_int64_t flags,
state, /* GLIBTOP_PPP_STATE */ state, /* GLIBTOP_PPP_STATE */
bytes_in, /* GLIBTOP_PPP_BYTES_IN */ bytes_in, /* GLIBTOP_PPP_BYTES_IN */
bytes_out; /* GLIBTOP_PPP_BYTES_OUT */ bytes_out; /* GLIBTOP_PPP_BYTES_OUT */
}; };
#define glibtop_get_ppp(ppp,device) glibtop_get_ppp_l(glibtop_global_server, ppp, device) #define glibtop_get_ppp(ppp,device) glibtop_get_ppp_l(glibtop_global_server, ppp, device)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -37,8 +39,8 @@ typedef struct _glibtop_proc_args glibtop_proc_args;
struct _glibtop_proc_args struct _glibtop_proc_args
{ {
u_int64_t flags, u_int64_t flags,
size; /* GLIBTOP_PROC_ARGS_SIZE */ 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) #define glibtop_get_proc_args(proc_args,pid,max_len) glibtop_get_proc_args_l(glibtop_global_server, proc_args, pid, max_len)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -47,21 +49,21 @@ typedef struct _glibtop_proc_kernel glibtop_proc_kernel;
struct _glibtop_proc_kernel struct _glibtop_proc_kernel
{ {
u_int64_t flags; u_int64_t flags;
u_int64_t k_flags, /* kernel flags for the process */ u_int64_t k_flags, /* kernel flags for the process */
min_flt, /* number of minor page faults since min_flt, /* number of minor page faults since
* process start */ * process start */
maj_flt, /* number of major page faults since maj_flt, /* number of major page faults since
* process start */ * process start */
cmin_flt, /* cumulative min_flt of process and cmin_flt, /* cumulative min_flt of process and
* child processes */ * child processes */
cmaj_flt, /* cumulative maj_flt of process and cmaj_flt, /* cumulative maj_flt of process and
* child processes */ * child processes */
kstk_esp, /* kernel stack pointer */ kstk_esp, /* kernel stack pointer */
kstk_eip, /* kernel stack pointer */ kstk_eip, /* kernel stack pointer */
nwchan; /* address of kernel wait channel nwchan; /* address of kernel wait channel
* proc is sleeping in */ * proc is sleeping in */
char wchan [40]; char wchan [40];
}; };
#define glibtop_get_proc_kernel(p1, p2) glibtop_get_proc_kernel_l(glibtop_global_server, p1, p2) #define glibtop_get_proc_kernel(p1, p2) glibtop_get_proc_kernel_l(glibtop_global_server, p1, p2)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -56,10 +58,10 @@ typedef struct _glibtop_proclist glibtop_proclist;
struct _glibtop_proclist struct _glibtop_proclist
{ {
u_int64_t flags, u_int64_t flags,
number, /* GLIBTOP_PROCLIST_NUMBER */ number, /* GLIBTOP_PROCLIST_NUMBER */
total, /* GLIBTOP_PROCLIST_TOTAL */ total, /* GLIBTOP_PROCLIST_TOTAL */
size; /* GLIBTOP_PROCLIST_SIZE */ size; /* GLIBTOP_PROCLIST_SIZE */
}; };
#define glibtop_get_proclist(proclist,which,arg) glibtop_get_proclist_l(glibtop_global_server, proclist, which, arg) #define glibtop_get_proclist(proclist,which,arg) glibtop_get_proclist_l(glibtop_global_server, proclist, which, arg)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -59,16 +61,16 @@ typedef struct _glibtop_proc_map glibtop_proc_map;
struct _glibtop_map_entry struct _glibtop_map_entry
{ {
u_int64_t flags, start, end, offset, perm, inode, device; u_int64_t flags, start, end, offset, perm, inode, device;
char filename [GLIBTOP_MAP_FILENAME_LEN+1]; char filename [GLIBTOP_MAP_FILENAME_LEN+1];
}; };
struct _glibtop_proc_map struct _glibtop_proc_map
{ {
u_int64_t flags, u_int64_t flags,
number, /* GLIBTOP_PROC_MAP_NUMBER */ number, /* GLIBTOP_PROC_MAP_NUMBER */
total, /* GLIBTOP_PROC_MAP_TOTAL */ total, /* GLIBTOP_PROC_MAP_TOTAL */
size; /* GLIBTOP_PROC_MAP_SIZE */ size; /* GLIBTOP_PROC_MAP_SIZE */
}; };
#define glibtop_get_proc_map(proc_map,pid) glibtop_get_proc_map_l(glibtop_global_server, proc_map, pid) #define glibtop_get_proc_map(proc_map,pid) glibtop_get_proc_map_l(glibtop_global_server, proc_map, pid)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -44,15 +46,15 @@ typedef struct _glibtop_proc_mem glibtop_proc_mem;
struct _glibtop_proc_mem struct _glibtop_proc_mem
{ {
u_int64_t flags, u_int64_t flags,
size, /* total # of pages of memory */ size, /* total # of pages of memory */
vsize, /* number of pages of virtual memory ... */ vsize, /* number of pages of virtual memory ... */
resident, /* number of resident set resident, /* number of resident set
* (non-swapped) pages (4k) */ * (non-swapped) pages (4k) */
share, /* number of pages of shared (mmap'd) memory */ share, /* number of pages of shared (mmap'd) memory */
rss, /* resident set size */ rss, /* resident set size */
rss_rlim; /* current limit (in bytes) of the rss rss_rlim; /* current limit (in bytes) of the rss
* of the process; usually 2,147,483,647 */ * 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) #define glibtop_get_proc_mem(p1, p2) glibtop_get_proc_mem_l(glibtop_global_server, p1, p2)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -46,16 +48,16 @@ typedef struct _glibtop_proc_segment glibtop_proc_segment;
struct _glibtop_proc_segment struct _glibtop_proc_segment
{ {
u_int64_t flags, u_int64_t flags,
text_rss, /* text resident set size */ text_rss, /* text resident set size */
shlib_rss, /* shared-lib resident set size */ shlib_rss, /* shared-lib resident set size */
data_rss, /* data resident set size */ data_rss, /* data resident set size */
stack_rss, /* stack resident set size */ stack_rss, /* stack resident set size */
dirty_size, /* size of dirty pages */ dirty_size, /* size of dirty pages */
start_code, start_code,
/* address of beginning of code segment */ /* address of beginning of code segment */
end_code, /* address of end of code segment */ end_code, /* address of end of code segment */
start_stack; /* address of the bottom of stack 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) #define glibtop_get_proc_segment(p1, p2) glibtop_get_proc_segment_l(glibtop_global_server, p1, p2)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -42,11 +44,11 @@ typedef struct _glibtop_proc_signal glibtop_proc_signal;
struct _glibtop_proc_signal struct _glibtop_proc_signal
{ {
u_int64_t flags, u_int64_t flags,
signal [2], /* mask of pending signals */ signal [2], /* mask of pending signals */
blocked [2], /* mask of blocked signals */ blocked [2], /* mask of blocked signals */
sigignore [2], /* mask of ignored signals */ sigignore [2], /* mask of ignored signals */
sigcatch [2]; /* mask of caught signals */ sigcatch [2]; /* mask of caught signals */
}; };
#define glibtop_get_proc_signal(p1, p2) glibtop_get_proc_signal_l(glibtop_global_server, p1, p2) #define glibtop_get_proc_signal(p1, p2) glibtop_get_proc_signal_l(glibtop_global_server, p1, p2)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -42,18 +44,18 @@ typedef struct _glibtop_proc_state glibtop_proc_state;
struct _glibtop_proc_state struct _glibtop_proc_state
{ {
u_int64_t flags; u_int64_t flags;
char cmd[40], /* basename of executable file in char cmd[40], /* basename of executable file in
* call to exec(2) */ * call to exec(2) */
state; /* single-char code for process state state; /* single-char code for process state
* (S=sleeping) */ * (S=sleeping) */
/* NOTE: when porting the library, TRY HARD to implement the /* NOTE: when porting the library, TRY HARD to implement the
* following two fields. */ * following two fields. */
/* IMPORTANT NOTICE: For security reasons, it is extremely important /* IMPORTANT NOTICE: For security reasons, it is extremely important
* only to set the flags value for those two * only to set the flags value for those two
* fields if their values are corrent ! */ * fields if their values are corrent ! */
int uid, /* UID of process */ int uid, /* UID of process */
gid; /* GID of process */ gid; /* GID of process */
}; };
#define glibtop_get_proc_state(p1, p2) glibtop_get_proc_state_l(glibtop_global_server, p1, p2) #define glibtop_get_proc_state(p1, p2) glibtop_get_proc_state_l(glibtop_global_server, p1, p2)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -50,24 +52,24 @@ typedef struct _glibtop_proc_time glibtop_proc_time;
struct _glibtop_proc_time struct _glibtop_proc_time
{ {
u_int64_t flags, u_int64_t flags,
start_time, /* start time of process -- start_time, /* start time of process --
* seconds since 1-1-70 */ * seconds since 1-1-70 */
rtime, /* real time accumulated by process */ rtime, /* real time accumulated by process */
utime, /* user-mode CPU time accumulated by process */ utime, /* user-mode CPU time accumulated by process */
stime, /* kernel-mode CPU time accumulated by process */ stime, /* kernel-mode CPU time accumulated by process */
cutime, /* cumulative utime of process and cutime, /* cumulative utime of process and
* reaped children */ * reaped children */
cstime, /* cumulative stime of process and cstime, /* cumulative stime of process and
* reaped children */ * reaped children */
timeout, /* The time (in jiffies) of the process's timeout, /* The time (in jiffies) of the process's
* next timeout */ * next timeout */
it_real_value, /* The time (in jiffies) before the it_real_value, /* The time (in jiffies) before the
* next SIGALRM is sent to the process * next SIGALRM is sent to the process
* due to an interval timer. */ * due to an interval timer. */
frequency, /* Tick frequency. */ frequency, /* Tick frequency. */
xcpu_utime [GLIBTOP_NCPU], /* utime and stime for all CPUs on */ xcpu_utime [GLIBTOP_NCPU], /* utime and stime for all CPUs on */
xcpu_stime [GLIBTOP_NCPU]; /* SMP machines. */ xcpu_stime [GLIBTOP_NCPU]; /* SMP machines. */
}; };
#define glibtop_get_proc_time(p1, p2) glibtop_get_proc_time_l(glibtop_global_server, p1, p2) #define glibtop_get_proc_time(p1, p2) glibtop_get_proc_time_l(glibtop_global_server, p1, p2)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -50,19 +52,19 @@ typedef struct _glibtop_proc_uid glibtop_proc_uid;
struct _glibtop_proc_uid struct _glibtop_proc_uid
{ {
u_int64_t flags; u_int64_t flags;
int uid, /* user id */ int uid, /* user id */
euid, /* effective user id */ euid, /* effective user id */
gid, /* group id */ gid, /* group id */
egid, /* effective group id */ egid, /* effective group id */
pid, /* process id */ pid, /* process id */
ppid, /* pid of parent process */ ppid, /* pid of parent process */
pgrp, /* process group id */ pgrp, /* process group id */
session, /* session id */ session, /* session id */
tty, /* full device number of controlling terminal */ tty, /* full device number of controlling terminal */
tpgid, /* terminal process group id */ tpgid, /* terminal process group id */
priority, /* kernel scheduling priority */ priority, /* kernel scheduling priority */
nice; /* standard unix nice level of process */ nice; /* standard unix nice level of process */
}; };
#define glibtop_get_proc_uid(p1, p2) glibtop_get_proc_uid_l(glibtop_global_server, p1, p2) #define glibtop_get_proc_uid(p1, p2) glibtop_get_proc_uid_l(glibtop_global_server, p1, p2)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -46,17 +48,17 @@ 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_IPC_SEMMAP */
semmni, /* GLIBTOP_IPC_SEMMNI */ semmni, /* GLIBTOP_IPC_SEMMNI */
semmns, /* GLIBTOP_IPC_SEMMNS */ semmns, /* GLIBTOP_IPC_SEMMNS */
semmnu, /* GLIBTOP_IPC_SEMMNU */ semmnu, /* GLIBTOP_IPC_SEMMNU */
semmsl, /* GLIBTOP_IPC_SEMMSL */ semmsl, /* GLIBTOP_IPC_SEMMSL */
semopm, /* GLIBTOP_IPC_SEMOPM */ semopm, /* GLIBTOP_IPC_SEMOPM */
semume, /* GLIBTOP_IPC_SEMUME */ semume, /* GLIBTOP_IPC_SEMUME */
semusz, /* GLIBTOP_IPC_SEMUSZ */ semusz, /* GLIBTOP_IPC_SEMUSZ */
semvmx, /* GLIBTOP_IPC_SEMVMX */ semvmx, /* GLIBTOP_IPC_SEMVMX */
semaem; /* GLIBTOP_IPC_SEMAEM */ semaem; /* GLIBTOP_IPC_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)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -41,12 +43,12 @@ 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_IPC_SHMMAX */
shmmin, /* GLIBTOP_IPC_SHMMIN */ shmmin, /* GLIBTOP_IPC_SHMMIN */
shmmni, /* GLIBTOP_IPC_SHMMNI */ shmmni, /* GLIBTOP_IPC_SHMMNI */
shmseg, /* GLIBTOP_IPC_SHMSEG */ shmseg, /* GLIBTOP_IPC_SHMSEG */
shmall; /* GLIBTOP_IPC_SHMALL */ shmall; /* GLIBTOP_IPC_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)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -36,8 +38,8 @@ typedef struct _glibtop_signame glibtop_signame;
struct _glibtop_signame struct _glibtop_signame
{ {
const int number; const int number;
const char *name, *label; const char *name, *label;
}; };
extern const glibtop_signame glibtop_sys_siglist []; extern const glibtop_signame glibtop_sys_siglist [];

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -41,12 +43,12 @@ typedef struct _glibtop_swap glibtop_swap;
struct _glibtop_swap struct _glibtop_swap
{ {
u_int64_t flags, u_int64_t flags,
total, /* GLIBTOP_SWAP_TOTAL */ total, /* GLIBTOP_SWAP_TOTAL */
used, /* GLIBTOP_SWAP_USED */ used, /* GLIBTOP_SWAP_USED */
free, /* GLIBTOP_SWAP_FREE */ free, /* GLIBTOP_SWAP_FREE */
pagein, /* GLIBTOP_SWAP_PAGEIN */ pagein, /* GLIBTOP_SWAP_PAGEIN */
pageout; /* GLIBTOP_SWAP_PAGEOUT */ pageout; /* GLIBTOP_SWAP_PAGEOUT */
}; };
#define glibtop_get_swap(swap) glibtop_get_swap_l(glibtop_global_server, swap) #define glibtop_get_swap(swap) glibtop_get_swap_l(glibtop_global_server, swap)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -64,30 +66,30 @@ typedef struct _glibtop_sysdeps glibtop_sysdeps;
struct _glibtop_sysdeps struct _glibtop_sysdeps
{ {
u_int64_t flags, u_int64_t flags,
features, /* server features */ features, /* server features */
cpu, /* glibtop_cpu */ cpu, /* glibtop_cpu */
mem, /* glibtop_mem */ mem, /* glibtop_mem */
swap, /* glibtop_swap */ swap, /* glibtop_swap */
uptime, /* glibtop_uptime */ uptime, /* glibtop_uptime */
loadavg, /* glibtop_loadavg */ loadavg, /* glibtop_loadavg */
shm_limits, /* glibtop_shm_limits */ shm_limits, /* glibtop_shm_limits */
msg_limits, /* glibtop_msg_limits */ msg_limits, /* glibtop_msg_limits */
sem_limits, /* glibtop_sem_limits */ sem_limits, /* glibtop_sem_limits */
proclist, /* glibtop_proclist */ proclist, /* glibtop_proclist */
proc_state, /* glibtop_proc_state */ proc_state, /* glibtop_proc_state */
proc_uid, /* glibtop_proc_uid */ proc_uid, /* glibtop_proc_uid */
proc_mem, /* glibtop_proc_mem */ proc_mem, /* glibtop_proc_mem */
proc_time, /* glibtop_proc_time */ proc_time, /* glibtop_proc_time */
proc_signal, /* glibtop_proc_signal */ proc_signal, /* glibtop_proc_signal */
proc_kernel, /* glibtop_proc_kernel */ proc_kernel, /* glibtop_proc_kernel */
proc_segment, /* glibtop_proc_segment */ proc_segment, /* glibtop_proc_segment */
proc_args, /* glibtop_proc_args */ proc_args, /* glibtop_proc_args */
proc_map, /* glibtop_proc_map */ proc_map, /* glibtop_proc_map */
mountlist, /* glibtop_mountlist */ mountlist, /* glibtop_mountlist */
fsusage, /* glibtop_fsusage */ fsusage, /* glibtop_fsusage */
netload, /* glibtop_netload */ netload, /* glibtop_netload */
ppp; /* glibtop_ppp */ ppp; /* glibtop_ppp */
}; };
#define glibtop_get_sysdeps(sysdeps) glibtop_get_sysdeps_r(glibtop_global_server,sysdeps) #define glibtop_get_sysdeps(sysdeps) glibtop_get_sysdeps_r(glibtop_global_server,sysdeps)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -42,15 +44,15 @@ typedef struct _glibtop_entry glibtop_entry;
struct _glibtop_entry struct _glibtop_entry
{ {
GPtrArray *labels; GPtrArray *labels;
GHashTable *values; GHashTable *values;
GHashTable *descriptions; GHashTable *descriptions;
}; };
struct _glibtop_sysinfo struct _glibtop_sysinfo
{ {
u_int64_t flags, ncpu; u_int64_t flags, ncpu;
glibtop_entry cpuinfo [GLIBTOP_NCPU]; glibtop_entry cpuinfo [GLIBTOP_NCPU];
}; };
#define glibtop_get_sysinfo() glibtop_get_sysinfo_s(glibtop_global_server) #define glibtop_get_sysinfo() glibtop_get_sysinfo_s(glibtop_global_server)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -56,28 +58,28 @@ typedef union _glibtop_union glibtop_union;
union _glibtop_union union _glibtop_union
{ {
glibtop_cpu cpu; glibtop_cpu cpu;
glibtop_mem mem; glibtop_mem mem;
glibtop_swap swap; glibtop_swap swap;
glibtop_uptime uptime; glibtop_uptime uptime;
glibtop_loadavg loadavg; glibtop_loadavg loadavg;
glibtop_shm_limits shm_limits; glibtop_shm_limits shm_limits;
glibtop_msg_limits msg_limits; glibtop_msg_limits msg_limits;
glibtop_sem_limits sem_limits; glibtop_sem_limits sem_limits;
glibtop_proclist proclist; glibtop_proclist proclist;
glibtop_proc_state proc_state; glibtop_proc_state proc_state;
glibtop_proc_uid proc_uid; glibtop_proc_uid proc_uid;
glibtop_proc_mem proc_mem; glibtop_proc_mem proc_mem;
glibtop_proc_time proc_time; glibtop_proc_time proc_time;
glibtop_proc_signal proc_signal; glibtop_proc_signal proc_signal;
glibtop_proc_kernel proc_kernel; glibtop_proc_kernel proc_kernel;
glibtop_proc_segment proc_segment; glibtop_proc_segment proc_segment;
glibtop_proc_args proc_args; glibtop_proc_args proc_args;
glibtop_proc_map proc_map; glibtop_proc_map proc_map;
glibtop_mountlist mountlist; glibtop_mountlist mountlist;
glibtop_fsusage fsusage; glibtop_fsusage fsusage;
glibtop_netload netload; glibtop_netload netload;
glibtop_ppp ppp; glibtop_ppp ppp;
}; };
END_LIBGTOP_DECLS END_LIBGTOP_DECLS

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
@@ -38,9 +40,10 @@ typedef struct _glibtop_uptime glibtop_uptime;
struct _glibtop_uptime struct _glibtop_uptime
{ {
u_int64_t flags; u_int64_t flags;
double uptime, /* GLIBTOP_UPTIME_UPTIME */ double uptime, /* GLIBTOP_UPTIME_UPTIME */
idletime; /* GLIBTOP_UPTIME_IDLETIME */ 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) #define glibtop_get_uptime(uptime) glibtop_get_uptime_l(glibtop_global_server, uptime)

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0. This file is part of LibGTop 1.0.

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig

View File

@@ -1,3 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* $Id$ */ /* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig /* Copyright (C) 1998-99 Martin Baulig