Compare commits
8 Commits
LIBGTOP_2_
...
LIBGTOP_2_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ca1905547 | ||
|
|
65d2d61d41 | ||
|
|
8a4fd3c971 | ||
|
|
c09e2fdead | ||
|
|
fe5bb1c39c | ||
|
|
4b310d26f7 | ||
|
|
83759b2a4a | ||
|
|
209219d5ce |
75
ChangeLog
75
ChangeLog
@@ -1,3 +1,78 @@
|
||||
2004-12-20 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* NEWS:
|
||||
* configure.in: Released 2.9.3.
|
||||
|
||||
2004-12-10 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* lib/lib.pl: Fixed Argument passing between library and server.
|
||||
Thanks everyone. Closes #139809.
|
||||
|
||||
2004-12-06 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* acconfig.h:
|
||||
* configure.in:
|
||||
* debian/libgtop-dev.files.in:
|
||||
* doc/Makefile.am:
|
||||
* examples/Makefile.am:
|
||||
* examples/third.c:
|
||||
* include/glibtop/cpu.h:
|
||||
* include/glibtop/fsusage.h:
|
||||
* include/glibtop/loadavg.h:
|
||||
* include/glibtop/mem.h:
|
||||
* include/glibtop/mountlist.h:
|
||||
* include/glibtop/msg_limits.h:
|
||||
* include/glibtop/netlist.h:
|
||||
* include/glibtop/netload.h:
|
||||
* include/glibtop/ppp.h:
|
||||
* include/glibtop/procargs.h:
|
||||
* include/glibtop/prockernel.h:
|
||||
* include/glibtop/proclist.h:
|
||||
* include/glibtop/procmap.h:
|
||||
* include/glibtop/procmem.h:
|
||||
* include/glibtop/procsegment.h:
|
||||
* include/glibtop/procsignal.h:
|
||||
* include/glibtop/procstate.h:
|
||||
* include/glibtop/proctime.h:
|
||||
* include/glibtop/procuid.h:
|
||||
* include/glibtop/sem_limits.h:
|
||||
* include/glibtop/shm_limits.h:
|
||||
* include/glibtop/swap.h:
|
||||
* include/glibtop/sysdeps.h:
|
||||
* include/glibtop/uptime.h:
|
||||
* po/POTFILES.in:
|
||||
* sysdeps/Makefile.am:
|
||||
* sysdeps/names/.cvsignore:
|
||||
* sysdeps/names/Makefile.am:
|
||||
* sysdeps/names/cpu.c:
|
||||
* sysdeps/names/fsusage.c:
|
||||
* sysdeps/names/loadavg.c:
|
||||
* sysdeps/names/mem.c:
|
||||
* sysdeps/names/mountlist.c:
|
||||
* sysdeps/names/msg_limits.c:
|
||||
* sysdeps/names/netlist.c:
|
||||
* sysdeps/names/netload.c:
|
||||
* sysdeps/names/ppp.c:
|
||||
* sysdeps/names/procargs.c:
|
||||
* sysdeps/names/prockernel.c:
|
||||
* sysdeps/names/proclist.c:
|
||||
* sysdeps/names/procmap.c:
|
||||
* sysdeps/names/procmem.c:
|
||||
* sysdeps/names/procsegment.c:
|
||||
* sysdeps/names/procsignal.c:
|
||||
* sysdeps/names/procstate.c:
|
||||
* sysdeps/names/proctime.c:
|
||||
* sysdeps/names/procuid.c:
|
||||
* sysdeps/names/sem_limits.c:
|
||||
* sysdeps/names/shm_limits.c:
|
||||
* sysdeps/names/swap.c:
|
||||
* sysdeps/names/sysdeps.c:
|
||||
* sysdeps/names/uptime.c: Removed libgtop_names :)
|
||||
|
||||
2004-11-30 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* configure.in: post-release bump to 2.9.1.
|
||||
|
||||
2004-11-30 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* NEWS:
|
||||
|
||||
10
NEWS
10
NEWS
@@ -1,4 +1,12 @@
|
||||
December 30, 2004: Overview of Changes from 2.8.1 to 2.9.0
|
||||
December 20, 2004: Overview of Changes from 2.9.0 to 2.9.3
|
||||
==========================================================
|
||||
* Removed libgtop_names.
|
||||
* Fixed Argument passing between library and server. #139809.
|
||||
* *BSD updated by marcus@freebsd.org (Joe Marcus Clarke).
|
||||
* glibtop_get_mountlist(False) now ignores 'unknown' fs.
|
||||
|
||||
|
||||
November 30, 2004: Overview of Changes from 2.8.1 to 2.9.0
|
||||
=========================================================
|
||||
* glibtop_get_netload : Fixed segfault on linux with ppp devices.
|
||||
* NEW glibtop_get_netlist : retrieves the list of all available interfaces.
|
||||
|
||||
@@ -131,7 +131,6 @@
|
||||
|
||||
#undef HAVE_GLIBTOP_MACHINE_H
|
||||
|
||||
#undef GLIBTOP_NAMES
|
||||
#undef GLIBTOP_GUILE
|
||||
#undef GLIBTOP_GUILE_NAMES
|
||||
#undef GLIBTOP_EXAMPLES
|
||||
|
||||
12
configure.in
12
configure.in
@@ -8,7 +8,7 @@ AC_CANONICAL_SYSTEM
|
||||
|
||||
LIBGTOP_MAJOR_VERSION=2
|
||||
LIBGTOP_MINOR_VERSION=9
|
||||
LIBGTOP_MICRO_VERSION=0
|
||||
LIBGTOP_MICRO_VERSION=3
|
||||
LIBGTOP_VERSION=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION.$LIBGTOP_MICRO_VERSION
|
||||
AM_INIT_AUTOMAKE(libgtop, $LIBGTOP_VERSION)
|
||||
|
||||
@@ -112,7 +112,6 @@ if test x$build_inodedb = xyes ; then
|
||||
AC_DEFINE(GLIBTOP_INODEDB)
|
||||
fi
|
||||
|
||||
AC_DEFINE(GLIBTOP_NAMES)
|
||||
|
||||
if test x$libgtop_smp = xyes ; then
|
||||
smp_examples='smp'
|
||||
@@ -338,12 +337,8 @@ fi
|
||||
LIBGTOP_EXTRA_LIBS="$LIBGTOP_EXTRA_LIBS $GLIB_LIBS"
|
||||
|
||||
LIBGTOP_LIBS="$LIBGTOP_LIBS"
|
||||
LIBGTOP_NAMES_LIBS="$LIBGTOP_LIBS"
|
||||
|
||||
LIBGTOP_LIBS="$LIBGTOP_LIBS"
|
||||
LIBGTOP_NAMES_LIBS="$LIBGTOP_NAMES_LIBS"
|
||||
|
||||
LIBGTOP_NAMES_INCS="$LIBGTOP_INCS -DGLIBTOP_NAMES"
|
||||
|
||||
machine_incs="-I\$(top_srcdir)/sysdeps/$sysdeps_dir"
|
||||
|
||||
@@ -361,7 +356,7 @@ if test "$GCC" = "yes" ; then
|
||||
$CFLAGS"
|
||||
fi
|
||||
|
||||
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include $GLIB_CFLAGS $CFLAGS $X_CFLAGS "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_VERSION_CODE='$LIBGTOP_VERSION_CODE' -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\"'
|
||||
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include $GLIB_CFLAGS $CFLAGS $X_CFLAGS "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_VERSION_CODE='$LIBGTOP_VERSION_CODE' -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\"'
|
||||
|
||||
AC_SUBST(INCLUDES)
|
||||
|
||||
@@ -369,8 +364,6 @@ AC_SUBST(LIBGTOP_EXTRA_LIBS)
|
||||
AC_SUBST(GLIB_LIBS)
|
||||
AC_SUBST(LIBGTOP_LIBS)
|
||||
AC_SUBST(LIBGTOP_INCS)
|
||||
AC_SUBST(LIBGTOP_NAMES_LIBS)
|
||||
AC_SUBST(LIBGTOP_NAMES_INCS)
|
||||
AC_SUBST(LIBGTOP_BINDIR)
|
||||
AC_SUBST(LIBGTOP_SERVER)
|
||||
|
||||
@@ -393,7 +386,6 @@ include/Makefile
|
||||
include/glibtop/Makefile
|
||||
sysdeps/Makefile
|
||||
sysdeps/common/Makefile
|
||||
sysdeps/names/Makefile
|
||||
sysdeps/stub/Makefile
|
||||
sysdeps/stub_suid/Makefile
|
||||
sysdeps/sun4/Makefile
|
||||
|
||||
3
debian/libgtop-dev.files.in
vendored
3
debian/libgtop-dev.files.in
vendored
@@ -1,17 +1,14 @@
|
||||
@PREFIX@/lib/libgtop.a
|
||||
@PREFIX@/lib/libgtop_common.a
|
||||
@PREFIX@/lib/libgtop_names.a
|
||||
@PREFIX@/lib/libgtop_suid_common.a
|
||||
@PREFIX@/lib/libgtop_sysdeps.a
|
||||
@PREFIX@/lib/libgtop.la
|
||||
@PREFIX@/lib/libgtop_common.la
|
||||
@PREFIX@/lib/libgtop_names.la
|
||||
@PREFIX@/lib/libgtop_suid_common.la
|
||||
@PREFIX@/lib/libgtop_sysdeps.la
|
||||
@PREFIX@/lib/libgtopConf.sh
|
||||
@PREFIX@/lib/libgtop.so
|
||||
@PREFIX@/lib/libgtop_common.so
|
||||
@PREFIX@/lib/libgtop_names.so
|
||||
@PREFIX@/lib/libgtop_suid_common.so
|
||||
@PREFIX@/lib/libgtop_sysdeps.so
|
||||
@PREFIX@/lib/libgtop-features.def
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-12-04 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* reference.texi: Updated.
|
||||
|
||||
2004-08-03 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* reference.texi: Updated.
|
||||
|
||||
@@ -16,8 +16,6 @@ auto-macros.texi: auto-macros.texi.in Makefile
|
||||
-e 's#\%LIBGTOP_EXTRA_LIBS\%#$(LIBGTOP_EXTRA_LIBS)#g' \
|
||||
-e 's#\%LIBGTOP_LIBS\%#$(LIBGTOP_LIBS)#g' \
|
||||
-e 's#\%LIBGTOP_INCS\%#$(LIBGTOP_INCS)#g' \
|
||||
-e 's#\%LIBGTOP_NAMES_LIBS\%#$(LIBGTOP_NAMES_LIBS)#g' \
|
||||
-e 's#\%LIBGTOP_NAMES_INCS\%#$(LIBGTOP_NAMES_INCS)#g' \
|
||||
-e 's#\%LIBGTOP_BINDIR\%#$(LIBGTOP_BINDIR)#g' \
|
||||
-e 's#\%LIBGTOP_SERVER\%#$(LIBGTOP_SERVER)#g' \
|
||||
-e 's#\%LIBGTOP_MAJOR_VERSION\%#$(LIBGTOP_MAJOR_VERSION)#g' \
|
||||
|
||||
@@ -1533,6 +1533,8 @@ struct _glibtop_fsusage
|
||||
files,
|
||||
ffree;
|
||||
guint32 block_size;
|
||||
guint64 read,
|
||||
write;
|
||||
@};
|
||||
@end cartouche
|
||||
@end example
|
||||
@@ -1550,10 +1552,12 @@ Total file nodes.
|
||||
Free file nodes.
|
||||
@item block_size
|
||||
Block size in bytes.
|
||||
@item read
|
||||
Total blocks read.
|
||||
@item write
|
||||
Total blocks written.
|
||||
@end table
|
||||
|
||||
Blocks are usually 512 bytes.
|
||||
|
||||
@page
|
||||
@node Library Functions, , Common Functions, Reference Manual
|
||||
@section Library Functions
|
||||
|
||||
@@ -12,7 +12,7 @@ noinst_PROGRAMS = first second pprint procargs df netlist \
|
||||
|
||||
EXTRA_PROGRAMS = first_static second_static \
|
||||
mountlist_static procmap_static \
|
||||
third third_static smp smp_static \
|
||||
smp smp_static \
|
||||
netload_static sysdeps_static \
|
||||
timings_static pprint_static procargs_static \
|
||||
df_static netlist_static
|
||||
@@ -52,16 +52,6 @@ sysdeps_static_SOURCES = $(sysdeps_SOURCES)
|
||||
sysdeps_static_LDADD = $(sysdeps_LDADD)
|
||||
sysdeps_static_LDFLAGS = -static
|
||||
|
||||
third_names_LIBS = $(top_builddir)/sysdeps/names/libgtop_names-2.0.la
|
||||
|
||||
third_SOURCES = third.c
|
||||
third_LDADD = $(third_names_LIBS) \
|
||||
$(top_builddir)/lib/libgtop-2.0.la \
|
||||
@INTLLIBS@
|
||||
|
||||
third_static_SOURCES = $(third_SOURCES)
|
||||
third_static_LDADD = $(third_LDADD)
|
||||
third_static_LDFLAGS = -static
|
||||
|
||||
mountlist_SOURCES = mountlist.c
|
||||
mountlist_LDADD = $(top_builddir)/lib/libgtop-2.0.la
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <locale.h>
|
||||
#include <libintl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <glibtop.h>
|
||||
|
||||
#include <glibtop/open.h>
|
||||
#include <glibtop/close.h>
|
||||
|
||||
#include <glibtop/union.h>
|
||||
#include <glibtop/sysdeps.h>
|
||||
|
||||
void main_prog(int argc, char *argv[]);
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
|
||||
textdomain (GETTEXT_PACKAGE);
|
||||
|
||||
gh_enter (argc, argv, main_prog);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
void
|
||||
main_prog (int argc, char *argv[])
|
||||
{
|
||||
glibtop_boot_guile ();
|
||||
#ifdef GLIBTOP_GUILE_NAMES
|
||||
glibtop_boot_guile_names ();
|
||||
#endif
|
||||
|
||||
gh_repl (argc, argv);
|
||||
}
|
||||
@@ -85,16 +85,6 @@ void glibtop_init_cpu_s (glibtop *server);
|
||||
void glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_cpu [];
|
||||
extern const unsigned glibtop_types_cpu [];
|
||||
extern const char *glibtop_labels_cpu [];
|
||||
extern const char *glibtop_descriptions_cpu [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -60,16 +60,6 @@ struct _glibtop_fsusage
|
||||
void glibtop_get_fsusage_l (glibtop *server, glibtop_fsusage *buf, const char *mount_dir);
|
||||
void glibtop_get_fsusage_s (glibtop *server, glibtop_fsusage *buf, const char *mount_dir);
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_fsusage [];
|
||||
extern const unsigned glibtop_types_fsusage [];
|
||||
extern const char *glibtop_labels_fsusage [];
|
||||
extern const char *glibtop_descriptions_fsusage [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -65,16 +65,6 @@ void glibtop_init_loadavg_s (glibtop *server);
|
||||
void glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_loadavg [];
|
||||
extern const unsigned glibtop_types_loadavg [];
|
||||
extern const char *glibtop_labels_loadavg [];
|
||||
extern const char *glibtop_descriptions_loadavg [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -73,16 +73,6 @@ void glibtop_init_mem_s (glibtop *server);
|
||||
void glibtop_get_mem_s (glibtop *server, glibtop_mem *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_mem [];
|
||||
extern const unsigned glibtop_types_mem [];
|
||||
extern const char *glibtop_labels_mem [];
|
||||
extern const char *glibtop_descriptions_mem [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -65,16 +65,6 @@ glibtop_get_mountlist_l (glibtop *server, glibtop_mountlist *buf, int all_fs);
|
||||
glibtop_mountentry *
|
||||
glibtop_get_mountlist_s (glibtop *server, glibtop_mountlist *buf, int all_fs);
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_mountlist [];
|
||||
extern const unsigned glibtop_types_mountlist [];
|
||||
extern const char *glibtop_labels_mountlist [];
|
||||
extern const char *glibtop_descriptions_mountlist [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -71,16 +71,6 @@ void glibtop_init_msg_limits_s (glibtop *server);
|
||||
void glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_msg_limits [];
|
||||
extern const unsigned glibtop_types_msg_limits [];
|
||||
extern const char *glibtop_labels_msg_limits [];
|
||||
extern const char *glibtop_descriptions_msg_limits [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -55,16 +55,6 @@ void glibtop_init_netlist_s (glibtop *server);
|
||||
char** glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_netlist [];
|
||||
extern const unsigned glibtop_types_netlist [];
|
||||
extern const char *glibtop_labels_netlist [];
|
||||
extern const char *glibtop_descriptions_netlist [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -125,16 +125,6 @@ void glibtop_init_netload_s (glibtop *server);
|
||||
void glibtop_get_netload_s (glibtop *server, glibtop_netload *buf, const char *interface);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_netload [];
|
||||
extern const unsigned glibtop_types_netload [];
|
||||
extern const char *glibtop_labels_netload [];
|
||||
extern const char *glibtop_descriptions_netload [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -69,16 +69,6 @@ void glibtop_init_ppp_s (glibtop *server);
|
||||
void glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_ppp [];
|
||||
extern const unsigned glibtop_types_ppp [];
|
||||
extern const char *glibtop_labels_ppp [];
|
||||
extern const char *glibtop_descriptions_ppp [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -85,16 +85,6 @@ glibtop_get_proc_argv_l (glibtop *server, glibtop_proc_args *buf,
|
||||
#define glibtop_get_proc_argv(proc_args,pid,max_len) glibtop_get_proc_argv_l(glibtop_global_server, proc_args, pid, max_len)
|
||||
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_args [];
|
||||
extern const unsigned glibtop_types_proc_args [];
|
||||
extern const char *glibtop_labels_proc_args [];
|
||||
extern const char *glibtop_descriptions_proc_args [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -82,16 +82,6 @@ void glibtop_init_proc_kernel_s (glibtop *server);
|
||||
void glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_kernel [];
|
||||
extern const unsigned glibtop_types_proc_kernel [];
|
||||
extern const char *glibtop_labels_proc_kernel [];
|
||||
extern const char *glibtop_descriptions_proc_kernel [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -88,16 +88,6 @@ glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
|
||||
gint64 which, gint64 arg);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proclist [];
|
||||
extern const unsigned glibtop_types_proclist [];
|
||||
extern const char *glibtop_labels_proclist [];
|
||||
extern const char *glibtop_descriptions_proclist [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -94,16 +94,6 @@ glibtop_map_entry *
|
||||
glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_map [];
|
||||
extern const unsigned glibtop_types_proc_map [];
|
||||
extern const char *glibtop_labels_proc_map [];
|
||||
extern const char *glibtop_descriptions_proc_map [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -73,16 +73,6 @@ void glibtop_init_proc_mem_s (glibtop *server);
|
||||
void glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_mem [];
|
||||
extern const unsigned glibtop_types_proc_mem [];
|
||||
extern const char *glibtop_labels_proc_mem [];
|
||||
extern const char *glibtop_descriptions_proc_mem [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -76,16 +76,6 @@ void glibtop_init_proc_segment_s (glibtop *server);
|
||||
void glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_segment [];
|
||||
extern const unsigned glibtop_types_proc_segment [];
|
||||
extern const char *glibtop_labels_proc_segment [];
|
||||
extern const char *glibtop_descriptions_proc_segment [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -67,16 +67,6 @@ void glibtop_init_proc_signal_s (glibtop *server);
|
||||
void glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_signal [];
|
||||
extern const unsigned glibtop_types_proc_signal [];
|
||||
extern const char *glibtop_labels_proc_signal [];
|
||||
extern const char *glibtop_descriptions_proc_signal [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -92,16 +92,6 @@ void glibtop_init_proc_state_s (glibtop *server);
|
||||
void glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf, pid_t pid);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_state [];
|
||||
extern const unsigned glibtop_types_proc_state [];
|
||||
extern const char *glibtop_labels_proc_state [];
|
||||
extern const char *glibtop_descriptions_proc_state [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -88,16 +88,6 @@ void glibtop_init_proc_time_s (glibtop *server);
|
||||
void glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_time [];
|
||||
extern const unsigned glibtop_types_proc_time [];
|
||||
extern const char *glibtop_labels_proc_time [];
|
||||
extern const char *glibtop_descriptions_proc_time [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -98,16 +98,6 @@ void glibtop_init_proc_uid_s (glibtop *server);
|
||||
void glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_proc_uid [];
|
||||
extern const unsigned glibtop_types_proc_uid [];
|
||||
extern const char *glibtop_labels_proc_uid [];
|
||||
extern const char *glibtop_descriptions_proc_uid [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -77,16 +77,6 @@ void glibtop_init_sem_limits_s (glibtop *server);
|
||||
void glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_sem_limits [];
|
||||
extern const unsigned glibtop_types_sem_limits [];
|
||||
extern const char *glibtop_labels_sem_limits [];
|
||||
extern const char *glibtop_descriptions_sem_limits [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -67,16 +67,6 @@ void glibtop_init_shm_limits_s (glibtop *server);
|
||||
void glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_shm_limits [];
|
||||
extern const unsigned glibtop_types_shm_limits [];
|
||||
extern const char *glibtop_labels_shm_limits [];
|
||||
extern const char *glibtop_descriptions_shm_limits [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -67,16 +67,6 @@ void glibtop_init_swap_s (glibtop *server);
|
||||
void glibtop_get_swap_s (glibtop *server, glibtop_swap *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_swap [];
|
||||
extern const unsigned glibtop_types_swap [];
|
||||
extern const char *glibtop_labels_swap [];
|
||||
extern const char *glibtop_descriptions_swap [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -96,16 +96,6 @@ struct _glibtop_sysdeps
|
||||
|
||||
void glibtop_get_sysdeps_r (glibtop *server, glibtop_sysdeps *buf);
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_sysdeps [];
|
||||
extern const unsigned glibtop_types_sysdeps [];
|
||||
extern const char *glibtop_labels_sysdeps [];
|
||||
extern const char *glibtop_descriptions_sysdeps [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
@@ -63,16 +63,6 @@ void glibtop_init_uptime_s (glibtop *server);
|
||||
void glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf);
|
||||
#endif
|
||||
|
||||
#ifdef GLIBTOP_NAMES
|
||||
|
||||
/* You need to link with -lgtop_names to get this stuff here. */
|
||||
|
||||
extern const char *glibtop_names_uptime [];
|
||||
extern const unsigned glibtop_types_uptime [];
|
||||
extern const char *glibtop_labels_uptime [];
|
||||
extern const char *glibtop_descriptions_uptime [];
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
37
lib/lib.pl
37
lib/lib.pl
@@ -106,6 +106,8 @@ sub output {
|
||||
|
||||
if ($param_def eq 'string') {
|
||||
$call_param = ', ' . $line_fields[5];
|
||||
$param_buf = '';
|
||||
$buf_set = '';
|
||||
$param_decl = ",\n " . $space . ' const char *' .
|
||||
|
||||
$line_fields[5];
|
||||
@@ -119,7 +121,12 @@ sub output {
|
||||
$param_decl = '';
|
||||
$send_size = '';
|
||||
$send_ptr = '';
|
||||
$param_buf = '';
|
||||
$buf_set = '';
|
||||
$nr_params = (@params = split(/:/, $param_def, 9999));
|
||||
if ($nr_params) {
|
||||
$param_buf = "\n\tstruct {\n";
|
||||
}
|
||||
for ($param = 1; $param <= $nr_params; $param++) {
|
||||
$list = $params[$param];
|
||||
$type = $params[$param];
|
||||
@@ -127,6 +134,14 @@ sub output {
|
||||
$list =~ s/^.*\(//;
|
||||
$list =~ s/\)$//;
|
||||
$count = (@fields = split(/,/, $list, 9999));
|
||||
|
||||
if ($count > 0) {
|
||||
for ($field = 1; $field <= $count; $field++) {
|
||||
$param_buf .= "\t\t$convert{$type} buf_$fields[$field];\n";
|
||||
$buf_set .= "\tparam_buf.buf_$fields[$field] = $fields[$field];\n";
|
||||
}
|
||||
}
|
||||
|
||||
for ($field = 1; $field <= $count; $field++) {
|
||||
if ($param_decl eq '') {
|
||||
$param_decl = ",\n " . $space . ' ';
|
||||
@@ -139,21 +154,13 @@ sub output {
|
||||
$fields[$field];
|
||||
$call_param = $call_param . ', ' . $fields[$field];
|
||||
if ($send_ptr eq '') {
|
||||
$send_ptr = "\n\tconst void *send_ptr = &" .
|
||||
|
||||
$fields[$field] . ';';
|
||||
$send_ptr = "\n\tconst void *send_ptr = ¶m_buf;";
|
||||
}
|
||||
if ($send_size eq '') {
|
||||
$send_size = "\n\tconst size_t send_size =\n\t\t";
|
||||
}
|
||||
else {
|
||||
$send_size = $send_size . ' + ';
|
||||
}
|
||||
$send_size = $send_size . 'sizeof (' . $fields[$field] . ')';
|
||||
}
|
||||
}
|
||||
if ($send_size ne '') {
|
||||
$send_size = $send_size . ';';
|
||||
if ($nr_params) {
|
||||
$param_buf .= "\t} param_buf;";
|
||||
$send_size = "\n\tconst size_t send_size = sizeof param_buf;";
|
||||
}
|
||||
else {
|
||||
$send_size = "\n\tconst size_t send_size = 0;";
|
||||
@@ -167,11 +174,13 @@ sub output {
|
||||
|
||||
$feature . ' *buf' . $param_decl . ')';
|
||||
|
||||
print '{' . $send_ptr . '' . $send_size;
|
||||
print "{" . $param_buf;
|
||||
|
||||
print $send_ptr . '' . $send_size;
|
||||
if ($retval !~ /^void$/) {
|
||||
print "\t" . $retval . ' retval = (' . $retval . ') 0;';
|
||||
}
|
||||
print '';
|
||||
print $buf_set;
|
||||
|
||||
print "\tglibtop_init_r (&server, (1 << GLIBTOP_SYSDEPS_" .
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-12-04 Žygimantas Beručka <uid0@akl.lt>
|
||||
|
||||
* lt.po: Updated Lithuanian translation.
|
||||
|
||||
2004-11-23 Martin Willemoes Hansen <mwh@sysrq.dk>
|
||||
|
||||
* da.po: Updated Danish translation.
|
||||
|
||||
@@ -81,28 +81,5 @@ sysdeps/linux/siglist.c
|
||||
sysdeps/linux/swap.c
|
||||
sysdeps/linux/sysinfo.c
|
||||
sysdeps/linux/uptime.c
|
||||
sysdeps/names/cpu.c
|
||||
sysdeps/names/fsusage.c
|
||||
sysdeps/names/loadavg.c
|
||||
sysdeps/names/mem.c
|
||||
sysdeps/names/mountlist.c
|
||||
sysdeps/names/msg_limits.c
|
||||
sysdeps/names/netload.c
|
||||
sysdeps/names/ppp.c
|
||||
sysdeps/names/procargs.c
|
||||
sysdeps/names/prockernel.c
|
||||
sysdeps/names/proclist.c
|
||||
sysdeps/names/procmap.c
|
||||
sysdeps/names/procmem.c
|
||||
sysdeps/names/procsegment.c
|
||||
sysdeps/names/procsignal.c
|
||||
sysdeps/names/procstate.c
|
||||
sysdeps/names/proctime.c
|
||||
sysdeps/names/procuid.c
|
||||
sysdeps/names/sem_limits.c
|
||||
sysdeps/names/shm_limits.c
|
||||
sysdeps/names/swap.c
|
||||
sysdeps/names/sysdeps.c
|
||||
sysdeps/names/uptime.c
|
||||
sysdeps/osf1/siglist.c
|
||||
sysdeps/sun4/siglist.c
|
||||
|
||||
166
po/lt.po
166
po/lt.po
@@ -1,22 +1,22 @@
|
||||
# Lithuanian translation of libgtop library.
|
||||
# Copyright (C) 2003 Free Software Foundation.
|
||||
# Copyright (C) 2003-2004 Free Software Foundation.
|
||||
# This file is distributed under the same license as the libgtop package.
|
||||
# Tomas Kuliavas <tokul@users.sourceforge.net>, 2003.
|
||||
# Žygimantas Beručka <uid0@akl.lt>, 2003-2004
|
||||
#
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: libgtop\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2004-08-03 14:09+0200\n"
|
||||
"PO-Revision-Date: 2003-11-02 13:21+0200\n"
|
||||
"POT-Creation-Date: 2004-12-04 08:49+0200\n"
|
||||
"PO-Revision-Date: 2004-12-04 08:55+0200\n"
|
||||
"Last-Translator: Žygimantas Beručka <uid0@tuxfamily.org>\n"
|
||||
"Language-Team: Lithuanian <komp_lt@konferencijos.lt>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%"
|
||||
"100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: examples/smp.c:76
|
||||
#, c-format
|
||||
@@ -99,7 +99,7 @@ msgstr "CPU %3d (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
|
||||
msgid "Spin:"
|
||||
msgstr "Apsuka:"
|
||||
|
||||
#: lib/read.c:65
|
||||
#: lib/read.c:64
|
||||
#, c-format
|
||||
msgid "read %d byte"
|
||||
msgid_plural "read %d bytes"
|
||||
@@ -127,39 +127,39 @@ msgstr[0] "įrašyta %d baitas"
|
||||
msgstr[1] "įrašyta %d baitai"
|
||||
msgstr[2] "įrašyta %d baitų"
|
||||
|
||||
#: src/daemon/gnuserv.c:456
|
||||
#: src/daemon/gnuserv.c:461
|
||||
msgid "Enable debugging"
|
||||
msgstr "Įjungti testavimo režimą"
|
||||
|
||||
#: src/daemon/gnuserv.c:456
|
||||
#: src/daemon/gnuserv.c:461
|
||||
msgid "DEBUG"
|
||||
msgstr "TESTAVIMAS"
|
||||
|
||||
#: src/daemon/gnuserv.c:458
|
||||
#: src/daemon/gnuserv.c:463
|
||||
msgid "Enable verbose output"
|
||||
msgstr "Įjungti išsamų režimą"
|
||||
|
||||
#: src/daemon/gnuserv.c:458
|
||||
#: src/daemon/gnuserv.c:463
|
||||
msgid "VERBOSE"
|
||||
msgstr "IŠSAMUS"
|
||||
|
||||
#: src/daemon/gnuserv.c:460
|
||||
#: src/daemon/gnuserv.c:465
|
||||
msgid "Don't fork into background"
|
||||
msgstr "Nepasitraukti į foninį režimą"
|
||||
|
||||
#: src/daemon/gnuserv.c:460
|
||||
#: src/daemon/gnuserv.c:465
|
||||
msgid "NO-DAEMON"
|
||||
msgstr "NE-DEMONUI"
|
||||
|
||||
#: src/daemon/gnuserv.c:462
|
||||
#: src/daemon/gnuserv.c:467
|
||||
msgid "Invoked from inetd"
|
||||
msgstr "Paleistas iš inetd"
|
||||
|
||||
#: src/daemon/gnuserv.c:462
|
||||
#: src/daemon/gnuserv.c:467
|
||||
msgid "INETD"
|
||||
msgstr "INETD"
|
||||
|
||||
#: src/daemon/gnuserv.c:496
|
||||
#: src/daemon/gnuserv.c:501
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Error on option %s: %s.\n"
|
||||
@@ -266,9 +266,8 @@ msgid "Free file nodes"
|
||||
msgstr "Laisvi bylų resursai"
|
||||
|
||||
#: sysdeps/names/fsusage.c:45 sysdeps/names/fsusage.c:55
|
||||
#, fuzzy
|
||||
msgid "Block size"
|
||||
msgstr "Užblokuota"
|
||||
msgstr "Bloko dydis"
|
||||
|
||||
#: sysdeps/names/fsusage.c:51
|
||||
msgid "Free blocks available to the superuser"
|
||||
@@ -414,82 +413,79 @@ msgstr "Sisteminių žinučių antraščių kiekis"
|
||||
|
||||
#: sysdeps/names/netload.c:46 sysdeps/names/netload.c:67
|
||||
msgid "Interface Flags"
|
||||
msgstr "Jungties Požymiai"
|
||||
msgstr "Sąsajos požymiai"
|
||||
|
||||
#: sysdeps/names/netload.c:47
|
||||
msgid "MTU"
|
||||
msgstr "MTU"
|
||||
|
||||
#: sysdeps/names/netload.c:48 sysdeps/names/netload.c:69
|
||||
#, fuzzy
|
||||
msgid "IPv4 Subnet"
|
||||
msgstr "Potinklis"
|
||||
msgstr "IPv4 potinklis"
|
||||
|
||||
#: sysdeps/names/netload.c:49 sysdeps/names/netload.c:70
|
||||
#, fuzzy
|
||||
msgid "IPv4 Address"
|
||||
msgstr "Adresas"
|
||||
msgstr "IPv4 adresas"
|
||||
|
||||
#: sysdeps/names/netload.c:50 sysdeps/names/netload.c:71
|
||||
msgid "Packets In"
|
||||
msgstr "Ateina Paketų"
|
||||
msgstr "Paketų įeina"
|
||||
|
||||
#: sysdeps/names/netload.c:51 sysdeps/names/netload.c:72
|
||||
msgid "Packets Out"
|
||||
msgstr "Išeina Paketų"
|
||||
msgstr "Paketų išeina"
|
||||
|
||||
#: sysdeps/names/netload.c:52 sysdeps/names/netload.c:73
|
||||
msgid "Packets Total"
|
||||
msgstr "Viso Paketų"
|
||||
msgstr "Viso paketų"
|
||||
|
||||
#: sysdeps/names/netload.c:53 sysdeps/names/netload.c:74
|
||||
msgid "Bytes In"
|
||||
msgstr "Ateina Baitų"
|
||||
msgstr "Baitų įeina"
|
||||
|
||||
#: sysdeps/names/netload.c:54 sysdeps/names/netload.c:75
|
||||
msgid "Bytes Out"
|
||||
msgstr "Išeina Baitų"
|
||||
msgstr "Baitų išeina"
|
||||
|
||||
#: sysdeps/names/netload.c:55 sysdeps/names/netload.c:76
|
||||
msgid "Bytes Total"
|
||||
msgstr "Viso Baitų"
|
||||
msgstr "Viso baitų"
|
||||
|
||||
#: sysdeps/names/netload.c:56 sysdeps/names/netload.c:77
|
||||
msgid "Errors In"
|
||||
msgstr "Ateina Klaidų"
|
||||
msgstr "Klaidų įeina"
|
||||
|
||||
#: sysdeps/names/netload.c:57 sysdeps/names/netload.c:78
|
||||
msgid "Errors Out"
|
||||
msgstr "Išeina Klaidų"
|
||||
msgstr "Klaidų išeina"
|
||||
|
||||
#: sysdeps/names/netload.c:58 sysdeps/names/netload.c:79
|
||||
msgid "Errors Total"
|
||||
msgstr "Viso Klaidų"
|
||||
msgstr "Viso klaidų"
|
||||
|
||||
#: sysdeps/names/netload.c:59 sysdeps/names/netload.c:80
|
||||
msgid "Collisions"
|
||||
msgstr "Kolizijos"
|
||||
|
||||
#: sysdeps/names/netload.c:60 sysdeps/names/netload.c:81
|
||||
#, fuzzy
|
||||
msgid "IPv6 Address"
|
||||
msgstr "Adresas"
|
||||
msgstr "IPv6 adresas"
|
||||
|
||||
#: sysdeps/names/netload.c:61 sysdeps/names/netload.c:82
|
||||
msgid "IPv6 Prefix"
|
||||
msgstr ""
|
||||
msgstr "IPv6 prievardis"
|
||||
|
||||
#: sysdeps/names/netload.c:62 sysdeps/names/netload.c:83
|
||||
msgid "IPv6 Scope"
|
||||
msgstr ""
|
||||
msgstr "IPv6 režis"
|
||||
|
||||
#: sysdeps/names/netload.c:68
|
||||
msgid "Maximum Transfer Unit"
|
||||
msgstr "Didžiausias Perdavimo Vienetas"
|
||||
msgstr "Didžiausias perdavimo vienetas"
|
||||
|
||||
#: sysdeps/names/ppp.c:39 sysdeps/names/ppp.c:46
|
||||
msgid "PPP State"
|
||||
msgstr "PPP Būklė"
|
||||
msgstr "PPP būklė"
|
||||
|
||||
#: sysdeps/names/ppp.c:40
|
||||
msgid "Input bytes"
|
||||
@@ -497,7 +493,7 @@ msgstr "Gauta baitų"
|
||||
|
||||
#: sysdeps/names/ppp.c:41
|
||||
msgid "Output bytes"
|
||||
msgstr "Išleista baitų"
|
||||
msgstr "Išduota baitų"
|
||||
|
||||
#: sysdeps/names/ppp.c:47
|
||||
msgid "Number of input bytes"
|
||||
@@ -505,7 +501,7 @@ msgstr "Gautų baitų kiekis"
|
||||
|
||||
#: sysdeps/names/ppp.c:48
|
||||
msgid "Number of output bytes"
|
||||
msgstr "Išleistų baitų kiekis"
|
||||
msgstr "Išduotų baitų kiekis"
|
||||
|
||||
#: sysdeps/names/procargs.c:39 sysdeps/names/procmem.c:48
|
||||
msgid "Size"
|
||||
@@ -513,7 +509,7 @@ msgstr "Dydis"
|
||||
|
||||
#: sysdeps/names/procargs.c:44
|
||||
msgid "Length in bytes of the returned string."
|
||||
msgstr "Gražintos simbolių sekos dydis baitais."
|
||||
msgstr "Grąžintos simbolių sekos dydis baitais."
|
||||
|
||||
#: sysdeps/names/prockernel.c:43
|
||||
msgid "K_Flags"
|
||||
@@ -650,11 +646,11 @@ msgstr "Bendra"
|
||||
|
||||
#: sysdeps/names/procmem.c:49
|
||||
msgid "Resident Set Size"
|
||||
msgstr "Atminties Nustatymo Dydis"
|
||||
msgstr "Atminties nustatymo dydis"
|
||||
|
||||
#: sysdeps/names/procmem.c:49
|
||||
msgid "Resident Set Size Limit"
|
||||
msgstr "Atminties Nustatymo Dydžio Riba"
|
||||
msgstr "Atminties nustatymo dydžio riba"
|
||||
|
||||
#: sysdeps/names/procmem.c:54
|
||||
msgid "Total # of pages of memory"
|
||||
@@ -707,7 +703,7 @@ msgstr "Stack_RSS"
|
||||
|
||||
#: sysdeps/names/procsegment.c:44
|
||||
msgid "Dirty Size"
|
||||
msgstr "Užterštas Dydis"
|
||||
msgstr "Užterštas dydis"
|
||||
|
||||
#: sysdeps/names/procsegment.c:44
|
||||
msgid "Start_Code"
|
||||
@@ -1183,35 +1179,35 @@ msgstr "Serverio "
|
||||
|
||||
#: sysdeps/names/sysdeps.c:51 sysdeps/names/sysdeps.c:78
|
||||
msgid "CPU Usage"
|
||||
msgstr "CPU Panaudojimas"
|
||||
msgstr "CPU naudojimas"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:52 sysdeps/names/sysdeps.c:79
|
||||
msgid "Memory Usage"
|
||||
msgstr "Atminties Panaudojimas"
|
||||
msgstr "Atminties naudojimas"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:53 sysdeps/names/sysdeps.c:80
|
||||
msgid "Swap Usage"
|
||||
msgstr "Swap Panaudojimas"
|
||||
msgstr "Swap naudojimas"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:54 sysdeps/names/sysdeps.c:81
|
||||
msgid "System Uptime"
|
||||
msgstr "Sistemos Darbo Laikas"
|
||||
msgstr "Sistemos darbo laikas"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:55 sysdeps/names/sysdeps.c:82
|
||||
msgid "Load Averange"
|
||||
msgstr "Apkrovimo Vidurkis"
|
||||
msgstr "Apkrovimo vidurkis"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:56 sysdeps/names/sysdeps.c:83
|
||||
msgid "Shared Memory Limits"
|
||||
msgstr "Bendros Atminties Apribojimai"
|
||||
msgstr "Bendros atminties apribojimai"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:57 sysdeps/names/sysdeps.c:84
|
||||
msgid "Message Queue Limits"
|
||||
msgstr "Žinučių Kaupo Apribojimai"
|
||||
msgstr "Žinučių eilės apribojimai"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:58 sysdeps/names/sysdeps.c:85
|
||||
msgid "Semaphore Set Limits"
|
||||
msgstr "Semaforo Nustatymų Ribos"
|
||||
msgstr "Semaforo nustatymų ribos"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:59 sysdeps/names/sysdeps.c:86
|
||||
msgid "List of running Processes"
|
||||
@@ -1227,47 +1223,47 @@ msgstr "Proceso UID ir TTY informacija"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:62 sysdeps/names/sysdeps.c:89
|
||||
msgid "Process Memory information"
|
||||
msgstr "Proceso Atminties informacija"
|
||||
msgstr "Proceso atminties informacija"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:63 sysdeps/names/sysdeps.c:90
|
||||
msgid "Process Time information"
|
||||
msgstr "Proceso Laiko informacija"
|
||||
msgstr "Proceso laiko informacija"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:64 sysdeps/names/sysdeps.c:91
|
||||
msgid "Process Signal information"
|
||||
msgstr "Proceso Signalų informacija"
|
||||
msgstr "Proceso signalų informacija"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:65 sysdeps/names/sysdeps.c:92
|
||||
msgid "Process Kernel Data information"
|
||||
msgstr "Proceso Branduolio Duomenų informacija"
|
||||
msgstr "Proceso branduolio duomenų informacija"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:66 sysdeps/names/sysdeps.c:93
|
||||
msgid "Process Segment information"
|
||||
msgstr "Proceso Segmentų informacija"
|
||||
msgstr "Proceso segmentų informacija"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:67
|
||||
msgid "Process Arguments"
|
||||
msgstr "Proceso Argumentai"
|
||||
msgstr "Proceso argumentai"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:68 sysdeps/names/sysdeps.c:95
|
||||
msgid "Process Memory Map"
|
||||
msgstr "Proceso Atminties Žemėlapis"
|
||||
msgstr "Proceso atminties Žemėlapis"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:69
|
||||
msgid "Mount List"
|
||||
msgstr "Montavimų sąrašas"
|
||||
msgstr "Prijungimų sąrašas"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:70 sysdeps/names/sysdeps.c:97
|
||||
msgid "File System Usage"
|
||||
msgstr "Bylų Sistemos Panaudojimas"
|
||||
msgstr "Bylų sistemos naudojimas"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:71 sysdeps/names/sysdeps.c:98
|
||||
msgid "Network Load"
|
||||
msgstr "Tinklo Apkrova"
|
||||
msgstr "Tinklo apkrova"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:72 sysdeps/names/sysdeps.c:99
|
||||
msgid "PPP Statistics"
|
||||
msgstr "PPP Statistika"
|
||||
msgstr "PPP statistika"
|
||||
|
||||
#: sysdeps/names/sysdeps.c:94
|
||||
msgid "Command line arguments of the process"
|
||||
@@ -1287,7 +1283,7 @@ msgstr "Tykos laikas"
|
||||
|
||||
#: sysdeps/names/uptime.c:41
|
||||
msgid "BootTime"
|
||||
msgstr "ĮkeltiesLaikas"
|
||||
msgstr "Įkelties laikas"
|
||||
|
||||
#: sysdeps/names/uptime.c:46
|
||||
msgid "Time in seconds since system boot"
|
||||
@@ -1296,7 +1292,7 @@ msgstr "Laikas sekundėmis nuo sistemos paleidimo"
|
||||
#: sysdeps/names/uptime.c:47
|
||||
msgid "Time in seconds the system spent in the idle task since system boot"
|
||||
msgstr ""
|
||||
"Laikas sekundėmis, kuri sistema skyrė neveiklioms užduotims nuo sistemos "
|
||||
"Laikas sekundėmis, kurį sistema skyrė neveiklioms užduotims nuo sistemos "
|
||||
"paleidimo"
|
||||
|
||||
#: sysdeps/names/uptime.c:48
|
||||
@@ -1426,45 +1422,3 @@ msgstr "Pirmas vartotojiškas signalas (USR1)"
|
||||
#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
|
||||
msgid "User defined signal 2"
|
||||
msgstr "Antras vartotojiškas signalas (USR2)"
|
||||
|
||||
#~ msgid "Unknown system error"
|
||||
#~ msgstr "Nežinoma sisteminė klaida"
|
||||
|
||||
#~ msgid "%s: option `%s' is ambiguous\n"
|
||||
#~ msgstr "%s: parametras `%s' yra neapibrėžtas\n"
|
||||
|
||||
#~ msgid "%s: option `--%s' doesn't allow an argument\n"
|
||||
#~ msgstr "%s: su parametru `--%s' nenaudojami argumentai\n"
|
||||
|
||||
#~ msgid "%s: option `%c%s' doesn't allow an argument\n"
|
||||
#~ msgstr "%s: su parametru `%c%s' nenaudojami argumentai\n"
|
||||
|
||||
#~ msgid "%s: option `%s' requires an argument\n"
|
||||
#~ msgstr "%s: parametrui `%s' reikia papildomo argumento\n"
|
||||
|
||||
#~ msgid "%s: unrecognized option `--%s'\n"
|
||||
#~ msgstr "%s: nežinomas parametras `--%s'\n"
|
||||
|
||||
#~ msgid "%s: unrecognized option `%c%s'\n"
|
||||
#~ msgstr "%s: nežinomas parametras `%c%s'\n"
|
||||
|
||||
#~ msgid "%s: illegal option -- %c\n"
|
||||
#~ msgstr "%s: neleistinas parametras -- %c\n"
|
||||
|
||||
#~ msgid "%s: invalid option -- %c\n"
|
||||
#~ msgstr "%s: neleistinas parametras -- %c\n"
|
||||
|
||||
#~ msgid "%s: option requires an argument -- %c\n"
|
||||
#~ msgstr "%s: parametrui reikia argumento -- %c\n"
|
||||
|
||||
#~ msgid "%s: option `-W %s' is ambiguous\n"
|
||||
#~ msgstr "%s: parametras `-W %s' yra neapibrėžtas\n"
|
||||
|
||||
#~ msgid "%s: option `-W %s' doesn't allow an argument\n"
|
||||
#~ msgstr "%s: su parametru `-W %s' nenaudojami argumentai\n"
|
||||
|
||||
#~ msgid "Show this help message"
|
||||
#~ msgstr "Rodyti šį pagalbos pranešimą"
|
||||
|
||||
#~ msgid "Display brief usage message"
|
||||
#~ msgstr "Parodo trumpą naudojimo instrukciją"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
SUBDIRS = common @sysdeps_dir@ names
|
||||
SUBDIRS = common @sysdeps_dir@
|
||||
|
||||
DIST_SUBDIRS = common linux names osf1 \
|
||||
DIST_SUBDIRS = common linux osf1 \
|
||||
stub stub_suid sun4 freebsd solaris aix
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-12-09 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* mountlist.c: (ignore_mount_entry): Ignores "unkown" file system type.
|
||||
|
||||
2004-09-24 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* fsusage.c: (glibtop_get_fsusage_s): Fixed .block_size on Solaris.
|
||||
|
||||
@@ -547,7 +547,8 @@ static gboolean ignore_mount_entry(const struct mount_entry *me)
|
||||
"binfmt_misc",
|
||||
"supermount",
|
||||
"mntfs",
|
||||
"openpromfs"
|
||||
"openpromfs",
|
||||
"unknown"
|
||||
};
|
||||
|
||||
const char (*i)[12] = &ignored[0];
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2004-12-05 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* Makefile.am:
|
||||
* netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s):
|
||||
Added glibtop_get_netlist. Patch from marcus@freebsd.org (Joe Marcus Clarke).
|
||||
|
||||
2004-08-28 Benoît Dejean <tazforever@dlfp.org>
|
||||
|
||||
* mem.c: (glibtop_get_mem_p):
|
||||
|
||||
@@ -11,8 +11,8 @@ libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
|
||||
uptime.c loadavg.c shm_limits.c msg_limits.c \
|
||||
sem_limits.c proclist.c procstate.c procuid.c \
|
||||
proctime.c procmem.c procsignal.c prockernel.c \
|
||||
procsegment.c procargs.c procmap.c netload.c \
|
||||
ppp.c
|
||||
procsegment.c procargs.c procmap.c netlist.c \
|
||||
netload.c ppp.c
|
||||
|
||||
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
/* Copyright (C) 2004 Benoît Dejean
|
||||
/* $Id$ */
|
||||
|
||||
/*
|
||||
This file is part of LibGTop 2.0.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
@@ -17,26 +19,45 @@
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <glibtop/netlist.h>
|
||||
#include "libgtop-i18n.h"
|
||||
#include <glibtop/error.h>
|
||||
|
||||
const char *glibtop_names_netlist [GLIBTOP_MAX_NETLIST] =
|
||||
#include <net/if.h>
|
||||
|
||||
|
||||
static const unsigned long _glibtop_sysdeps_netlist = (1 << GLIBTOP_NETLIST_NUMBER);
|
||||
|
||||
/* Init function. */
|
||||
|
||||
void
|
||||
glibtop_init_netlist_s (glibtop *server)
|
||||
{
|
||||
"number"
|
||||
};
|
||||
server->sysdeps.netlist = _glibtop_sysdeps_netlist;
|
||||
}
|
||||
|
||||
const unsigned glibtop_types_netlist [GLIBTOP_MAX_NETLIST] =
|
||||
|
||||
char**
|
||||
glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
struct if_nameindex *ifstart, *ifs;
|
||||
GPtrArray *devices;
|
||||
|
||||
const char *glibtop_labels_netlist [GLIBTOP_MAX_NETLIST] =
|
||||
{
|
||||
N_("Number"),
|
||||
};
|
||||
ifs = ifstart = if_nameindex();
|
||||
|
||||
const char *glibtop_descriptions_netlist [GLIBTOP_MAX_NETLIST] =
|
||||
{
|
||||
N_("Number of network devices found"),
|
||||
};
|
||||
devices = g_ptr_array_new();
|
||||
|
||||
while(ifs && ifs->if_name) {
|
||||
g_ptr_array_add(devices, g_strdup(ifs->if_name));
|
||||
buf->number++;
|
||||
}
|
||||
|
||||
if_freenameindex(ifstart);
|
||||
|
||||
buf->flags = _glibtop_sysdeps_netlist;
|
||||
|
||||
g_ptr_array_add(devices, NULL);
|
||||
|
||||
return (char **) g_ptr_array_free(devices, FALSE);
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
.deps
|
||||
.libs
|
||||
Makefile
|
||||
Makefile.in
|
||||
libgtop_names.la
|
||||
so_locations
|
||||
*.lo
|
||||
@@ -1,15 +0,0 @@
|
||||
|
||||
INCLUDES = @INCLUDES@
|
||||
|
||||
noinst_LTLIBRARIES = libgtop_names-2.0.la
|
||||
|
||||
libgtop_names_2_0_la_SOURCES = cpu.c mem.c swap.c uptime.c loadavg.c \
|
||||
shm_limits.c msg_limits.c sem_limits.c \
|
||||
proclist.c sysdeps.c procstate.c procuid.c \
|
||||
proctime.c procmem.c procsignal.c \
|
||||
prockernel.c procsegment.c fsusage.c \
|
||||
mountlist.c procargs.c procmap.c netload.c \
|
||||
ppp.c netlist.c
|
||||
|
||||
libgtop_names_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/cpu.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_cpu [GLIBTOP_MAX_CPU] =
|
||||
{
|
||||
"total", "user", "nice", "sys", "idle", "frequency",
|
||||
"xcpu_total", "xcpu_user", "xcpu_nice", "xcpu_sys",
|
||||
"xcpu_idle", "xcpu_flags"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_cpu [GLIBTOP_MAX_CPU] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_cpu [GLIBTOP_MAX_CPU] =
|
||||
{
|
||||
N_("Total CPU Time"),
|
||||
N_("CPU Time in User Mode"),
|
||||
N_("CPU Time in User Mode (nice)"),
|
||||
N_("CPU Time in System Mode"),
|
||||
N_("CPU Time in the Idle Task"),
|
||||
N_("Tick Frequency"),
|
||||
N_("SMP Total CPU Time"),
|
||||
N_("SMP CPU Time in User Mode"),
|
||||
N_("SMP CPU Time in User Mode (nice)"),
|
||||
N_("SMP CPU Time in System Mode"),
|
||||
N_("SMP CPU Time in the Idle Task"),
|
||||
N_("SMP CPU Flags")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_cpu [GLIBTOP_MAX_CPU] =
|
||||
{
|
||||
N_("Number of clock ticks since system boot"),
|
||||
N_("Number of clock ticks the system spent in user mode"),
|
||||
N_("Number of clock ticks the system spent in user mode (nice)"),
|
||||
N_("Number of clock ticks the system spent in system mode"),
|
||||
N_("Number of clock ticks the system spent in the idle task"),
|
||||
N_("Tick frequency (default is 100)"),
|
||||
N_("Number of clock ticks since system boot"),
|
||||
N_("Number of clock ticks the system spent in user mode"),
|
||||
N_("Number of clock ticks the system spent in user mode (nice)"),
|
||||
N_("Number of clock ticks the system spent in system mode"),
|
||||
N_("Number of clock ticks the system spent in the idle task"),
|
||||
N_("Bit field indicating which CPU is currently running"),
|
||||
};
|
||||
@@ -1,56 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/fsusage.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_fsusage [GLIBTOP_MAX_FSUSAGE] =
|
||||
{
|
||||
"blocks", "bfree", "bavail", "files", "ffree", "block_size"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_fsusage [GLIBTOP_MAX_FSUSAGE] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_INT
|
||||
};
|
||||
|
||||
const char *glibtop_labels_fsusage [GLIBTOP_MAX_FSUSAGE] =
|
||||
{
|
||||
N_("Total blocks"),
|
||||
N_("Free blocks"),
|
||||
N_("Available blocks"),
|
||||
N_("Total file nodes"),
|
||||
N_("Free file nodes"),
|
||||
N_("Block size")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_fsusage [GLIBTOP_MAX_FSUSAGE] =
|
||||
{
|
||||
N_("Total blocks"),
|
||||
N_("Free blocks available to the superuser"),
|
||||
N_("Free blocks available to non-superusers"),
|
||||
N_("Total file nodes"),
|
||||
N_("Free file nodes"),
|
||||
N_("Block size")
|
||||
};
|
||||
@@ -1,52 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/loadavg.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_loadavg [GLIBTOP_MAX_LOADAVG] =
|
||||
{
|
||||
"loadavg", "nr_running", "nr_tasks", "last_pid"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_loadavg [GLIBTOP_MAX_LOADAVG] =
|
||||
{
|
||||
GLIBTOP_TYPE_DOUBLE, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_loadavg [GLIBTOP_MAX_LOADAVG] =
|
||||
{
|
||||
N_("Load Average"),
|
||||
N_("Running Tasks"),
|
||||
N_("Number of Tasks"),
|
||||
N_("Last PID")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_loadavg [GLIBTOP_MAX_LOADAVG] =
|
||||
{
|
||||
N_("Number of jobs running simultaneously averaged over 1, 5 and 15 minutes"),
|
||||
N_("Number of tasks currently running"),
|
||||
N_("Total number of tasks"),
|
||||
N_("Last PID")
|
||||
};
|
||||
@@ -1,62 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/mem.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_mem [GLIBTOP_MAX_MEM] =
|
||||
{
|
||||
"total", "used", "free", "shared", "buffer",
|
||||
"cached", "user", "locked"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_mem [GLIBTOP_MAX_MEM] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_mem [GLIBTOP_MAX_MEM] =
|
||||
{
|
||||
N_("Total Memory"),
|
||||
N_("Used Memory"),
|
||||
N_("Free Memory"),
|
||||
N_("Shared Memory"),
|
||||
N_("Buffers"),
|
||||
N_("Cached"),
|
||||
N_("User"),
|
||||
N_("Locked"),
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_mem [GLIBTOP_MAX_MEM] =
|
||||
{
|
||||
N_("Total physical memory in kB"),
|
||||
N_("Used memory size in kB"),
|
||||
N_("Free memory size in kB"),
|
||||
N_("Shared memory size in kB"),
|
||||
N_("Size of buffers kB"),
|
||||
N_("Size of cached memory in kB"),
|
||||
N_("Memory used from user processes in kB"),
|
||||
N_("Memory in locked pages in kB")
|
||||
};
|
||||
@@ -1,49 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/mountlist.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_mountlist [GLIBTOP_MAX_MOUNTLIST] =
|
||||
{
|
||||
"number", "total", "size"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_mountlist [GLIBTOP_MAX_MOUNTLIST] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_mountlist [GLIBTOP_MAX_MOUNTLIST] =
|
||||
{
|
||||
N_("Number of list elements"),
|
||||
N_("Total size of list"),
|
||||
N_("Size of a single list element")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_mountlist [GLIBTOP_MAX_MOUNTLIST] =
|
||||
{
|
||||
N_("Number of list elements"),
|
||||
N_("Total size of list"),
|
||||
N_("Size of a single list element")
|
||||
};
|
||||
@@ -1,59 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/msg_limits.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_msg_limits [GLIBTOP_MAX_MSG_LIMITS] =
|
||||
{
|
||||
"msgpool", "msgmap", "msgmax", "msgmnb", "msgmni", "msgssz", "msgtql"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_msg_limits [GLIBTOP_MAX_MSG_LIMITS] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_msg_limits [GLIBTOP_MAX_MSG_LIMITS] =
|
||||
{
|
||||
N_("Size in kilobytes of message pool"),
|
||||
N_("Number of entries in message map"),
|
||||
N_("Max size of message"),
|
||||
N_("Default max size of queue"),
|
||||
N_("Max queues system wide"),
|
||||
N_("Message segment size"),
|
||||
N_("Number of system message headers")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_msg_limits [GLIBTOP_MAX_MSG_LIMITS] =
|
||||
{
|
||||
N_("Size in kilobytes of message pool"),
|
||||
N_("Number of entries in message map"),
|
||||
N_("Max size of message"),
|
||||
N_("Default max size of queue"),
|
||||
N_("Max queues system wide"),
|
||||
N_("Message segment size"),
|
||||
N_("Number of system message headers")
|
||||
};
|
||||
@@ -1,84 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/netload.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_netload [GLIBTOP_MAX_NETLOAD] =
|
||||
{
|
||||
"if_flags", "mtu", "subnet", "address", "packets_in",
|
||||
"packets_out", "packets_total", "bytes_in", "bytes_out",
|
||||
"bytes_total", "errors_in", "errors_out", "errors_total",
|
||||
"collisions", "address6", "prefix6", "scope6"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_netload [GLIBTOP_MAX_NETLOAD] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_netload [GLIBTOP_MAX_NETLOAD] =
|
||||
{
|
||||
N_("Interface Flags"),
|
||||
N_("MTU"),
|
||||
N_("IPv4 Subnet"),
|
||||
N_("IPv4 Address"),
|
||||
N_("Packets In"),
|
||||
N_("Packets Out"),
|
||||
N_("Packets Total"),
|
||||
N_("Bytes In"),
|
||||
N_("Bytes Out"),
|
||||
N_("Bytes Total"),
|
||||
N_("Errors In"),
|
||||
N_("Errors Out"),
|
||||
N_("Errors Total"),
|
||||
N_("Collisions"),
|
||||
N_("IPv6 Address"),
|
||||
N_("IPv6 Prefix"),
|
||||
N_("IPv6 Scope")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_netload [GLIBTOP_MAX_NETLOAD] =
|
||||
{
|
||||
N_("Interface Flags"),
|
||||
N_("Maximum Transfer Unit"),
|
||||
N_("IPv4 Subnet"),
|
||||
N_("IPv4 Address"),
|
||||
N_("Packets In"),
|
||||
N_("Packets Out"),
|
||||
N_("Packets Total"),
|
||||
N_("Bytes In"),
|
||||
N_("Bytes Out"),
|
||||
N_("Bytes Total"),
|
||||
N_("Errors In"),
|
||||
N_("Errors Out"),
|
||||
N_("Errors Total"),
|
||||
N_("Collisions"),
|
||||
N_("IPv6 Address"),
|
||||
N_("IPv6 Prefix"),
|
||||
N_("IPv6 Scope")
|
||||
};
|
||||
@@ -1,49 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/ppp.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_ppp [GLIBTOP_MAX_PPP] =
|
||||
{
|
||||
"state", "bytes_in", "bytes_out"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_ppp [GLIBTOP_MAX_PPP] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_ppp [GLIBTOP_MAX_PPP] =
|
||||
{
|
||||
N_("PPP State"),
|
||||
N_("Input bytes"),
|
||||
N_("Output bytes")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_ppp [GLIBTOP_MAX_PPP] =
|
||||
{
|
||||
N_("PPP State"),
|
||||
N_("Number of input bytes"),
|
||||
N_("Number of output bytes")
|
||||
};
|
||||
@@ -1,45 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/procargs.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proc_args [GLIBTOP_MAX_PROC_ARGS] =
|
||||
{
|
||||
"size"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_args [GLIBTOP_MAX_PROC_ARGS] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_args [GLIBTOP_MAX_PROC_ARGS] =
|
||||
{
|
||||
N_("Size")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_args [GLIBTOP_MAX_PROC_ARGS] =
|
||||
{
|
||||
N_("Length in bytes of the returned string.")
|
||||
};
|
||||
@@ -1,83 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/prockernel.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proc_kernel [GLIBTOP_MAX_PROC_KERNEL] =
|
||||
{
|
||||
"k_flags", "min_flt", "maj_flt", "cmin_flt", "cmaj_flt",
|
||||
"kstk_esp", "kstk_eip", "nwchan", "wchan"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_kernel [GLIBTOP_MAX_PROC_KERNEL] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_STRING
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_kernel [GLIBTOP_MAX_PROC_KERNEL] =
|
||||
{
|
||||
N_("K_Flags"), N_("Min_Flt"), N_("Maj_Flt"), N_("CMin_Flt"),
|
||||
N_("CMaj_Flt"), N_("KStk_ESP"), N_("KStk_EIP"), N_("NWChan"),
|
||||
N_("WChan")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_kernel [GLIBTOP_MAX_PROC_KERNEL] =
|
||||
{
|
||||
/* K_Flags */
|
||||
N_("Kernel flags of the process.\n\n"
|
||||
"On Linux, currently every flag has the math bit set, because "
|
||||
"crt0.s checks for math emulation, so this is not included in "
|
||||
"the output.\n\n"
|
||||
"This is probably a bug, as not every process is a compiled C "
|
||||
"program.\n\n"
|
||||
"The math bit should be a decimal 4, and the traced bit is "
|
||||
"decimal 10."),
|
||||
/* Min_Flt */
|
||||
N_("The number of minor faults the process has made, those which "
|
||||
"have not required loading a memory page from disk."),
|
||||
/* Maj_Flt */
|
||||
N_("The number of major faults the process has made, those which "
|
||||
"have required loading a memory page from disk."),
|
||||
/* CMin_Flt */
|
||||
N_("The number of minor faults that the process and its children "
|
||||
"have made."),
|
||||
/* CMaj_Flt */
|
||||
N_("The number of major faults that the process and its children "
|
||||
"have made."),
|
||||
/* KStk_ESP */
|
||||
N_("The current value of esp (32-bit stack pointer), as found in "
|
||||
"the kernel stack page for the process."),
|
||||
/* KStk_EIP */
|
||||
N_("The current EIP (32-bit instruction pointer)."),
|
||||
/* NWChan */
|
||||
N_("This is the \"channel\" in which the process is waiting. This "
|
||||
"is the address of a system call, and can be looked up in a "
|
||||
"namelist if you need a textual name. (If you have an up-to-date "
|
||||
"/etc/psdatabase, then try ps -l to see the WCHAN field in action)"),
|
||||
/* WChan */
|
||||
N_("This is the textual name of the `nwchan' field.")
|
||||
};
|
||||
@@ -1,49 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/proclist.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proclist [GLIBTOP_MAX_PROCLIST] =
|
||||
{
|
||||
"number", "total", "size"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proclist [GLIBTOP_MAX_PROCLIST] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proclist [GLIBTOP_MAX_PROCLIST] =
|
||||
{
|
||||
N_("Number of list elements"),
|
||||
N_("Total size of list"),
|
||||
N_("Size of a single list element")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proclist [GLIBTOP_MAX_PROCLIST] =
|
||||
{
|
||||
N_("Number of list elements"),
|
||||
N_("Total size of list"),
|
||||
N_("Size of a single list element")
|
||||
};
|
||||
@@ -1,49 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/procmap.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proc_map [GLIBTOP_MAX_PROC_MAP] =
|
||||
{
|
||||
"number", "total", "size"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_map [GLIBTOP_MAX_PROC_MAP] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_map [GLIBTOP_MAX_PROC_MAP] =
|
||||
{
|
||||
N_("Number of list elements"),
|
||||
N_("Total size of list"),
|
||||
N_("Size of a single list element")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_map [GLIBTOP_MAX_PROC_MAP] =
|
||||
{
|
||||
N_("Number of list elements"),
|
||||
N_("Total size of list"),
|
||||
N_("Size of a single list element")
|
||||
};
|
||||
@@ -1,65 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procmem.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
#define GLIBTOP_PROC_MEM_SIZE 0
|
||||
#define GLIBTOP_PROC_MEM_VSIZE 1
|
||||
#define GLIBTOP_PROC_MEM_RESIDENT 2
|
||||
#define GLIBTOP_PROC_MEM_SHARE 3
|
||||
#define GLIBTOP_PROC_MEM_RSS 4
|
||||
#define GLIBTOP_PROC_MEM_RSS_RLIM 5
|
||||
|
||||
const char *glibtop_names_proc_mem [GLIBTOP_MAX_PROC_MEM] =
|
||||
{
|
||||
"size", "vsize", "resident", "share", "rss", "rss_rlim"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_mem [GLIBTOP_MAX_PROC_MEM] =
|
||||
{
|
||||
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
|
||||
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_mem [GLIBTOP_MAX_PROC_MEM] =
|
||||
{
|
||||
N_("Size"), N_("Virtual"), N_("Resident"), N_("Share"),
|
||||
N_("Resident Set Size"), N_("Resident Set Size Limit")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_mem [GLIBTOP_MAX_PROC_MEM] =
|
||||
{
|
||||
N_("Total # of pages of memory"),
|
||||
N_("Number of pages of virtual memory"),
|
||||
N_("Number of resident set (non-swapped) pages"),
|
||||
N_("Number of pages of shared (mmap'd) memory"),
|
||||
N_("Number of pages the process has in real memory, minus 3 "
|
||||
"for administrative purposes. This is just the pages which "
|
||||
"count towards text, data, or stack space. This does not "
|
||||
"include pages which have not been demand-loaded in, or which "
|
||||
"are swapped out."),
|
||||
N_("Current limit in bytes on the rss of the process "
|
||||
"(usually 2,147,483,647).")
|
||||
};
|
||||
@@ -1,57 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procsegment.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proc_segment [GLIBTOP_MAX_PROC_SEGMENT] =
|
||||
{
|
||||
"text_rss", "shlib_rss", "data_rss", "stack_rss",
|
||||
"dirty_size", "start_code", "end_code", "start_stack"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_segment [GLIBTOP_MAX_PROC_SEGMENT] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_segment [GLIBTOP_MAX_PROC_SEGMENT] =
|
||||
{
|
||||
N_("Text_RSS"), N_("ShLib_RSS"), N_("Data_RSS"), N_("Stack_RSS"),
|
||||
N_("Dirty Size"), N_("Start_Code"), N_("End_Code"), N_("Start_Stack")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_segment [GLIBTOP_MAX_PROC_SEGMENT] =
|
||||
{
|
||||
N_("Text resident set size"),
|
||||
N_("Shared-Lib resident set size"),
|
||||
N_("Data resident set size"),
|
||||
N_("Stack resident set size"),
|
||||
N_("Total size of dirty pages"),
|
||||
N_("Address of beginning of code segment"),
|
||||
N_("Address of end of code segment"),
|
||||
N_("Address of the bottom of stack segment")
|
||||
};
|
||||
@@ -1,50 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procsignal.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proc_signal [GLIBTOP_MAX_PROC_SIGNAL] =
|
||||
{
|
||||
"signal", "blocked", "sigignore", "sigcatch"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_signal [GLIBTOP_MAX_PROC_SIGNAL] =
|
||||
{
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT,
|
||||
GLIBTOP_TYPE_INT
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_signal [GLIBTOP_MAX_PROC_SIGNAL] =
|
||||
{
|
||||
N_("Signal"), N_("Blocked"), N_("SigIgnore"), N_("SigCatch")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_signal [GLIBTOP_MAX_PROC_SIGNAL] =
|
||||
{
|
||||
N_("Mask of pending signals"),
|
||||
N_("Mask of blocked signals"),
|
||||
N_("Mask of ignored signals"),
|
||||
N_("Mask of caught signals")
|
||||
};
|
||||
@@ -1,58 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procstate.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proc_state [GLIBTOP_MAX_PROC_STATE] =
|
||||
{
|
||||
"cmd", "state", "uid", "gid", "ruid", "rgid",
|
||||
"has_cpu", "processor", "last_processor"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_state [GLIBTOP_MAX_PROC_STATE] =
|
||||
{
|
||||
GLIBTOP_TYPE_STRING, GLIBTOP_TYPE_CHAR, GLIBTOP_TYPE_INT,
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT,
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_state [GLIBTOP_MAX_PROC_STATE] =
|
||||
{
|
||||
N_("Cmd"), N_("State"), N_("UID"), N_("GID"),
|
||||
N_("RGid"), N_("RUid"), N_("HasCPU"), N_("Proc"), N_("LProc")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_state [GLIBTOP_MAX_PROC_STATE] =
|
||||
{
|
||||
N_("Basename of executable file in call to exec()"),
|
||||
N_("Single-Char code for process state (S=sleeping)"),
|
||||
N_("UID of process"),
|
||||
N_("GID of process"),
|
||||
N_("Real UID of process"),
|
||||
N_("Real GID of process"),
|
||||
N_("Has CPU"),
|
||||
N_("Processor"),
|
||||
N_("Last Processor"),
|
||||
};
|
||||
@@ -1,66 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/proctime.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proc_time [GLIBTOP_MAX_PROC_TIME] =
|
||||
{
|
||||
"start_time", "rtime", "utime", "stime", "cutime", "cstime",
|
||||
"timeout", "it_real_value", "timeout", "xcpu_utime",
|
||||
"xcpu_stime"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_time [GLIBTOP_MAX_PROC_TIME] =
|
||||
{
|
||||
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
|
||||
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
|
||||
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
|
||||
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_time [GLIBTOP_MAX_PROC_TIME] =
|
||||
{
|
||||
N_("Start_Time"), N_("RTime"), N_("UTime"), N_("STime"),
|
||||
N_("CUTime"), N_("CSTime"), N_("TimeOut"), N_("It_Real_Value"),
|
||||
N_("Frequency"), N_("XCPU_UTime"), N_("XCPU_STime")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_time [GLIBTOP_MAX_PROC_TIME] =
|
||||
{
|
||||
N_("Start time of process in seconds since the epoch"),
|
||||
N_("Real time accumulated by process (should be utime + stime)"),
|
||||
N_("user-mode CPU time accumulated by process"),
|
||||
N_("kernel-mode CPU time accumulated by process"),
|
||||
N_("cumulative utime of process and reaped children"),
|
||||
N_("cumulative stime of process and reaped children"),
|
||||
N_("The time (in jiffies) of the process's next timeout"),
|
||||
N_("The time (in jiffies) before the next SIGALRM is sent "
|
||||
"to the process due to an interval timer."),
|
||||
N_("Tick frequency"),
|
||||
N_("SMP user-mode CPU time accumulated by process"),
|
||||
N_("SMP kernel-mode CPU time accumulated by process")
|
||||
};
|
||||
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procuid.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_proc_uid [GLIBTOP_MAX_PROC_UID] =
|
||||
{
|
||||
"uid", "euid", "gid", "egid", "suid", "sgid",
|
||||
"fsuid", "fsgid", "pid", "ppid", "pgrp",
|
||||
"session", "tty", "tpgid", "priority", "nice",
|
||||
"ngroups", "groups"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_proc_uid [GLIBTOP_MAX_PROC_UID] =
|
||||
{
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT,
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT,
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT,
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT,
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT,
|
||||
GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT, GLIBTOP_TYPE_INT
|
||||
};
|
||||
|
||||
const char *glibtop_labels_proc_uid [GLIBTOP_MAX_PROC_UID] =
|
||||
{
|
||||
N_("Uid"), N_("EUid"), N_("Gid"), N_("EGid"), N_("SUid"),
|
||||
N_("SGid"), N_("FSUid"), N_("FSGid"), N_("Pid"),
|
||||
N_("PPid"), N_("PGrp"), N_("Session"), N_("Tty"),
|
||||
N_("TPGid"), N_("Priority"), N_("Nice"), N_("NGroups"), N_("Groups")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_proc_uid [GLIBTOP_MAX_PROC_UID] =
|
||||
{
|
||||
N_("User ID"),
|
||||
N_("Effective User ID"),
|
||||
N_("Group ID"),
|
||||
N_("Effective Group ID"),
|
||||
N_("Set User ID"),
|
||||
N_("Set Group ID"),
|
||||
N_("Filesystem User ID"),
|
||||
N_("Filesystem Group ID"),
|
||||
N_("Process ID"),
|
||||
N_("PID of parent process"),
|
||||
N_("Process group ID"),
|
||||
N_("Session ID"),
|
||||
N_("Full device number of controlling terminal"),
|
||||
N_("Terminal process group ID"),
|
||||
N_("Kernel scheduling priority"),
|
||||
N_("Standard unix nice level of process"),
|
||||
N_("Number of additional process groups"),
|
||||
N_("Array of additional process groups")
|
||||
};
|
||||
@@ -1,67 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/sem_limits.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_sem_limits [GLIBTOP_MAX_SEM_LIMITS] =
|
||||
{
|
||||
"semmap", "semmni", "semmns", "semmnu", "semmsl",
|
||||
"semopm", "semume", "semusz", "semvmx", "semaem"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_sem_limits [GLIBTOP_MAX_SEM_LIMITS] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_sem_limits [GLIBTOP_MAX_SEM_LIMITS] =
|
||||
{
|
||||
N_("Number of entries in semaphore map"),
|
||||
N_("Max number of arrays"),
|
||||
N_("Max semaphores system wide"),
|
||||
N_("Number of undo structures system wide"),
|
||||
N_("Max semaphores per array"),
|
||||
N_("Max ops per semop call"),
|
||||
N_("Max number of undo entries per process"),
|
||||
N_("sizeof struct sem_undo"),
|
||||
N_("Semaphore max value"),
|
||||
N_("Adjust on exit max value")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_sem_limits [GLIBTOP_MAX_SEM_LIMITS] =
|
||||
{
|
||||
N_("Number of entries in semaphore map"),
|
||||
N_("Max number of arrays"),
|
||||
N_("Max semaphores system wide"),
|
||||
N_("Number of undo structures system wide"),
|
||||
N_("Max semaphores per array"),
|
||||
N_("Max ops per semop call"),
|
||||
N_("Max number of undo entries per process"),
|
||||
N_("sizeof struct sem_undo"),
|
||||
N_("Semaphore max value"),
|
||||
N_("Adjust on exit max value")
|
||||
};
|
||||
@@ -1,54 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/shm_limits.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_shm_limits [GLIBTOP_MAX_SHM_LIMITS] =
|
||||
{
|
||||
"shmmax", "shmmin", "shmmni", "shmseg", "shmall"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_shm_limits [GLIBTOP_MAX_SHM_LIMITS] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_shm_limits [GLIBTOP_MAX_SHM_LIMITS] =
|
||||
{
|
||||
N_("Max segment size"),
|
||||
N_("Min segment size"),
|
||||
N_("Max number of segments"),
|
||||
N_("Max shared segments per process"),
|
||||
N_("Max total shared memory")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_shm_limits [GLIBTOP_MAX_SHM_LIMITS] =
|
||||
{
|
||||
N_("Max segment size"),
|
||||
N_("Min segment size"),
|
||||
N_("Max number of segments"),
|
||||
N_("Max shared segments per process"),
|
||||
N_("Max total shared memory")
|
||||
};
|
||||
@@ -1,56 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/swap.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_swap [GLIBTOP_MAX_SWAP] =
|
||||
{
|
||||
"total", "used", "free", "pagein", "pageout"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_swap [GLIBTOP_MAX_SWAP] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_swap [GLIBTOP_MAX_SWAP] =
|
||||
{
|
||||
N_("Total Swap Space"),
|
||||
N_("Used Swap Space"),
|
||||
N_("Free Swap Space"),
|
||||
N_("Page In"),
|
||||
N_("Page Out"),
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_swap [GLIBTOP_MAX_SWAP] =
|
||||
{
|
||||
N_("Total Swap Space"),
|
||||
N_("Used Swap Space"),
|
||||
N_("Free Swap Space"),
|
||||
N_("Total number of swap pages that have been brought in "
|
||||
"since system boot"),
|
||||
N_("Total number of swap pages that have been brought out "
|
||||
"since system boot"),
|
||||
};
|
||||
@@ -1,100 +0,0 @@
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <glibtop/union.h>
|
||||
#include <glibtop/sysdeps.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_sysdeps [GLIBTOP_MAX_SYSDEPS] =
|
||||
{
|
||||
"features", "cpu", "mem", "swap", "uptime", "loadavg",
|
||||
"shm_limits", "msg_limits", "sem_limits", "proclist",
|
||||
"proc_state", "proc_uid", "proc_mem", "proc_time",
|
||||
"proc_signal", "proc_kernel", "proc_segment", "proc_args",
|
||||
"proc_map", "mountlist", "fsusage", "netload", "ppp"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_sysdeps [GLIBTOP_MAX_SYSDEPS] =
|
||||
{
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
|
||||
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_sysdeps [GLIBTOP_MAX_SYSDEPS] =
|
||||
{
|
||||
N_("Server Features"),
|
||||
N_("CPU Usage"),
|
||||
N_("Memory Usage"),
|
||||
N_("Swap Usage"),
|
||||
N_("System Uptime"),
|
||||
N_("Load Averange"),
|
||||
N_("Shared Memory Limits"),
|
||||
N_("Message Queue Limits"),
|
||||
N_("Semaphore Set Limits"),
|
||||
N_("List of running Processes"),
|
||||
N_("Process Status information"),
|
||||
N_("Process UID and TTY information"),
|
||||
N_("Process Memory information"),
|
||||
N_("Process Time information"),
|
||||
N_("Process Signal information"),
|
||||
N_("Process Kernel Data information"),
|
||||
N_("Process Segment information"),
|
||||
N_("Process Arguments"),
|
||||
N_("Process Memory Map"),
|
||||
N_("Mount List"),
|
||||
N_("File System Usage"),
|
||||
N_("Network Load"),
|
||||
N_("PPP Statistics")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_sysdeps [GLIBTOP_MAX_SYSDEPS] =
|
||||
{
|
||||
N_("Server Features"),
|
||||
N_("CPU Usage"),
|
||||
N_("Memory Usage"),
|
||||
N_("Swap Usage"),
|
||||
N_("System Uptime"),
|
||||
N_("Load Averange"),
|
||||
N_("Shared Memory Limits"),
|
||||
N_("Message Queue Limits"),
|
||||
N_("Semaphore Set Limits"),
|
||||
N_("List of running Processes"),
|
||||
N_("Process Status information"),
|
||||
N_("Process UID and TTY information"),
|
||||
N_("Process Memory information"),
|
||||
N_("Process Time information"),
|
||||
N_("Process Signal information"),
|
||||
N_("Process Kernel Data information"),
|
||||
N_("Process Segment information"),
|
||||
N_("Command line arguments of the process"),
|
||||
N_("Process Memory Map"),
|
||||
N_("List of currently mounted filesystems"),
|
||||
N_("File System Usage"),
|
||||
N_("Network Load"),
|
||||
N_("PPP Statistics")
|
||||
};
|
||||
@@ -1,49 +0,0 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1998-99 Martin Baulig
|
||||
This file is part of LibGTop 1.0.
|
||||
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
LibGTop is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with LibGTop; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <glibtop/uptime.h>
|
||||
#include "libgtop-i18n.h"
|
||||
|
||||
const char *glibtop_names_uptime [GLIBTOP_MAX_UPTIME] =
|
||||
{
|
||||
"uptime", "idletime", "boot_time"
|
||||
};
|
||||
|
||||
const unsigned glibtop_types_uptime [GLIBTOP_MAX_UPTIME] =
|
||||
{
|
||||
GLIBTOP_TYPE_DOUBLE, GLIBTOP_TYPE_DOUBLE, GLIBTOP_TYPE_ULONG
|
||||
};
|
||||
|
||||
const char *glibtop_labels_uptime [GLIBTOP_MAX_UPTIME] =
|
||||
{
|
||||
N_("Uptime"),
|
||||
N_("Idletime"),
|
||||
N_("BootTime")
|
||||
};
|
||||
|
||||
const char *glibtop_descriptions_uptime [GLIBTOP_MAX_UPTIME] =
|
||||
{
|
||||
N_("Time in seconds since system boot"),
|
||||
N_("Time in seconds the system spent in the idle task since system boot"),
|
||||
N_("Time of last system boot in seconds since the epoch"),
|
||||
};
|
||||
Reference in New Issue
Block a user