Compare commits
72 Commits
LIBGTOP_2_
...
linux_daem
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c95195787 | ||
|
|
ef34cfb38a | ||
|
|
1e0ba1d7aa | ||
|
|
6b0bafcafb | ||
|
|
c0856a39bd | ||
|
|
270820a05c | ||
|
|
358660837c | ||
|
|
e387c66aad | ||
|
|
e774440e77 | ||
|
|
c7295cd5f0 | ||
|
|
65fe248d66 | ||
|
|
5c479c9a45 | ||
|
|
6509ddff4c | ||
|
|
ee78aaf29c | ||
|
|
a5f59cb81a | ||
|
|
a99011fd5c | ||
|
|
598374bb1c | ||
|
|
b1acd4461e | ||
|
|
0e2fe6158c | ||
|
|
f8b9e6f7cc | ||
|
|
8fc7451000 | ||
|
|
aaab91cc20 | ||
|
|
cde89c59b1 | ||
|
|
0ce04dd037 | ||
|
|
8e4c6df830 | ||
|
|
da54431af5 | ||
|
|
ace68aa492 | ||
|
|
eee0cad2b6 | ||
|
|
785b30aeb6 | ||
|
|
3eb958dc6c | ||
|
|
cd389851b9 | ||
|
|
7ee8dae9c5 | ||
|
|
4b9bb4ee71 | ||
|
|
aa9fafe5c3 | ||
|
|
e0c1214cdd | ||
|
|
82612af053 | ||
|
|
2f6439a239 | ||
|
|
44ff5b7599 | ||
|
|
eb6c8b696f | ||
|
|
177d1aa841 | ||
|
|
021153bc49 | ||
|
|
89810a70ec | ||
|
|
504ff4ec59 | ||
|
|
04a5531a46 | ||
|
|
5a15e409cf | ||
|
|
747438e334 | ||
|
|
10211bf7da | ||
|
|
09f8aaec1e | ||
|
|
9f509067d4 | ||
|
|
a085c85db6 | ||
|
|
c6a7459bc9 | ||
|
|
3d06443c2c | ||
|
|
3f49e555fc | ||
|
|
e156172e7c | ||
|
|
c9385972bd | ||
|
|
b411ee115f | ||
|
|
63fb94127a | ||
|
|
37fc9c1544 | ||
|
|
9055b90aef | ||
|
|
3f25ae9b43 | ||
|
|
a288a086f7 | ||
|
|
25a398fc24 | ||
|
|
0b438b5250 | ||
|
|
0d2382e666 | ||
|
|
56b06c7433 | ||
|
|
84f690d318 | ||
|
|
fef76514ed | ||
|
|
1bc8ce6f23 | ||
|
|
920a936511 | ||
|
|
648c28b332 | ||
|
|
d9282f6102 | ||
|
|
1ca0e5c5e7 |
48
.cvsignore
48
.cvsignore
@@ -1,48 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
aclocal.m4
|
|
||||||
config.cache
|
|
||||||
config.h
|
|
||||||
config.h.in
|
|
||||||
config.log
|
|
||||||
config.sub
|
|
||||||
config.guess
|
|
||||||
config.status
|
|
||||||
configure
|
|
||||||
gtopConf.sh
|
|
||||||
i386-bsdi
|
|
||||||
i686-pc-linux-gnu
|
|
||||||
intl
|
|
||||||
libgtop-mirror.sh.swp
|
|
||||||
libgtopConf.sh
|
|
||||||
libtool
|
|
||||||
ltconfig
|
|
||||||
ltmain.sh
|
|
||||||
macros
|
|
||||||
stamp-h
|
|
||||||
stamp-h.in
|
|
||||||
sun4
|
|
||||||
sun4sol2
|
|
||||||
support
|
|
||||||
i386-freebsd
|
|
||||||
alpha-dec-osf3.0
|
|
||||||
i686-pc-linux-gnu-linux
|
|
||||||
libgtop-config
|
|
||||||
ABOUT-NLS
|
|
||||||
libgtop.spec
|
|
||||||
libgtop*.tar.gz
|
|
||||||
*-debstamp
|
|
||||||
libgtop*.pc
|
|
||||||
autom4te.cache
|
|
||||||
COPYING
|
|
||||||
INSTALL
|
|
||||||
install-sh
|
|
||||||
missing
|
|
||||||
mkinstalldirs
|
|
||||||
libgtopconfig.h
|
|
||||||
intltool-extract.in
|
|
||||||
intltool-extract
|
|
||||||
intltool-merge.in
|
|
||||||
intltool-merge
|
|
||||||
intltool-update.in
|
|
||||||
intltool-update
|
|
||||||
183
ChangeLog
183
ChangeLog
@@ -1,3 +1,186 @@
|
|||||||
|
2007-05-19 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* features.def:
|
||||||
|
* include/glibtop/proclist.h:
|
||||||
|
|
||||||
|
Small API change.
|
||||||
|
get_proclist returns pid_t instead of unsigned for consistency.
|
||||||
|
I have checked many archs and this doesn't break the ABI.
|
||||||
|
|
||||||
|
2007-05-17 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* configure.in:
|
||||||
|
|
||||||
|
Bumped version number.
|
||||||
|
|
||||||
|
2007-05-14 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* include/glibtop/Makefile.am:
|
||||||
|
* lib/Makefile.am:
|
||||||
|
|
||||||
|
Fixed dist.
|
||||||
|
|
||||||
|
2007-05-13 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* NEWS:
|
||||||
|
* configure.in:
|
||||||
|
|
||||||
|
Released 2.19.2.
|
||||||
|
|
||||||
|
2007-05-10 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* lib/libgtop.sym:
|
||||||
|
|
||||||
|
Added missing *_p symbols.
|
||||||
|
|
||||||
|
2007-05-07 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* configure.in:
|
||||||
|
* lib/Makefile.am:
|
||||||
|
* lib/libgtop.sym:
|
||||||
|
|
||||||
|
Updated libtool version.
|
||||||
|
Now uses a symbol list instead of a regex.
|
||||||
|
|
||||||
|
2007-05-07 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* New API to get cwd, root and exe path
|
||||||
|
of a process. API not frozen yet.
|
||||||
|
|
||||||
|
2007-04-27 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
Got rid of InodeDB.
|
||||||
|
This feature was optionnal and i have never heard of anyone using
|
||||||
|
it. I have never touched it so it may be broken since 2.6.
|
||||||
|
|
||||||
|
2007-04-11 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* *:
|
||||||
|
|
||||||
|
Renamed all glibtop_init_xxx functions
|
||||||
|
to _glibtop_init_xxx so they get internal visibility.
|
||||||
|
|
||||||
|
* configure.in:
|
||||||
|
|
||||||
|
Bumped version number.
|
||||||
|
|
||||||
|
2007-03-13 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* MAINTAINERS:
|
||||||
|
|
||||||
|
Updated.
|
||||||
|
|
||||||
|
2007-02-25 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* NEWS:
|
||||||
|
|
||||||
|
Released 2.14.8.
|
||||||
|
|
||||||
|
2007-02-20 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* *:
|
||||||
|
|
||||||
|
Removed noisy $Id$.
|
||||||
|
|
||||||
|
2007-02-18 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* configure.in:
|
||||||
|
* libgtop-sysdeps.m4:
|
||||||
|
* sysdeps/Makefile.am:
|
||||||
|
|
||||||
|
Huge (k)FreeBSD update.
|
||||||
|
(k)FreeBSD support is freebsd/
|
||||||
|
Other BSD are in bsd/
|
||||||
|
|
||||||
|
Patch by Joe Marcus Clarke <marcus@freebsd.org>
|
||||||
|
Alexander Nedotsukov <bland@FreeBSD.org>
|
||||||
|
|
||||||
|
Closes #407693.
|
||||||
|
|
||||||
|
2007-02-14 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* lib/read.c: (glibtop_read_l):
|
||||||
|
* lib/write.c: (glibtop_write_l):
|
||||||
|
|
||||||
|
Handle EINTR.
|
||||||
|
|
||||||
|
* configure.in:
|
||||||
|
|
||||||
|
Post release version bump.
|
||||||
|
|
||||||
|
2007-02-10 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* NEWS:
|
||||||
|
* configure.in:
|
||||||
|
|
||||||
|
Released 2.14.7.
|
||||||
|
|
||||||
|
2007-01-14 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* NEWS:
|
||||||
|
|
||||||
|
Released 2.14.6.
|
||||||
|
|
||||||
|
2007-01-11 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* configure.in:
|
||||||
|
|
||||||
|
Bumped version number to 2.14.6.
|
||||||
|
|
||||||
|
* *:
|
||||||
|
|
||||||
|
Got rid of CVS admin files.
|
||||||
|
|
||||||
|
2006-12-03 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* doc/reference/libgtop-docs.xml:
|
||||||
|
* glibtop.h:
|
||||||
|
* include/glibtop/sysinfo.h:
|
||||||
|
|
||||||
|
Made gtk-doc happy in order to dist.
|
||||||
|
|
||||||
|
2006-12-03 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* NEWS:
|
||||||
|
|
||||||
|
Released 2.14.5.
|
||||||
|
|
||||||
|
2006-12-02 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* Makefile.am:
|
||||||
|
* configure.in:
|
||||||
|
* doc/Makefile.am:
|
||||||
|
* doc/reference/Makefile.am:
|
||||||
|
* doc/reference/libgtop-docs.xml:
|
||||||
|
* doc/reference/libgtop-sections.txt:
|
||||||
|
* doc/reference/version.xml.in:
|
||||||
|
* gtk-doc.make:
|
||||||
|
* sysdeps/common/default.c:
|
||||||
|
|
||||||
|
Converted to gtk-doc.
|
||||||
|
Patch by Germán Poó-Caamaño <gpoo@ubiobio.cl>.
|
||||||
|
|
||||||
|
2006-12-01 Julio M. Merino Vidal <jmmv@NetBSD.org>
|
||||||
|
|
||||||
|
* configure.in:
|
||||||
|
* libgtop-sysdeps.m4:
|
||||||
|
|
||||||
|
Use the AS_HELP_STRING macro to format help messages.
|
||||||
|
Fixes bug #337068.
|
||||||
|
|
||||||
|
2006-11-27 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* libgtop-sysdeps.m4:
|
||||||
|
|
||||||
|
Added kfreebsd support.
|
||||||
|
Patch by Petr Salinger <Petr.Salinger@seznam.cz>.
|
||||||
|
|
||||||
|
2006-11-27 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* configure.in:
|
||||||
|
|
||||||
|
Bumped version number.
|
||||||
|
|
||||||
2006-09-16 Benoît Dejean <benoit@placenet.org>
|
2006-09-16 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
* NEWS:
|
* NEWS:
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
Email: martin@home-of-linux.org
|
Benoît Dejean (benoit@placenet.org)
|
||||||
Email: dave@srce.hr
|
|
||||||
Current maintainer : Benoît Dejean (benoit@placenet.org)
|
|
||||||
|
|||||||
@@ -32,3 +32,4 @@ pkgconfig_DATA = libgtop-2.0.pc
|
|||||||
libgtop-features.def: features.def
|
libgtop-features.def: features.def
|
||||||
@LN_S@ $< $@
|
@LN_S@ $< $@
|
||||||
|
|
||||||
|
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
|
||||||
|
|||||||
51
NEWS
51
NEWS
@@ -1,3 +1,54 @@
|
|||||||
|
18 June 2007: Overview of changes in 2.19.4
|
||||||
|
===========================================
|
||||||
|
* solaris:
|
||||||
|
- fixed build. Damien Carbery.
|
||||||
|
|
||||||
|
3 June 2007: Overview of changes in 2.19.3
|
||||||
|
==========================================
|
||||||
|
* Small API change. get_proclist returns pid_t instead of unsigned
|
||||||
|
for consistency.
|
||||||
|
* linux:
|
||||||
|
- fixed an typo bug in open_files.
|
||||||
|
- got rid of useless glibtop_init_s calls.
|
||||||
|
* Enable example build by defaut.
|
||||||
|
* Dropped G_GNUC_INTERNAL attributes no longer needed.
|
||||||
|
This will please people trying to implement G_GNUC macro with a non
|
||||||
|
GNU Compiler.
|
||||||
|
|
||||||
|
13 May 2007: Overview of changes in 2.19.2
|
||||||
|
==========================================
|
||||||
|
* This is the first release of the 2.19.x series.
|
||||||
|
* Got rid of inodedb (you don't even know what it is ;)
|
||||||
|
* New unstable API glibtop_get_proc_wd to get working directories of
|
||||||
|
a process.
|
||||||
|
* Fixed OpenBSD build. Jasper Lievisse Adriaanse.
|
||||||
|
|
||||||
|
25 February 2007: Overview of changes in 2.14.8
|
||||||
|
===============================================
|
||||||
|
* bsd implementations have been splitted by Joe Marcus Clarke
|
||||||
|
and Alexander Nedotsukov. (k)freeBSD now has a separate implementation.
|
||||||
|
|
||||||
|
February 10, 2007: Overview of changes in 2.14.7
|
||||||
|
================================================
|
||||||
|
* bsd:
|
||||||
|
- massive kfreeBSD and FreeBSD updates by Roy Marples and Petr Salinger.
|
||||||
|
* mountlist can now ignore objfs and ctfs filesystems.
|
||||||
|
* fsusage won't return bavail > bfree anymore.
|
||||||
|
|
||||||
|
January 14, 2007: Overview of changes in 2.14.6
|
||||||
|
===============================================
|
||||||
|
* linux:
|
||||||
|
- fixed stack overflow in glibtop_get_proc_map
|
||||||
|
- fixed handling of long filenames in glibtop_get_proc_map and glibtop_get_proc_open_files.
|
||||||
|
- micro-optimization
|
||||||
|
|
||||||
|
December 3, 2006: Overview of changes in 2.14.5
|
||||||
|
===============================================
|
||||||
|
* Added kfreebsd support (Petr Salinger <Petr.Salinger@seznam.cz>).
|
||||||
|
* Added solaris glibtop_get_proc_open_files (Henry Zhang <hua.zhang@sun.com>).
|
||||||
|
* Migrated to gtk-doc (Germán Poó-Caamaño <gpoo@ubiobio.cl>).
|
||||||
|
* glibtop_get_mountlist can now ignore nsfd FS.
|
||||||
|
|
||||||
September 16, 2006: Overview of changes in 2.14.4
|
September 16, 2006: Overview of changes in 2.14.4
|
||||||
=================================================
|
=================================================
|
||||||
* Fixed linux maps/smaps parsing on 64bit kernel.
|
* Fixed linux maps/smaps parsing on 64bit kernel.
|
||||||
|
|||||||
53
configure.in
53
configure.in
@@ -3,12 +3,12 @@ dnl Configure script for the Gnome library
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
m4_define([libgtop_major_version], [2])
|
m4_define([libgtop_major_version], [2])
|
||||||
m4_define([libgtop_minor_version], [14])
|
m4_define([libgtop_minor_version], [19])
|
||||||
m4_define([libgtop_micro_version], [4])
|
m4_define([libgtop_micro_version], [4])
|
||||||
m4_define([libgtop_version], [libgtop_major_version.libgtop_minor_version.libgtop_micro_version])
|
m4_define([libgtop_version], [libgtop_major_version.libgtop_minor_version.libgtop_micro_version])
|
||||||
|
|
||||||
dnl increment if the interface has additions, changes, removals.
|
dnl increment if the interface has additions, changes, removals.
|
||||||
m4_define([libgtop_current], [7])
|
m4_define([libgtop_current], [8])
|
||||||
|
|
||||||
dnl increment any time the source changes; set to
|
dnl increment any time the source changes; set to
|
||||||
dnl 0 if you increment CURRENT
|
dnl 0 if you increment CURRENT
|
||||||
@@ -17,7 +17,7 @@ m4_define([libgtop_revision], [0])
|
|||||||
dnl increment if any interfaces have been added; set to 0
|
dnl increment if any interfaces have been added; set to 0
|
||||||
dnl if any interfaces have been removed. removal has
|
dnl if any interfaces have been removed. removal has
|
||||||
dnl precedence over adding, so set to 0 if both happened.
|
dnl precedence over adding, so set to 0 if both happened.
|
||||||
m4_define([libgtop_age], [0])
|
m4_define([libgtop_age], [1])
|
||||||
|
|
||||||
# Increase each time you change the client/server protocol.
|
# Increase each time you change the client/server protocol.
|
||||||
m4_define([libgtop_server_version], [5])
|
m4_define([libgtop_server_version], [5])
|
||||||
@@ -25,6 +25,7 @@ m4_define([libgtop_server_version], [5])
|
|||||||
# Version code calculation
|
# Version code calculation
|
||||||
m4_define([libgtop_version_code], [m4_eval(libgtop_major_version * 1000000 + libgtop_minor_version * 1000 + libgtop_micro_version)])
|
m4_define([libgtop_version_code], [m4_eval(libgtop_major_version * 1000000 + libgtop_minor_version * 1000 + libgtop_micro_version)])
|
||||||
|
|
||||||
|
AC_PREREQ(2.59)
|
||||||
AC_INIT([libgtop], [libgtop_version],
|
AC_INIT([libgtop], [libgtop_version],
|
||||||
[http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop])
|
[http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop])
|
||||||
AC_CONFIG_SRCDIR(copyright.txt)
|
AC_CONFIG_SRCDIR(copyright.txt)
|
||||||
@@ -86,37 +87,12 @@ AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = xyes)
|
|||||||
GNOME_LIBGTOP_SYSDEPS
|
GNOME_LIBGTOP_SYSDEPS
|
||||||
GNOME_LIBGTOP_TYPES
|
GNOME_LIBGTOP_TYPES
|
||||||
|
|
||||||
AC_ARG_WITH(libgtop-inodedb,
|
|
||||||
[ --with-libgtop-inodedb Build the inodedb stuff (default=no)],
|
|
||||||
[build_inodedb="$withval"], [build_inodedb=no])
|
|
||||||
|
|
||||||
LIBGTOP_EXTRA_LIBS=
|
|
||||||
|
|
||||||
if test x$build_inodedb = xyes ; then
|
|
||||||
AC_CHECK_LIB(gdbm, gdbm_open, LIBGTOP_EXTRA_LIBS='-lgdbm', build_inodedb=no)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL(INODEDB, test x$build_inodedb = xyes)
|
|
||||||
|
|
||||||
if test x$build_inodedb = xyes ; then
|
|
||||||
AC_DEFINE(GLIBTOP_INODEDB, 1,
|
|
||||||
[Define if the libgtop inodedb should be built])
|
|
||||||
fi
|
|
||||||
|
|
||||||
GLIB_REQUIRED=2.6.0
|
GLIB_REQUIRED=2.6.0
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
|
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
|
||||||
AC_SUBST(GLIB_CFLAGS)
|
AC_SUBST(GLIB_CFLAGS)
|
||||||
AC_SUBST(GLIB_LIBS)
|
AC_SUBST(GLIB_LIBS)
|
||||||
|
|
||||||
AC_CHECK_HEADER(popt.h,[POPT=yes],[POPT=no])
|
|
||||||
AC_MSG_CHECKING(for popt.h)
|
|
||||||
if test x$POPT = xyes ; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
else
|
|
||||||
AC_MSG_ERROR([libgtop requires the popt development libraries])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_CHECK_HEADER(ifaddrs.h, [HAVE_IFADDRS_H=yes], [HAVE_IFADDRS_H=no])
|
AC_CHECK_HEADER(ifaddrs.h, [HAVE_IFADDRS_H=yes], [HAVE_IFADDRS_H=no])
|
||||||
if test x$HAVE_IFADDRS_H = xyes ; then
|
if test x$HAVE_IFADDRS_H = xyes ; then
|
||||||
AC_DEFINE(HAVE_IFADDRS_H, 1, [defined if you have ifaddrs.h])
|
AC_DEFINE(HAVE_IFADDRS_H, 1, [defined if you have ifaddrs.h])
|
||||||
@@ -279,8 +255,15 @@ dnl For diskusage stuff
|
|||||||
GNOME_FILEUTILS_CHECKS
|
GNOME_FILEUTILS_CHECKS
|
||||||
|
|
||||||
dnl Debugging
|
dnl Debugging
|
||||||
AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],AC_DEFINE(LIBGTOP_ENABLE_DEBUG, 1, [Define to enable debugging]),)
|
AC_ARG_ENABLE(debug,
|
||||||
AC_ARG_ENABLE(fatal-warnings, [ --enable-fatal-warnings make all warnings fatal [debug=no]],AC_DEFINE(LIBGTOP_FATAL_WARNINGS, 1, [Define to enable fatal warnings]),)
|
AS_HELP_STRING([--enable-debug],
|
||||||
|
[Turn on debugging @<:@default=no@:>@]),
|
||||||
|
AC_DEFINE(LIBGTOP_ENABLE_DEBUG, 1, [Define to enable debugging]))
|
||||||
|
AC_ARG_ENABLE(fatal-warnings,
|
||||||
|
AS_HELP_STRING([--enable-fatal-warnings],
|
||||||
|
[Make all warnings fatal @<:@debug=no@:>@]),
|
||||||
|
AC_DEFINE(LIBGTOP_FATAL_WARNINGS, 1,
|
||||||
|
[Define to enable fatal warnings]))
|
||||||
|
|
||||||
dnl These definitions are expanded in make.
|
dnl These definitions are expanded in make.
|
||||||
LIBGTOP_LIBS='-L$(libdir)'
|
LIBGTOP_LIBS='-L$(libdir)'
|
||||||
@@ -290,10 +273,6 @@ if test x$libgtop_use_machine_h = xyes ; then
|
|||||||
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_GLIBTOP_MACHINE_H"
|
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_GLIBTOP_MACHINE_H"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$build_inodedb = xyes ; then
|
|
||||||
LIBGTOP_INCS="$LIBGTOP_INCS -DGLIBTOP_INODEDB"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$libgtop_smp = xyes ; then
|
if test x$libgtop_smp = xyes ; then
|
||||||
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SMP"
|
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SMP"
|
||||||
fi
|
fi
|
||||||
@@ -381,6 +360,8 @@ fi
|
|||||||
AC_SUBST(sysdeps_suid_lib)
|
AC_SUBST(sysdeps_suid_lib)
|
||||||
AC_SUBST(server_programs)
|
AC_SUBST(server_programs)
|
||||||
|
|
||||||
|
GTK_DOC_CHECK(1.4)
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
libgtop.spec
|
libgtop.spec
|
||||||
@@ -398,12 +379,14 @@ sysdeps/linux/Makefile
|
|||||||
sysdeps/freebsd/Makefile
|
sysdeps/freebsd/Makefile
|
||||||
sysdeps/solaris/Makefile
|
sysdeps/solaris/Makefile
|
||||||
sysdeps/aix/Makefile
|
sysdeps/aix/Makefile
|
||||||
|
sysdeps/bsd/Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
src/daemon/Makefile
|
src/daemon/Makefile
|
||||||
src/inodedb/Makefile
|
|
||||||
lib/Makefile
|
lib/Makefile
|
||||||
examples/Makefile
|
examples/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
|
doc/reference/Makefile
|
||||||
|
doc/reference/version.xml
|
||||||
libgtop-2.0.pc
|
libgtop-2.0.pc
|
||||||
libgtopconfig.h
|
libgtopconfig.h
|
||||||
])
|
])
|
||||||
|
|||||||
9
debian/.cvsignore
vendored
9
debian/.cvsignore
vendored
@@ -1,9 +0,0 @@
|
|||||||
control
|
|
||||||
rules
|
|
||||||
build
|
|
||||||
tmp
|
|
||||||
*.postinst
|
|
||||||
*.debhelper
|
|
||||||
*.files
|
|
||||||
files
|
|
||||||
substvars
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
texinfo.tex
|
|
||||||
*.info
|
|
||||||
Makefile.in
|
|
||||||
Makefile
|
|
||||||
*.log *.toc *.dvi *.aux *.cp *.fn *.vr *.tp *.ky *.pg
|
|
||||||
*.ps
|
|
||||||
auto-macros.texi
|
|
||||||
version.texi
|
|
||||||
stamp-vti
|
|
||||||
*.html *.pdf
|
|
||||||
mdate-sh
|
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2007-02-15 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* reference/Makefile.am:
|
||||||
|
|
||||||
|
Fixed distcheck.
|
||||||
|
|
||||||
2006-02-21 Benoît Dejean <benoit@placenet.org>
|
2006-02-21 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
* reference.texi: Fixed glibtop_get_proc_state doc.
|
* reference.texi: Fixed glibtop_get_proc_state doc.
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
SUBDIRS = reference
|
||||||
|
|
||||||
info_TEXINFOS = libgtop2.texi
|
info_TEXINFOS = libgtop2.texi
|
||||||
|
|
||||||
libgtop2_TEXINFOS = libgtop2.texi about.texi reference.texi \
|
libgtop2_TEXINFOS = libgtop2.texi about.texi reference.texi \
|
||||||
|
|||||||
59
doc/reference/Makefile.am
Normal file
59
doc/reference/Makefile.am
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
AUTOMAKE_OPTIONS = 1.6
|
||||||
|
## Process this file with automake to produce Makefile.in
|
||||||
|
# The name of the module, e.g. 'glib'.
|
||||||
|
DOC_MODULE=libgtop
|
||||||
|
|
||||||
|
# The top-level SGML file. You can change this if you want to.
|
||||||
|
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
|
||||||
|
|
||||||
|
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
|
||||||
|
# SCANGOBJ_OPTIONS=
|
||||||
|
|
||||||
|
# Extra options to supply to gtkdoc-scan.
|
||||||
|
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
|
||||||
|
SCAN_OPTIONS=
|
||||||
|
|
||||||
|
# Extra options to supply to gtkdoc-mkdb.
|
||||||
|
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
|
||||||
|
MKDB_OPTIONS=--sgml-mode --output-format=xml --source-dir=$(top_srcdir)/sysdeps/common
|
||||||
|
|
||||||
|
# The directory containing the source code. Relative to $(srcdir).
|
||||||
|
# gtk-doc will search all .c & .h files beneath here for inline comments
|
||||||
|
# documenting the functions and macros.
|
||||||
|
# e.g. DOC_SOURCE_DIR=../../../gtk
|
||||||
|
DOC_SOURCE_DIR=$(top_srcdir)/include/glibtop
|
||||||
|
|
||||||
|
# Used for dependencies. The docs will be rebuilt if any of these change.
|
||||||
|
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
||||||
|
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
||||||
|
HFILE_GLOB=$(top_srcdir)/include/glibtop/*.h
|
||||||
|
CFILE_GLOB=$(top_srcdir)/sysdeps/common/*.c
|
||||||
|
|
||||||
|
# Header files to ignore when scanning.
|
||||||
|
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
|
||||||
|
IGNORE_HFILES=error.h global.h gnuserv.h init_hooks.h write.h read.h read_data.h config.h libgtopconfig.h
|
||||||
|
|
||||||
|
EXTRA_HFILES=$(top_srcdir)/glibtop.h
|
||||||
|
|
||||||
|
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
|
||||||
|
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
|
||||||
|
content_files=version.xml
|
||||||
|
|
||||||
|
# Images to copy into HTML directory.
|
||||||
|
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
|
||||||
|
HTML_IMAGES=
|
||||||
|
|
||||||
|
# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
|
||||||
|
# Only needed if you are using gtkdoc-scangobj to dynamically query widget
|
||||||
|
# signals and properties.
|
||||||
|
# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
|
||||||
|
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
|
||||||
|
INCLUDES=
|
||||||
|
GTKDOC_LIBS=
|
||||||
|
|
||||||
|
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
||||||
|
include $(top_srcdir)/gtk-doc.make
|
||||||
|
|
||||||
|
# Other files to distribute
|
||||||
|
# e.g. EXTRA_DIST += version.xml.in
|
||||||
|
EXTRA_DIST += version.xml.in
|
||||||
206
doc/reference/libgtop-docs.xml
Normal file
206
doc/reference/libgtop-docs.xml
Normal file
@@ -0,0 +1,206 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
|
||||||
|
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
|
||||||
|
<bookinfo>
|
||||||
|
<title>Libgtop Reference Manual</title>
|
||||||
|
<releaseinfo>for libgtop <xi:include href="version.xml"/></releaseinfo>
|
||||||
|
<authorgroup>
|
||||||
|
<author>
|
||||||
|
<firstname>Martin </firstname>
|
||||||
|
<surname>Baulig</surname>
|
||||||
|
<affiliation>
|
||||||
|
<address>
|
||||||
|
<email>martin@home-of-linux.org</email>
|
||||||
|
</address>
|
||||||
|
</affiliation>
|
||||||
|
</author>
|
||||||
|
<author>
|
||||||
|
<firstname>Germán</firstname>
|
||||||
|
<surname>Poó-Caamaño</surname>
|
||||||
|
<affiliation>
|
||||||
|
<address>
|
||||||
|
<email>gpoo@ubiobio.cl</email>
|
||||||
|
</address>
|
||||||
|
</affiliation>
|
||||||
|
</author>
|
||||||
|
</authorgroup>
|
||||||
|
|
||||||
|
<legalnotice>
|
||||||
|
<para>Permission is granted to copy, distribute and/or modify
|
||||||
|
this document under the terms of the <citetitle>GNU Free
|
||||||
|
Documentation License</citetitle>, Version 1.1 or any later
|
||||||
|
version published by the Free Software Foundation with no
|
||||||
|
Invariant Sections, no Front-Cover Texts, and no Back-Cover
|
||||||
|
Texts. You may obtain a copy of the <citetitle>GNU Free
|
||||||
|
Documentation License</citetitle> from the Free Software
|
||||||
|
Foundation by visiting <ulink type="http"
|
||||||
|
url="http://www.fsf.org">their Web site</ulink> or by writing
|
||||||
|
to: Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA.</para>
|
||||||
|
|
||||||
|
<para>Many of the names used by companies to distinguish their
|
||||||
|
products and services are claimed as trademarks. Where those
|
||||||
|
names appear in any GNOME documentation, and those trademarks
|
||||||
|
are made aware to the members of the GNOME Documentation
|
||||||
|
Project, the names have been printed in caps or initial
|
||||||
|
caps.</para>
|
||||||
|
</legalnotice>
|
||||||
|
|
||||||
|
<abstract>
|
||||||
|
<para>
|
||||||
|
LibGTop is a library to get system specific data such as CPU and
|
||||||
|
Memory Usage and information about running Processes.</para>
|
||||||
|
|
||||||
|
<para>On Systems like Solaris or Digital Unix where you need special
|
||||||
|
privileges to get those data, it uses a setuid/setgid server to do
|
||||||
|
so.</para>
|
||||||
|
|
||||||
|
<para>Even if LibGTop is a part of the GNOME desktop environment
|
||||||
|
(@uref{http://www.gnome.org}), the main interface of LibGTop is totally
|
||||||
|
independent from any particular desktop environment, so you can also
|
||||||
|
use it as a standalone library in any piece of GPLed software.</para>
|
||||||
|
|
||||||
|
<para>This manual documents the interfaces of the libgtop
|
||||||
|
library and has some short notes to help get you up to speed
|
||||||
|
with using the library.</para>
|
||||||
|
</abstract>
|
||||||
|
</bookinfo>
|
||||||
|
|
||||||
|
<!--FIXME: It is missing the rest of about.texi -->
|
||||||
|
|
||||||
|
<chapter id="libgtop-white-paper">
|
||||||
|
<title>White paper</title>
|
||||||
|
|
||||||
|
<sect1 id="libgtop-white-paper-introduction">
|
||||||
|
<title>Introduction</title>
|
||||||
|
<para>Many modern UNIX systems like Solaris, BSD or Digitial Unix
|
||||||
|
only allow priviledged processes to read information like CPU and
|
||||||
|
Memory Usage or information about running processes.</para>
|
||||||
|
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para>
|
||||||
|
BSD, for instance, doesn't have any other way to get those data than reading
|
||||||
|
directly from @file{/dev/kmem} and you need to be in the @code{kmem} group to
|
||||||
|
be able to read this.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>
|
||||||
|
Other systems, like Digital Unix, allow all users to get things like CPU and
|
||||||
|
Memory statistics, but only root may read information about any process other
|
||||||
|
than the current one (you may not even get information about your own processes
|
||||||
|
if you're not root).</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>
|
||||||
|
Linux has a very nice @file{/proc} filesystem, but reading and parsing
|
||||||
|
@file{/proc} is very slow and inefficient.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>
|
||||||
|
Solaris is a bit better, but you still need to be in the @code{sys} group or
|
||||||
|
even root to get some data.</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Because of this system utilities like @code{ps}, @code{uptime} or @code{top}
|
||||||
|
often are setgid kmem or setuid root. Usually, they're also very specific to
|
||||||
|
the system they're written for and not easily portable to other systems without
|
||||||
|
a lot of work.</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
This, of cause, becomes a problem for graphical tools like @code{gtop} - making
|
||||||
|
a GTK+ program setgid or even setuid would be a security hole as big as you can
|
||||||
|
drive the entire X11 source code through. For the GNOME project, we also needed
|
||||||
|
some kind of library which provides all the required information in a portable
|
||||||
|
since there's more than just one single program that wants to use them - for
|
||||||
|
instance @code{gtop} and the @code{multiload}, @code{cpumemusage} and
|
||||||
|
@code{netload} panel applets.</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="libgtop-white-paper-overview">
|
||||||
|
<title>Overview</title>
|
||||||
|
<para>This section should give you a short overview on how LibGTop
|
||||||
|
was developed, which things needed to be considered and how it
|
||||||
|
works.</para>
|
||||||
|
|
||||||
|
<sect2 id="libgtop-white-paper-overview-design">
|
||||||
|
<title>Interface Design: Things that need to be considered</title>
|
||||||
|
<para>
|
||||||
|
At the very beginning, it was necessary to collect all the data the library part
|
||||||
|
should provide and put them into some C structures. This was not that easiy as it
|
||||||
|
might sound since LibGTop should be portable to any modern UNIX system with a common
|
||||||
|
library part on all those systems, but the data that should be returned vary from
|
||||||
|
system to system. For instance some systems support shared memory, but some others
|
||||||
|
may not.</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The header files where we define these C structures (which are system-independent) are
|
||||||
|
shared between client and server. This way we can call the system dependent code
|
||||||
|
directly where we do not need any special privileges to do so.</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
All of those structures contain a @code{flags} member which is interpreted as a bit
|
||||||
|
mask and tells the caller of the library functions which of the fields in the returned
|
||||||
|
structure are valid and which are not.</para>
|
||||||
|
</sect2>
|
||||||
|
|
||||||
|
<sect2 id="libgtop-white-paper-overview-server">
|
||||||
|
<title>Server Implementation: The LibGTop "server"</title>
|
||||||
|
<para>
|
||||||
|
The LibGTop @dfn{server} is a setgid/setuid binary which contains all the system
|
||||||
|
dependent code which needs special privileges. It is only build if it's required
|
||||||
|
on the current system (for instance, the Linux kernel provides all the required
|
||||||
|
data via its @file{/proc} filesystem so we do not need the server at all) and it
|
||||||
|
only contains the @dfn{features} which need privileges.</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Whenever we do not need any privileges to get all the data for some of the requested
|
||||||
|
structures (here called @dfn{features}) the library calls the sysdeps code directly
|
||||||
|
rather than using the server.</para>
|
||||||
|
</sect2>
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
</chapter>
|
||||||
|
|
||||||
|
<chapter id="libgtop-lib">
|
||||||
|
<title>Libgtop Library Reference</title>
|
||||||
|
|
||||||
|
<para>This section contains the API reference for libgtop. All
|
||||||
|
the public interfaces are documented here.</para>
|
||||||
|
|
||||||
|
<xi:include href="xml/glibtop.xml"/>
|
||||||
|
<xi:include href="xml/close.xml"/>
|
||||||
|
<xi:include href="xml/command.xml"/>
|
||||||
|
<xi:include href="xml/glibtop-server.xml"/>
|
||||||
|
<xi:include href="xml/netload.xml"/>
|
||||||
|
<xi:include href="xml/ppp.xml"/>
|
||||||
|
<xi:include href="xml/shm_limits.xml"/>
|
||||||
|
<xi:include href="xml/uptime.xml"/>
|
||||||
|
<xi:include href="xml/netlist.xml"/>
|
||||||
|
<xi:include href="xml/open.xml"/>
|
||||||
|
<xi:include href="xml/parameter.xml"/>
|
||||||
|
<xi:include href="xml/procargs.xml"/>
|
||||||
|
<xi:include href="xml/procmem.xml"/>
|
||||||
|
<xi:include href="xml/procopenfiles.xml"/>
|
||||||
|
<xi:include href="xml/procsegment.xml"/>
|
||||||
|
<xi:include href="xml/procsignal.xml"/>
|
||||||
|
<xi:include href="xml/sysdeps.xml"/>
|
||||||
|
<xi:include href="xml/procstate.xml"/>
|
||||||
|
<xi:include href="xml/procuid.xml"/>
|
||||||
|
<xi:include href="xml/proctime.xml"/>
|
||||||
|
<xi:include href="xml/signal.xml"/>
|
||||||
|
<xi:include href="xml/procmap.xml"/>
|
||||||
|
<xi:include href="xml/sysinfo.xml"/>
|
||||||
|
<xi:include href="xml/union.xml"/>
|
||||||
|
<xi:include href="xml/version.xml"/>
|
||||||
|
<xi:include href="xml/proclist.xml"/>
|
||||||
|
<xi:include href="xml/sem_limits.xml"/>
|
||||||
|
<xi:include href="xml/prockernel.xml"/>
|
||||||
|
<xi:include href="xml/fsusage.xml"/>
|
||||||
|
<xi:include href="xml/loadavg.xml"/>
|
||||||
|
<xi:include href="xml/mem.xml"/>
|
||||||
|
<xi:include href="xml/mountlist.xml"/>
|
||||||
|
<xi:include href="xml/msg_limits.xml"/>
|
||||||
|
<xi:include href="xml/cpu.xml"/>
|
||||||
|
<xi:include href="xml/swap.xml"/>
|
||||||
|
</chapter>
|
||||||
|
</book>
|
||||||
0
doc/reference/libgtop-overrides.txt
Normal file
0
doc/reference/libgtop-overrides.txt
Normal file
736
doc/reference/libgtop-sections.txt
Normal file
736
doc/reference/libgtop-sections.txt
Normal file
@@ -0,0 +1,736 @@
|
|||||||
|
<INCLUDE>glibtop.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>glibtop</FILE>
|
||||||
|
<TITLE>GlibTop</TITLE>
|
||||||
|
GLIBTOP_MOUNTENTRY_LEN
|
||||||
|
LIBGTOP_CHECK_VERSION
|
||||||
|
glibtop
|
||||||
|
glibtop_global_server
|
||||||
|
glibtop_init
|
||||||
|
glibtop_init_r
|
||||||
|
glibtop_init_s
|
||||||
|
glibtop_server_features
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/close.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>close</FILE>
|
||||||
|
<TITLE>Close</TITLE>
|
||||||
|
glibtop_close
|
||||||
|
glibtop_close_r
|
||||||
|
glibtop_close_s
|
||||||
|
glibtop_close_p
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/command.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>command</FILE>
|
||||||
|
<TITLE>Command</TITLE>
|
||||||
|
GLIBTOP_CMND_QUIT
|
||||||
|
GLIBTOP_CMND_SYSDEPS
|
||||||
|
GLIBTOP_CMND_CPU
|
||||||
|
GLIBTOP_CMND_MEM
|
||||||
|
GLIBTOP_CMND_SWAP
|
||||||
|
GLIBTOP_CMND_UPTIME
|
||||||
|
GLIBTOP_CMND_LOADAVG
|
||||||
|
GLIBTOP_CMND_SHM_LIMITS
|
||||||
|
GLIBTOP_CMND_MSG_LIMITS
|
||||||
|
GLIBTOP_CMND_SEM_LIMITS
|
||||||
|
GLIBTOP_CMND_PROCLIST
|
||||||
|
GLIBTOP_CMND_PROC_STATE
|
||||||
|
GLIBTOP_CMND_PROC_UID
|
||||||
|
GLIBTOP_CMND_PROC_MEM
|
||||||
|
GLIBTOP_CMND_PROC_TIME
|
||||||
|
GLIBTOP_CMND_PROC_SIGNAL
|
||||||
|
GLIBTOP_CMND_PROC_KERNEL
|
||||||
|
GLIBTOP_CMND_PROC_SEGMENT
|
||||||
|
GLIBTOP_CMND_PROC_ARGS
|
||||||
|
GLIBTOP_CMND_PROC_MAP
|
||||||
|
GLIBTOP_CMND_MOUNTLIST
|
||||||
|
GLIBTOP_CMND_FSUSAGE
|
||||||
|
GLIBTOP_CMND_NETLOAD
|
||||||
|
GLIBTOP_CMND_PPP
|
||||||
|
GLIBTOP_CMND_NETLIST
|
||||||
|
GLIBTOP_CMND_PROC_OPEN_FILES
|
||||||
|
GLIBTOP_MAX_CMND
|
||||||
|
glibtop_command
|
||||||
|
glibtop_response
|
||||||
|
glibtop_response_union
|
||||||
|
glibtop_call
|
||||||
|
glibtop_call_l
|
||||||
|
glibtop_call_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/glibtop-server.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>glibtop-server</FILE>
|
||||||
|
<TITLE>GlibTop Server</TITLE>
|
||||||
|
glibtop_server
|
||||||
|
glibtop_server_info
|
||||||
|
glibtop_closure
|
||||||
|
glibtop_server_new
|
||||||
|
glibtop_server_ref
|
||||||
|
glibtop_server_unref
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/netload.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>netload</FILE>
|
||||||
|
<TITLE>Net Load</TITLE>
|
||||||
|
GLIBTOP_NETLOAD_IF_FLAGS
|
||||||
|
GLIBTOP_NETLOAD_MTU
|
||||||
|
GLIBTOP_NETLOAD_SUBNET
|
||||||
|
GLIBTOP_NETLOAD_ADDRESS
|
||||||
|
GLIBTOP_NETLOAD_PACKETS_IN
|
||||||
|
GLIBTOP_NETLOAD_PACKETS_OUT
|
||||||
|
GLIBTOP_NETLOAD_PACKETS_TOTAL
|
||||||
|
GLIBTOP_NETLOAD_BYTES_IN
|
||||||
|
GLIBTOP_NETLOAD_BYTES_OUT
|
||||||
|
GLIBTOP_NETLOAD_BYTES_TOTAL
|
||||||
|
GLIBTOP_NETLOAD_ERRORS_IN
|
||||||
|
GLIBTOP_NETLOAD_ERRORS_OUT
|
||||||
|
GLIBTOP_NETLOAD_ERRORS_TOTAL
|
||||||
|
GLIBTOP_NETLOAD_COLLISIONS
|
||||||
|
GLIBTOP_NETLOAD_ADDRESS6
|
||||||
|
GLIBTOP_NETLOAD_PREFIX6
|
||||||
|
GLIBTOP_NETLOAD_SCOPE6
|
||||||
|
GLIBTOP_NETLOAD_HWADDRESS
|
||||||
|
GLIBTOP_MAX_NETLOAD
|
||||||
|
glibtop_netload
|
||||||
|
glibtop_get_netload
|
||||||
|
glibtop_get_netload_r
|
||||||
|
glibtop_get_netload_l
|
||||||
|
glibtop_init_netload_p
|
||||||
|
glibtop_get_netload_p
|
||||||
|
glibtop_init_netload_s
|
||||||
|
glibtop_get_netload_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/ppp.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>ppp</FILE>
|
||||||
|
<TITLE>PPP</TITLE>
|
||||||
|
GLIBTOP_PPP_STATE
|
||||||
|
GLIBTOP_PPP_BYTES_IN
|
||||||
|
GLIBTOP_PPP_BYTES_OUT
|
||||||
|
GLIBTOP_MAX_PPP
|
||||||
|
glibtop_ppp
|
||||||
|
glibtop_get_ppp
|
||||||
|
glibtop_get_ppp_r
|
||||||
|
glibtop_get_ppp_l
|
||||||
|
glibtop_init_ppp_p
|
||||||
|
glibtop_get_ppp_p
|
||||||
|
glibtop_init_ppp_s
|
||||||
|
glibtop_get_ppp_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/shm_limits.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>shm_limits</FILE>
|
||||||
|
<TITLE>Shared Memory Limits</TITLE>
|
||||||
|
GLIBTOP_IPC_SHMMAX
|
||||||
|
GLIBTOP_IPC_SHMMIN
|
||||||
|
GLIBTOP_IPC_SHMMNI
|
||||||
|
GLIBTOP_IPC_SHMSEG
|
||||||
|
GLIBTOP_IPC_SHMALL
|
||||||
|
GLIBTOP_MAX_SHM_LIMITS
|
||||||
|
glibtop_shm_limits
|
||||||
|
glibtop_get_shm_limits
|
||||||
|
glibtop_get_shm_limits_r
|
||||||
|
glibtop_get_shm_limits_l
|
||||||
|
glibtop_init_shm_limits_p
|
||||||
|
glibtop_get_shm_limits_p
|
||||||
|
glibtop_init_shm_limits_s
|
||||||
|
glibtop_get_shm_limits_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/uptime.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>uptime</FILE>
|
||||||
|
<TITLE>Uptime</TITLE>
|
||||||
|
GLIBTOP_UPTIME_UPTIME
|
||||||
|
GLIBTOP_UPTIME_IDLETIME
|
||||||
|
GLIBTOP_UPTIME_BOOT_TIME
|
||||||
|
GLIBTOP_MAX_UPTIME
|
||||||
|
glibtop_uptime
|
||||||
|
glibtop_get_uptime
|
||||||
|
glibtop_get_uptime_r
|
||||||
|
glibtop_get_uptime_l
|
||||||
|
glibtop_init_uptime_p
|
||||||
|
glibtop_get_uptime_p
|
||||||
|
glibtop_init_uptime_s
|
||||||
|
glibtop_get_uptime_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/netlist.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>netlist</FILE>
|
||||||
|
<TITLE>Net List</TITLE>
|
||||||
|
GLIBTOP_NETLIST_NUMBER
|
||||||
|
GLIBTOP_MAX_NETLIST
|
||||||
|
glibtop_netlist
|
||||||
|
glibtop_get_netlist
|
||||||
|
glibtop_get_netlist_r
|
||||||
|
glibtop_get_netlist_l
|
||||||
|
glibtop_init_netlist_p
|
||||||
|
glibtop_get_netlist_p
|
||||||
|
glibtop_init_netlist_s
|
||||||
|
glibtop_get_netlist_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/open.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>open</FILE>
|
||||||
|
GLIBTOP_INIT_NO_OPEN
|
||||||
|
GLIBTOP_INIT_NO_INIT
|
||||||
|
GLIBTOP_FEATURES_NO_SERVER
|
||||||
|
GLIBTOP_FEATURES_EXCEPT
|
||||||
|
GLIBTOP_METHOD_DIRECT
|
||||||
|
GLIBTOP_METHOD_PIPE
|
||||||
|
GLIBTOP_METHOD_INET
|
||||||
|
GLIBTOP_METHOD_UNIX
|
||||||
|
GLIBTOP_ERROR_METHOD_IGNORE
|
||||||
|
GLIBTOP_ERROR_METHOD_WARN_ONCE
|
||||||
|
GLIBTOP_ERROR_METHOD_WARN
|
||||||
|
GLIBTOP_ERROR_METHOD_ABORT
|
||||||
|
GLIBTOP_ERROR_METHOD_DEFAULT
|
||||||
|
glibtop_open_l
|
||||||
|
glibtop_init_p
|
||||||
|
glibtop_open_p
|
||||||
|
glibtop_open_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/parameter.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>parameter</FILE>
|
||||||
|
GLIBTOP_PARAM_METHOD
|
||||||
|
GLIBTOP_PARAM_FEATURES
|
||||||
|
GLIBTOP_PARAM_COMMAND
|
||||||
|
GLIBTOP_PARAM_HOST
|
||||||
|
GLIBTOP_PARAM_PORT
|
||||||
|
GLIBTOP_PARAM_ERROR_METHOD
|
||||||
|
GLIBTOP_PARAM_REQUIRED
|
||||||
|
glibtop_get_parameter
|
||||||
|
glibtop_set_parameter
|
||||||
|
glibtop_get_parameter_l
|
||||||
|
glibtop_set_parameter_l
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/procargs.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>procargs</FILE>
|
||||||
|
GLIBTOP_PROC_ARGS_SIZE
|
||||||
|
GLIBTOP_MAX_PROC_ARGS
|
||||||
|
glibtop_proc_args
|
||||||
|
glibtop_get_proc_args_l
|
||||||
|
glibtop_get_proc_args
|
||||||
|
glibtop_get_proc_args_r
|
||||||
|
glibtop_init_proc_args_p
|
||||||
|
glibtop_get_proc_args_p
|
||||||
|
glibtop_init_proc_args_s
|
||||||
|
glibtop_get_proc_args_s
|
||||||
|
glibtop_get_proc_argv_l
|
||||||
|
glibtop_get_proc_argv
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/procmem.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>procmem</FILE>
|
||||||
|
GLIBTOP_PROC_MEM_SIZE
|
||||||
|
GLIBTOP_PROC_MEM_VSIZE
|
||||||
|
GLIBTOP_PROC_MEM_RESIDENT
|
||||||
|
GLIBTOP_PROC_MEM_SHARE
|
||||||
|
GLIBTOP_PROC_MEM_RSS
|
||||||
|
GLIBTOP_PROC_MEM_RSS_RLIM
|
||||||
|
GLIBTOP_MAX_PROC_MEM
|
||||||
|
glibtop_proc_mem
|
||||||
|
glibtop_get_proc_mem
|
||||||
|
glibtop_get_proc_mem_r
|
||||||
|
glibtop_get_proc_mem_l
|
||||||
|
glibtop_init_proc_mem_p
|
||||||
|
glibtop_get_proc_mem_p
|
||||||
|
glibtop_init_proc_mem_s
|
||||||
|
glibtop_get_proc_mem_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/procopenfiles.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>procopenfiles</FILE>
|
||||||
|
GLIBTOP_PROC_OPEN_FILES_NUMBER
|
||||||
|
GLIBTOP_PROC_OPEN_FILES_TOTAL
|
||||||
|
GLIBTOP_PROC_OPEN_FILES_SIZE
|
||||||
|
GLIBTOP_MAX_PROC_OPEN_FILES
|
||||||
|
GLIBTOP_FILE_ENTRY_FD
|
||||||
|
GLIBTOP_FILE_ENTRY_NAME
|
||||||
|
GLIBTOP_FILE_ENTRY_TYPE
|
||||||
|
GLIBTOP_FILE_ENTRY_INETSOCKET_DST_HOST
|
||||||
|
GLIBTOP_FILE_ENTRY_INETSOCKET_DST_PORT
|
||||||
|
GLIBTOP_MAX_OPEN_FILE_ENTRY
|
||||||
|
GLIBTOP_OPEN_FILENAME_LEN
|
||||||
|
GLIBTOP_OPEN_DEST_HOST_LEN
|
||||||
|
glibtop_open_files_entry
|
||||||
|
glibtop_proc_open_files
|
||||||
|
glibtop_get_proc_open_files
|
||||||
|
glibtop_get_proc_open_files_r
|
||||||
|
glibtop_get_proc_open_files_l
|
||||||
|
glibtop_init_proc_open_files_p
|
||||||
|
glibtop_get_proc_open_files_p
|
||||||
|
glibtop_init_proc_open_files_s
|
||||||
|
glibtop_get_proc_open_files_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/procsegment.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>procsegment</FILE>
|
||||||
|
GLIBTOP_PROC_SEGMENT_TEXT_RSS
|
||||||
|
GLIBTOP_PROC_SEGMENT_SHLIB_RSS
|
||||||
|
GLIBTOP_PROC_SEGMENT_DATA_RSS
|
||||||
|
GLIBTOP_PROC_SEGMENT_STACK_RSS
|
||||||
|
GLIBTOP_PROC_SEGMENT_DIRTY_SIZE
|
||||||
|
GLIBTOP_PROC_SEGMENT_START_CODE
|
||||||
|
GLIBTOP_PROC_SEGMENT_END_CODE
|
||||||
|
GLIBTOP_PROC_SEGMENT_START_STACK
|
||||||
|
GLIBTOP_MAX_PROC_SEGMENT
|
||||||
|
glibtop_proc_segment
|
||||||
|
glibtop_get_proc_segment
|
||||||
|
glibtop_get_proc_segment_r
|
||||||
|
glibtop_get_proc_segment_l
|
||||||
|
glibtop_init_proc_segment_p
|
||||||
|
glibtop_get_proc_segment_p
|
||||||
|
glibtop_init_proc_segment_s
|
||||||
|
glibtop_get_proc_segment_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/procsignal.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>procsignal</FILE>
|
||||||
|
GLIBTOP_PROC_SIGNAL_SIGNAL
|
||||||
|
GLIBTOP_PROC_SIGNAL_BLOCKED
|
||||||
|
GLIBTOP_PROC_SIGNAL_SIGIGNORE
|
||||||
|
GLIBTOP_PROC_SIGNAL_SIGCATCH
|
||||||
|
GLIBTOP_MAX_PROC_SIGNAL
|
||||||
|
glibtop_proc_signal
|
||||||
|
glibtop_get_proc_signal
|
||||||
|
glibtop_get_proc_signal_r
|
||||||
|
glibtop_get_proc_signal_l
|
||||||
|
glibtop_init_proc_signal_p
|
||||||
|
glibtop_get_proc_signal_p
|
||||||
|
glibtop_init_proc_signal_s
|
||||||
|
glibtop_get_proc_signal_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/sysdeps.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>sysdeps</FILE>
|
||||||
|
GLIBTOP_SYSDEPS_FEATURES
|
||||||
|
GLIBTOP_SYSDEPS_CPU
|
||||||
|
GLIBTOP_SYSDEPS_MEM
|
||||||
|
GLIBTOP_SYSDEPS_SWAP
|
||||||
|
GLIBTOP_SYSDEPS_UPTIME
|
||||||
|
GLIBTOP_SYSDEPS_LOADAVG
|
||||||
|
GLIBTOP_SYSDEPS_SHM_LIMITS
|
||||||
|
GLIBTOP_SYSDEPS_MSG_LIMITS
|
||||||
|
GLIBTOP_SYSDEPS_SEM_LIMITS
|
||||||
|
GLIBTOP_SYSDEPS_PROCLIST
|
||||||
|
GLIBTOP_SYSDEPS_PROC_STATE
|
||||||
|
GLIBTOP_SYSDEPS_PROC_UID
|
||||||
|
GLIBTOP_SYSDEPS_PROC_MEM
|
||||||
|
GLIBTOP_SYSDEPS_PROC_TIME
|
||||||
|
GLIBTOP_SYSDEPS_PROC_SIGNAL
|
||||||
|
GLIBTOP_SYSDEPS_PROC_KERNEL
|
||||||
|
GLIBTOP_SYSDEPS_PROC_SEGMENT
|
||||||
|
GLIBTOP_SYSDEPS_PROC_ARGS
|
||||||
|
GLIBTOP_SYSDEPS_PROC_MAP
|
||||||
|
GLIBTOP_SYSDEPS_MOUNTLIST
|
||||||
|
GLIBTOP_SYSDEPS_FSUSAGE
|
||||||
|
GLIBTOP_SYSDEPS_NETLOAD
|
||||||
|
GLIBTOP_SYSDEPS_PPP
|
||||||
|
GLIBTOP_SYSDEPS_NETLIST
|
||||||
|
GLIBTOP_SYSDEPS_PROC_OPEN_FILES
|
||||||
|
GLIBTOP_MAX_SYSDEPS
|
||||||
|
GLIBTOP_SYSDEPS_ALL
|
||||||
|
glibtop_sysdeps
|
||||||
|
glibtop_get_sysdeps
|
||||||
|
glibtop_get_sysdeps_r
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/procstate.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>procstate</FILE>
|
||||||
|
GLIBTOP_PROC_STATE_CMD
|
||||||
|
GLIBTOP_PROC_STATE_STATE
|
||||||
|
GLIBTOP_PROC_STATE_UID
|
||||||
|
GLIBTOP_PROC_STATE_GID
|
||||||
|
GLIBTOP_PROC_STATE_RUID
|
||||||
|
GLIBTOP_PROC_STATE_RGID
|
||||||
|
GLIBTOP_PROC_STATE_HAS_CPU
|
||||||
|
GLIBTOP_PROC_STATE_PROCESSOR
|
||||||
|
GLIBTOP_PROC_STATE_LAST_PROCESSOR
|
||||||
|
GLIBTOP_MAX_PROC_STATE
|
||||||
|
GLIBTOP_PROCESS_RUNNING
|
||||||
|
GLIBTOP_PROCESS_INTERRUPTIBLE
|
||||||
|
GLIBTOP_PROCESS_UNINTERRUPTIBLE
|
||||||
|
GLIBTOP_PROCESS_ZOMBIE
|
||||||
|
GLIBTOP_PROCESS_STOPPED
|
||||||
|
GLIBTOP_PROCESS_SWAPPING
|
||||||
|
GLIBTOP_PROCESS_DEAD
|
||||||
|
glibtop_proc_state
|
||||||
|
glibtop_get_proc_state
|
||||||
|
glibtop_get_proc_state_r
|
||||||
|
glibtop_get_proc_state_l
|
||||||
|
glibtop_init_proc_state_p
|
||||||
|
glibtop_get_proc_state_p
|
||||||
|
glibtop_init_proc_state_s
|
||||||
|
glibtop_get_proc_state_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/procuid.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>procuid</FILE>
|
||||||
|
GLIBTOP_PROC_UID_UID
|
||||||
|
GLIBTOP_PROC_UID_EUID
|
||||||
|
GLIBTOP_PROC_UID_GID
|
||||||
|
GLIBTOP_PROC_UID_EGID
|
||||||
|
GLIBTOP_PROC_UID_SUID
|
||||||
|
GLIBTOP_PROC_UID_SGID
|
||||||
|
GLIBTOP_PROC_UID_FSUID
|
||||||
|
GLIBTOP_PROC_UID_FSGID
|
||||||
|
GLIBTOP_PROC_UID_PID
|
||||||
|
GLIBTOP_PROC_UID_PPID
|
||||||
|
GLIBTOP_PROC_UID_PGRP
|
||||||
|
GLIBTOP_PROC_UID_SESSION
|
||||||
|
GLIBTOP_PROC_UID_TTY
|
||||||
|
GLIBTOP_PROC_UID_TPGID
|
||||||
|
GLIBTOP_PROC_UID_PRIORITY
|
||||||
|
GLIBTOP_PROC_UID_NICE
|
||||||
|
GLIBTOP_PROC_UID_NGROUPS
|
||||||
|
GLIBTOP_PROC_UID_GROUPS
|
||||||
|
GLIBTOP_MAX_PROC_UID
|
||||||
|
glibtop_proc_uid
|
||||||
|
GLIBTOP_MAX_GROUPS
|
||||||
|
glibtop_get_proc_uid
|
||||||
|
glibtop_get_proc_uid_r
|
||||||
|
glibtop_get_proc_uid_l
|
||||||
|
glibtop_init_proc_uid_p
|
||||||
|
glibtop_get_proc_uid_p
|
||||||
|
glibtop_init_proc_uid_s
|
||||||
|
glibtop_get_proc_uid_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/proctime.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>proctime</FILE>
|
||||||
|
GLIBTOP_PROC_TIME_START_TIME
|
||||||
|
GLIBTOP_PROC_TIME_RTIME
|
||||||
|
GLIBTOP_PROC_TIME_UTIME
|
||||||
|
GLIBTOP_PROC_TIME_STIME
|
||||||
|
GLIBTOP_PROC_TIME_CUTIME
|
||||||
|
GLIBTOP_PROC_TIME_CSTIME
|
||||||
|
GLIBTOP_PROC_TIME_TIMEOUT
|
||||||
|
GLIBTOP_PROC_TIME_IT_REAL_VALUE
|
||||||
|
GLIBTOP_PROC_TIME_FREQUENCY
|
||||||
|
GLIBTOP_PROC_TIME_XCPU_UTIME
|
||||||
|
GLIBTOP_PROC_TIME_XCPU_STIME
|
||||||
|
GLIBTOP_MAX_PROC_TIME
|
||||||
|
glibtop_proc_time
|
||||||
|
glibtop_get_proc_time
|
||||||
|
glibtop_get_proc_time_r
|
||||||
|
glibtop_get_proc_time_l
|
||||||
|
glibtop_init_proc_time_p
|
||||||
|
glibtop_get_proc_time_p
|
||||||
|
glibtop_init_proc_time_s
|
||||||
|
glibtop_get_proc_time_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/signal.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>signal</FILE>
|
||||||
|
glibtop_signame
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/procmap.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>procmap</FILE>
|
||||||
|
GLIBTOP_PROC_MAP_NUMBER
|
||||||
|
GLIBTOP_PROC_MAP_TOTAL
|
||||||
|
GLIBTOP_PROC_MAP_SIZE
|
||||||
|
GLIBTOP_MAX_PROC_MAP
|
||||||
|
GLIBTOP_MAP_ENTRY_START
|
||||||
|
GLIBTOP_MAP_ENTRY_END
|
||||||
|
GLIBTOP_MAP_ENTRY_OFFSET
|
||||||
|
GLIBTOP_MAP_ENTRY_PERM
|
||||||
|
GLIBTOP_MAP_ENTRY_INODE
|
||||||
|
GLIBTOP_MAP_ENTRY_DEVICE
|
||||||
|
GLIBTOP_MAP_ENTRY_FILENAME
|
||||||
|
GLIBTOP_MAP_ENTRY_SIZE
|
||||||
|
GLIBTOP_MAP_ENTRY_RSS
|
||||||
|
GLIBTOP_MAP_ENTRY_SHARED_CLEAN
|
||||||
|
GLIBTOP_MAP_ENTRY_SHARED_DIRTY
|
||||||
|
GLIBTOP_MAP_ENTRY_PRIVATE_CLEAN
|
||||||
|
GLIBTOP_MAP_ENTRY_PRIVATE_DIRTY
|
||||||
|
GLIBTOP_MAX_MAP_ENTRY
|
||||||
|
GLIBTOP_MAP_FILENAME_LEN
|
||||||
|
GLIBTOP_MAP_PERM_READ
|
||||||
|
GLIBTOP_MAP_PERM_WRITE
|
||||||
|
GLIBTOP_MAP_PERM_EXECUTE
|
||||||
|
GLIBTOP_MAP_PERM_SHARED
|
||||||
|
GLIBTOP_MAP_PERM_PRIVATE
|
||||||
|
glibtop_map_entry
|
||||||
|
glibtop_proc_map
|
||||||
|
glibtop_get_proc_map
|
||||||
|
glibtop_get_proc_map_r
|
||||||
|
glibtop_get_proc_map_l
|
||||||
|
glibtop_init_proc_map_p
|
||||||
|
glibtop_get_proc_map_p
|
||||||
|
glibtop_init_proc_map_s
|
||||||
|
glibtop_get_proc_map_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/sysinfo.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>sysinfo</FILE>
|
||||||
|
GLIBTOP_SYSINFO_NCPU
|
||||||
|
GLIBTOP_SYSINFO_CPUINFO
|
||||||
|
GLIBTOP_MAX_SYSINFO
|
||||||
|
glibtop_sysinfo
|
||||||
|
glibtop_entry
|
||||||
|
glibtop_get_sysinfo_r
|
||||||
|
glibtop_get_sysinfo_s
|
||||||
|
glibtop_get_sysinfo
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/union.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>union</FILE>
|
||||||
|
glibtop_union
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/version.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>version</FILE>
|
||||||
|
LIBGTOP_VERSION_STRING
|
||||||
|
glibtop_send_version
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/proclist.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>proclist</FILE>
|
||||||
|
GLIBTOP_PROCLIST_NUMBER
|
||||||
|
GLIBTOP_PROCLIST_TOTAL
|
||||||
|
GLIBTOP_PROCLIST_SIZE
|
||||||
|
GLIBTOP_MAX_PROCLIST
|
||||||
|
GLIBTOP_KERN_PROC_ALL
|
||||||
|
GLIBTOP_KERN_PROC_PID
|
||||||
|
GLIBTOP_KERN_PROC_PGRP
|
||||||
|
GLIBTOP_KERN_PROC_SESSION
|
||||||
|
GLIBTOP_KERN_PROC_TTY
|
||||||
|
GLIBTOP_KERN_PROC_UID
|
||||||
|
GLIBTOP_KERN_PROC_RUID
|
||||||
|
GLIBTOP_KERN_PROC_MASK
|
||||||
|
GLIBTOP_EXCLUDE_IDLE
|
||||||
|
GLIBTOP_EXCLUDE_SYSTEM
|
||||||
|
GLIBTOP_EXCLUDE_NOTTY
|
||||||
|
glibtop_proclist
|
||||||
|
glibtop_get_proclist
|
||||||
|
glibtop_get_proclist_r
|
||||||
|
glibtop_get_proclist_l
|
||||||
|
glibtop_init_proclist_p
|
||||||
|
glibtop_get_proclist_p
|
||||||
|
glibtop_init_proclist_s
|
||||||
|
glibtop_get_proclist_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/sem_limits.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>sem_limits</FILE>
|
||||||
|
GLIBTOP_IPC_SEMMAP
|
||||||
|
GLIBTOP_IPC_SEMMNI
|
||||||
|
GLIBTOP_IPC_SEMMNS
|
||||||
|
GLIBTOP_IPC_SEMMNU
|
||||||
|
GLIBTOP_IPC_SEMMSL
|
||||||
|
GLIBTOP_IPC_SEMOPM
|
||||||
|
GLIBTOP_IPC_SEMUME
|
||||||
|
GLIBTOP_IPC_SEMUSZ
|
||||||
|
GLIBTOP_IPC_SEMVMX
|
||||||
|
GLIBTOP_IPC_SEMAEM
|
||||||
|
GLIBTOP_MAX_SEM_LIMITS
|
||||||
|
glibtop_sem_limits
|
||||||
|
glibtop_get_sem_limits
|
||||||
|
glibtop_get_sem_limits_r
|
||||||
|
glibtop_get_sem_limits_l
|
||||||
|
glibtop_init_sem_limits_p
|
||||||
|
glibtop_get_sem_limits_p
|
||||||
|
glibtop_init_sem_limits_s
|
||||||
|
glibtop_get_sem_limits_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/prockernel.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>prockernel</FILE>
|
||||||
|
GLIBTOP_PROC_KERNEL_K_FLAGS
|
||||||
|
GLIBTOP_PROC_KERNEL_MIN_FLT
|
||||||
|
GLIBTOP_PROC_KERNEL_MAJ_FLT
|
||||||
|
GLIBTOP_PROC_KERNEL_CMIN_FLT
|
||||||
|
GLIBTOP_PROC_KERNEL_CMAJ_FLT
|
||||||
|
GLIBTOP_PROC_KERNEL_KSTK_ESP
|
||||||
|
GLIBTOP_PROC_KERNEL_KSTK_EIP
|
||||||
|
GLIBTOP_PROC_KERNEL_NWCHAN
|
||||||
|
GLIBTOP_PROC_KERNEL_WCHAN
|
||||||
|
GLIBTOP_MAX_PROC_KERNEL
|
||||||
|
glibtop_proc_kernel
|
||||||
|
glibtop_get_proc_kernel
|
||||||
|
glibtop_get_proc_kernel_r
|
||||||
|
glibtop_get_proc_kernel_l
|
||||||
|
glibtop_init_proc_kernel_p
|
||||||
|
glibtop_get_proc_kernel_p
|
||||||
|
glibtop_init_proc_kernel_s
|
||||||
|
glibtop_get_proc_kernel_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/fsusage.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>fsusage</FILE>
|
||||||
|
GLIBTOP_FSUSAGE_BLOCKS
|
||||||
|
GLIBTOP_FSUSAGE_BFREE
|
||||||
|
GLIBTOP_FSUSAGE_BAVAIL
|
||||||
|
GLIBTOP_FSUSAGE_FILES
|
||||||
|
GLIBTOP_FSUSAGE_FFREE
|
||||||
|
GLIBTOP_FSUSAGE_BLOCK_SIZE
|
||||||
|
GLIBTOP_FSUSAGE_READ
|
||||||
|
GLIBTOP_FSUSAGE_WRITE
|
||||||
|
GLIBTOP_MAX_FSUSAGE
|
||||||
|
glibtop_fsusage
|
||||||
|
glibtop_get_fsusage
|
||||||
|
glibtop_get_fsusage_r
|
||||||
|
glibtop_get_fsusage_l
|
||||||
|
glibtop_get_fsusage_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/loadavg.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>loadavg</FILE>
|
||||||
|
GLIBTOP_LOADAVG_LOADAVG
|
||||||
|
GLIBTOP_LOADAVG_NR_RUNNING
|
||||||
|
GLIBTOP_LOADAVG_NR_TASKS
|
||||||
|
GLIBTOP_LOADAVG_LAST_PID
|
||||||
|
GLIBTOP_MAX_LOADAVG
|
||||||
|
glibtop_loadavg
|
||||||
|
glibtop_get_loadavg
|
||||||
|
glibtop_get_loadavg_r
|
||||||
|
glibtop_get_loadavg_l
|
||||||
|
glibtop_init_loadavg_p
|
||||||
|
glibtop_get_loadavg_p
|
||||||
|
glibtop_init_loadavg_s
|
||||||
|
glibtop_get_loadavg_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/mem.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>mem</FILE>
|
||||||
|
GLIBTOP_MEM_TOTAL
|
||||||
|
GLIBTOP_MEM_USED
|
||||||
|
GLIBTOP_MEM_FREE
|
||||||
|
GLIBTOP_MEM_SHARED
|
||||||
|
GLIBTOP_MEM_BUFFER
|
||||||
|
GLIBTOP_MEM_CACHED
|
||||||
|
GLIBTOP_MEM_USER
|
||||||
|
GLIBTOP_MEM_LOCKED
|
||||||
|
GLIBTOP_MAX_MEM
|
||||||
|
glibtop_mem
|
||||||
|
glibtop_get_mem
|
||||||
|
glibtop_get_mem_r
|
||||||
|
glibtop_get_mem_l
|
||||||
|
glibtop_init_mem_p
|
||||||
|
glibtop_get_mem_p
|
||||||
|
glibtop_init_mem_s
|
||||||
|
glibtop_get_mem_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/mountlist.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>mountlist</FILE>
|
||||||
|
GLIBTOP_MOUNTLIST_NUMBER
|
||||||
|
GLIBTOP_MOUNTLIST_TOTAL
|
||||||
|
GLIBTOP_MOUNTLIST_SIZE
|
||||||
|
GLIBTOP_MAX_MOUNTLIST
|
||||||
|
glibtop_mountentry
|
||||||
|
glibtop_mountlist
|
||||||
|
glibtop_get_mountlist
|
||||||
|
glibtop_get_mountlist_r
|
||||||
|
glibtop_get_mountlist_l
|
||||||
|
glibtop_get_mountlist_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/msg_limits.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>msg_limits</FILE>
|
||||||
|
GLIBTOP_IPC_MSGPOOL
|
||||||
|
GLIBTOP_IPC_MSGMAP
|
||||||
|
GLIBTOP_IPC_MSGMAX
|
||||||
|
GLIBTOP_IPC_MSGMNB
|
||||||
|
GLIBTOP_IPC_MSGMNI
|
||||||
|
GLIBTOP_IPC_MSGSSZ
|
||||||
|
GLIBTOP_IPC_MSGTQL
|
||||||
|
GLIBTOP_MAX_MSG_LIMITS
|
||||||
|
glibtop_msg_limits
|
||||||
|
glibtop_get_msg_limits
|
||||||
|
glibtop_get_msg_limits_r
|
||||||
|
glibtop_get_msg_limits_l
|
||||||
|
glibtop_init_msg_limits_p
|
||||||
|
glibtop_get_msg_limits_p
|
||||||
|
glibtop_init_msg_limits_s
|
||||||
|
glibtop_get_msg_limits_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/cpu.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>cpu</FILE>
|
||||||
|
GLIBTOP_CPU_TOTAL
|
||||||
|
GLIBTOP_CPU_USER
|
||||||
|
GLIBTOP_CPU_NICE
|
||||||
|
GLIBTOP_CPU_SYS
|
||||||
|
GLIBTOP_CPU_IDLE
|
||||||
|
GLIBTOP_CPU_FREQUENCY
|
||||||
|
GLIBTOP_XCPU_TOTAL
|
||||||
|
GLIBTOP_XCPU_USER
|
||||||
|
GLIBTOP_XCPU_NICE
|
||||||
|
GLIBTOP_XCPU_SYS
|
||||||
|
GLIBTOP_XCPU_IDLE
|
||||||
|
GLIBTOP_XCPU_FLAGS
|
||||||
|
GLIBTOP_CPU_IOWAIT
|
||||||
|
GLIBTOP_CPU_IRQ
|
||||||
|
GLIBTOP_CPU_SOFTIRQ
|
||||||
|
GLIBTOP_XCPU_IOWAIT
|
||||||
|
GLIBTOP_XCPU_IRQ
|
||||||
|
GLIBTOP_XCPU_SOFTIRQ
|
||||||
|
GLIBTOP_MAX_CPU
|
||||||
|
GLIBTOP_NCPU
|
||||||
|
glibtop_cpu
|
||||||
|
glibtop_get_cpu
|
||||||
|
glibtop_get_cpu_r
|
||||||
|
glibtop_get_cpu_l
|
||||||
|
glibtop_init_cpu_p
|
||||||
|
glibtop_get_cpu_p
|
||||||
|
glibtop_init_cpu_s
|
||||||
|
glibtop_get_cpu_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
|
<INCLUDE>glibtop/swap.h</INCLUDE>
|
||||||
|
<SECTION>
|
||||||
|
<FILE>swap</FILE>
|
||||||
|
GLIBTOP_SWAP_TOTAL
|
||||||
|
GLIBTOP_SWAP_USED
|
||||||
|
GLIBTOP_SWAP_FREE
|
||||||
|
GLIBTOP_SWAP_PAGEIN
|
||||||
|
GLIBTOP_SWAP_PAGEOUT
|
||||||
|
GLIBTOP_MAX_SWAP
|
||||||
|
glibtop_swap
|
||||||
|
glibtop_get_swap
|
||||||
|
glibtop_get_swap_r
|
||||||
|
glibtop_get_swap_l
|
||||||
|
glibtop_init_swap_p
|
||||||
|
glibtop_get_swap_p
|
||||||
|
glibtop_init_swap_s
|
||||||
|
glibtop_get_swap_s
|
||||||
|
</SECTION>
|
||||||
|
|
||||||
4
doc/reference/version.xml.in
Normal file
4
doc/reference/version.xml.in
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
|
||||||
|
<phrase>@PACKAGE_VERSION@</phrase>
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
.deps
|
|
||||||
.libs
|
|
||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
first
|
|
||||||
first_linux
|
|
||||||
first_static
|
|
||||||
second
|
|
||||||
third
|
|
||||||
third_linux
|
|
||||||
third_static
|
|
||||||
second_static
|
|
||||||
second_linux
|
|
||||||
smp_static sysdeps_static netload_static procmap_static mountlist_static
|
|
||||||
smp sysdeps netload procmap mountlist
|
|
||||||
timings timings_static
|
|
||||||
pprint
|
|
||||||
pprint_static
|
|
||||||
procargs
|
|
||||||
procargs_static
|
|
||||||
proclist
|
|
||||||
df
|
|
||||||
df_static
|
|
||||||
netlist
|
|
||||||
netlist_static
|
|
||||||
openfiles
|
|
||||||
openfiles_static
|
|
||||||
@@ -1,3 +1,11 @@
|
|||||||
|
2007-05-19 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* Makefile.am:
|
||||||
|
* mem.c: (main):
|
||||||
|
* wd.c: (main):
|
||||||
|
|
||||||
|
Fixed wd and new simple mem example.
|
||||||
|
|
||||||
2006-02-27 Benoît Dejean <benoit@placenet.org>
|
2006-02-27 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
* pprint.c: (pprint_get_proc_mem), (main):
|
* pprint.c: (pprint_get_proc_mem), (main):
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ DEFS = @DEFS@
|
|||||||
|
|
||||||
noinst_PROGRAMS = first second pprint procargs df netlist \
|
noinst_PROGRAMS = first second pprint procargs df netlist \
|
||||||
mountlist procmap netload sysdeps timings \
|
mountlist procmap netload sysdeps timings \
|
||||||
openfiles smp proclist
|
openfiles smp proclist mem wd
|
||||||
|
|
||||||
first_SOURCES = first.c
|
first_SOURCES = first.c
|
||||||
first_LDADD = $(top_builddir)/lib/libgtop-2.0.la
|
first_LDADD = $(top_builddir)/lib/libgtop-2.0.la
|
||||||
@@ -51,3 +51,10 @@ openfiles_LDADD = $(top_builddir)/lib/libgtop-2.0.la
|
|||||||
|
|
||||||
proclist_SOURCES = proclist.c
|
proclist_SOURCES = proclist.c
|
||||||
proclist_LDADD = $(top_builddir)/lib/libgtop-2.0.la
|
proclist_LDADD = $(top_builddir)/lib/libgtop-2.0.la
|
||||||
|
|
||||||
|
wd_SOURCES = wd.c
|
||||||
|
wd_LDADD = $(top_builddir)/lib/libgtop-2.0.la
|
||||||
|
|
||||||
|
mem_SOURCE = mem.c
|
||||||
|
mem_LDADD = $(top_builddir)/lib/libgtop-2.0.la
|
||||||
|
|
||||||
|
|||||||
0
examples/affinity.c
Normal file
0
examples/affinity.c
Normal file
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
21
examples/mem.c
Normal file
21
examples/mem.c
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#include <glibtop.h>
|
||||||
|
#include <glibtop/mem.h>
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
glibtop_mem buf;
|
||||||
|
|
||||||
|
glibtop_init();
|
||||||
|
|
||||||
|
g_print("%lx\n", glibtop_global_server->features);
|
||||||
|
|
||||||
|
glibtop_get_mem(&buf);
|
||||||
|
|
||||||
|
glibtop_close();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -37,9 +35,6 @@
|
|||||||
|
|
||||||
#include <glibtop/procmap.h>
|
#include <glibtop/procmap.h>
|
||||||
|
|
||||||
#ifdef GLIBTOP_INODEDB
|
|
||||||
#include <glibtop/inodedb.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
@@ -51,9 +46,6 @@
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv [])
|
main (int argc, char *argv [])
|
||||||
{
|
{
|
||||||
#ifdef GLIBTOP_INODEDB
|
|
||||||
glibtop_inodedb *inodedb;
|
|
||||||
#endif
|
|
||||||
glibtop_proc_map procmap;
|
glibtop_proc_map procmap;
|
||||||
glibtop_map_entry *maps;
|
glibtop_map_entry *maps;
|
||||||
unsigned method, count, port, i;
|
unsigned method, count, port, i;
|
||||||
@@ -89,10 +81,6 @@ main (int argc, char *argv [])
|
|||||||
if ((argc != 2) || (sscanf (argv [1], "%d", (int *) &pid) != 1))
|
if ((argc != 2) || (sscanf (argv [1], "%d", (int *) &pid) != 1))
|
||||||
g_error ("Usage: %s pid", argv [0]);
|
g_error ("Usage: %s pid", argv [0]);
|
||||||
|
|
||||||
#ifdef GLIBTOP_INODEDB
|
|
||||||
inodedb = glibtop_inodedb_open (0, 0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fprintf (stderr, "Getting memory maps for pid %d.\n\n", (int) pid);
|
fprintf (stderr, "Getting memory maps for pid %d.\n\n", (int) pid);
|
||||||
|
|
||||||
maps = glibtop_get_proc_map (&procmap, pid);
|
maps = glibtop_get_proc_map (&procmap, pid);
|
||||||
@@ -105,12 +93,6 @@ main (int argc, char *argv [])
|
|||||||
if (maps [i].flags & (1L << GLIBTOP_MAP_ENTRY_FILENAME))
|
if (maps [i].flags & (1L << GLIBTOP_MAP_ENTRY_FILENAME))
|
||||||
filename = maps [i].filename;
|
filename = maps [i].filename;
|
||||||
|
|
||||||
#ifdef GLIBTOP_INODEDB
|
|
||||||
if (inodedb && !filename)
|
|
||||||
filename = glibtop_inodedb_lookup
|
|
||||||
(inodedb, maps [i].device, maps [i].inode);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
perm [0] = (maps [i].perm & GLIBTOP_MAP_PERM_READ) ? 'r' : '-';
|
perm [0] = (maps [i].perm & GLIBTOP_MAP_PERM_READ) ? 'r' : '-';
|
||||||
perm [1] = (maps [i].perm & GLIBTOP_MAP_PERM_WRITE) ? 'w' : '-';
|
perm [1] = (maps [i].perm & GLIBTOP_MAP_PERM_WRITE) ? 'w' : '-';
|
||||||
perm [2] = (maps [i].perm & GLIBTOP_MAP_PERM_EXECUTE) ? 'x' : '-';
|
perm [2] = (maps [i].perm & GLIBTOP_MAP_PERM_EXECUTE) ? 'x' : '-';
|
||||||
@@ -158,9 +140,9 @@ main (int argc, char *argv [])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
g_print("smaps flags:%#llx size:%llu rss:%llu "
|
g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB "
|
||||||
"shared_clean:%llu shared_dirty:%llu "
|
"shared_clean:%lluKib shared_dirty:%lluKiB "
|
||||||
"private_clean:%llu private_dirty: %llu\n",
|
"private_clean:%lluKiB private_dirty: %lluKiB\n",
|
||||||
maps[i].flags,
|
maps[i].flags,
|
||||||
maps[i].size >> 10,
|
maps[i].size >> 10,
|
||||||
maps[i].rss >> 10,
|
maps[i].rss >> 10,
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
35
examples/wd.c
Normal file
35
examples/wd.c
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#include <glibtop.h>
|
||||||
|
#include <glibtop/procwd.h>
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
pid_t pid;
|
||||||
|
glibtop_proc_wd buf;
|
||||||
|
char **dirs, **dir;
|
||||||
|
|
||||||
|
if (argc < 2 || !(pid = strtoul(argv[1], NULL, 0)))
|
||||||
|
pid = getpid();
|
||||||
|
|
||||||
|
glibtop_init();
|
||||||
|
|
||||||
|
dirs = glibtop_get_proc_wd(&buf, pid);
|
||||||
|
|
||||||
|
g_print("Process %u:\n"
|
||||||
|
" - root: '%s'\n"
|
||||||
|
" - exe: '%s'\n"
|
||||||
|
" - working directories:\n",
|
||||||
|
(unsigned)pid, buf.root, buf.exe);
|
||||||
|
|
||||||
|
for (dir = dirs; *dir; ++dir)
|
||||||
|
g_print(" - '%s'\n", *dir);
|
||||||
|
|
||||||
|
g_strfreev(dirs);
|
||||||
|
|
||||||
|
glibtop_close();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@ void|loadavg|double(loadavg[3]):ulong(nr_running,nr_tasks,last_pid)
|
|||||||
void|shm_limits|ulong(shmmax,shmmin,shmmni,shmseg,shmall)
|
void|shm_limits|ulong(shmmax,shmmin,shmmni,shmseg,shmall)
|
||||||
void|msg_limits|ulong(msgpool,msgmap,msgmax,msgmnb,msgmni,msgssz,msgtql)
|
void|msg_limits|ulong(msgpool,msgmap,msgmax,msgmnb,msgmni,msgssz,msgtql)
|
||||||
void|sem_limits|ulong(semmap,semmni,semmns,semmnu,semmsl,semopm,semume,semusz,semvmx,semaem)
|
void|sem_limits|ulong(semmap,semmni,semmns,semmnu,semmsl,semopm,semume,semusz,semvmx,semaem)
|
||||||
unsigned *|proclist|ulong(number,size,total)|long(which,arg)
|
pid_t*|proclist|ulong(number,size,total)|long(which,arg)
|
||||||
void|proc_state|str(cmd):char(state):ulong(uid,gid)|pid_t(pid)
|
void|proc_state|str(cmd):char(state):ulong(uid,gid)|pid_t(pid)
|
||||||
void|proc_uid|long(uid,euid,gid,egid,pid,ppid,pgrp,session,tty,tpgid,priority,nice)|pid_t(pid)
|
void|proc_uid|long(uid,euid,gid,egid,pid,ppid,pgrp,session,tty,tpgid,priority,nice)|pid_t(pid)
|
||||||
void|proc_mem|long(size,vsize,resident,share,rss,rss_rlim)|pid_t(pid)
|
void|proc_mem|long(size,vsize,resident,share,rss,rss_rlim)|pid_t(pid)
|
||||||
@@ -22,4 +22,5 @@ void|@fsusage|ulong(blocks,bfree,bavail,files,ffree)|string|mount_dir
|
|||||||
void|netload|ulong(if_flags,mtu,subnet,address,packets_in,packets_out,packets_total,bytes_in,bytes_out,bytes_total,errors_in,errors_out,errors_total,collisions)|string|interface
|
void|netload|ulong(if_flags,mtu,subnet,address,packets_in,packets_out,packets_total,bytes_in,bytes_out,bytes_total,errors_in,errors_out,errors_total,collisions)|string|interface
|
||||||
void|ppp|ulong(state,bytes_in,bytes_out)|ushort(device)
|
void|ppp|ulong(state,bytes_in,bytes_out)|ushort(device)
|
||||||
char **|netlist|unsigned(number)
|
char **|netlist|unsigned(number)
|
||||||
|
char **|proc_wd|ulong(number),str(root),str(exe)|pid_t(pid)
|
||||||
|
|
||||||
|
|||||||
34
glibtop.h
34
glibtop.h
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -69,14 +67,15 @@ LIBGTOP_MICRO_VERSION >= (micro)))
|
|||||||
|
|
||||||
#include <glibtop/close.h>
|
#include <glibtop/close.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_GLIBTOP_MACHINE_H
|
||||||
|
|
||||||
struct _glibtop
|
struct _glibtop
|
||||||
{
|
{
|
||||||
unsigned flags;
|
unsigned flags;
|
||||||
unsigned method; /* Server Method */
|
unsigned method; /* Server Method */
|
||||||
unsigned error_method; /* Error Method */
|
unsigned error_method; /* Error Method */
|
||||||
#ifdef HAVE_GLIBTOP_MACHINE_H
|
|
||||||
glibtop_machine machine; /* Machine dependent data */
|
glibtop_machine machine; /* Machine dependent data */
|
||||||
#endif
|
|
||||||
int input [2]; /* Pipe client <- server */
|
int input [2]; /* Pipe client <- server */
|
||||||
int output [2]; /* Pipe client -> server */
|
int output [2]; /* Pipe client -> server */
|
||||||
int socket; /* Accepted connection of a socket */
|
int socket; /* Accepted connection of a socket */
|
||||||
@@ -95,6 +94,33 @@ struct _glibtop
|
|||||||
pid_t pid; /* PID of the server */
|
pid_t pid; /* PID of the server */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#else /* !HAVE_GLIBTOP_MACHINE_H */
|
||||||
|
|
||||||
|
struct _glibtop
|
||||||
|
{
|
||||||
|
unsigned flags;
|
||||||
|
unsigned method; /* Server Method */
|
||||||
|
unsigned error_method; /* Error Method */
|
||||||
|
int input [2]; /* Pipe client <- server */
|
||||||
|
int output [2]; /* Pipe client -> server */
|
||||||
|
int socket; /* Accepted connection of a socket */
|
||||||
|
int ncpu; /* Number of CPUs, zero if single-processor */
|
||||||
|
int real_ncpu; /* Real number of CPUs. Only ncpu are monitored */
|
||||||
|
unsigned long os_version_code; /* Version code of the operating system */
|
||||||
|
const char *name; /* Program name for error messages */
|
||||||
|
const char *server_command; /* Command used to invoke server */
|
||||||
|
const char *server_host; /* Host the server should run on */
|
||||||
|
const char *server_user; /* Name of the user on the target host */
|
||||||
|
const char *server_rsh; /* Command used to connect to the target host */
|
||||||
|
unsigned long features; /* Server is required for this features */
|
||||||
|
unsigned long server_port; /* Port on which daemon is listening */
|
||||||
|
glibtop_sysdeps sysdeps; /* Detailed feature list */
|
||||||
|
glibtop_sysdeps required; /* Required feature list */
|
||||||
|
pid_t pid; /* PID of the server */
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* HAVE_GLIBTOP_MACHINE_H */
|
||||||
|
|
||||||
extern glibtop *glibtop_global_server;
|
extern glibtop *glibtop_global_server;
|
||||||
|
|
||||||
extern const unsigned long glibtop_server_features;
|
extern const unsigned long glibtop_server_features;
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
@@ -7,7 +7,8 @@ glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
|
|||||||
procsegment.h sysdeps.h global.h \
|
procsegment.h sysdeps.h global.h \
|
||||||
procsignal.h union.h gnuserv.h \
|
procsignal.h union.h gnuserv.h \
|
||||||
parameter.h mountlist.h fsusage.h procmap.h signal.h \
|
parameter.h mountlist.h fsusage.h procmap.h signal.h \
|
||||||
inodedb.h sysinfo.h ppp.h procargs.h netload.h \
|
sysinfo.h ppp.h procargs.h netload.h \
|
||||||
|
procwd.h \
|
||||||
netlist.h procopenfiles.h open.h
|
netlist.h procopenfiles.h open.h
|
||||||
|
|
||||||
noinst_HEADERS = error.h write.h read_data.h read.h init_hooks.h
|
noinst_HEADERS = error.h write.h read_data.h read.h init_hooks.h
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
||||||
|
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
@@AUTOGEN_COMMENT@@
|
@@AUTOGEN_COMMENT@@
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -59,8 +57,9 @@ G_BEGIN_DECLS
|
|||||||
#define GLIBTOP_CMND_PPP 23
|
#define GLIBTOP_CMND_PPP 23
|
||||||
#define GLIBTOP_CMND_NETLIST 24
|
#define GLIBTOP_CMND_NETLIST 24
|
||||||
#define GLIBTOP_CMND_PROC_OPEN_FILES 25
|
#define GLIBTOP_CMND_PROC_OPEN_FILES 25
|
||||||
|
#define GLIBTOP_CMND_PROC_WD 26
|
||||||
|
|
||||||
#define GLIBTOP_MAX_CMND 26
|
#define GLIBTOP_MAX_CMND 27
|
||||||
|
|
||||||
#define _GLIBTOP_PARAM_SIZE 16
|
#define _GLIBTOP_PARAM_SIZE 16
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -94,10 +92,10 @@ void glibtop_get_cpu(glibtop_cpu *buf);
|
|||||||
void glibtop_get_cpu_l (glibtop *server, glibtop_cpu *buf);
|
void glibtop_get_cpu_l (glibtop *server, glibtop_cpu *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_CPU
|
#if GLIBTOP_SUID_CPU
|
||||||
void glibtop_init_cpu_p (glibtop *server);
|
void _glibtop_init_cpu_p (glibtop *server);
|
||||||
void glibtop_get_cpu_p (glibtop *server, glibtop_cpu *buf);
|
void glibtop_get_cpu_p (glibtop *server, glibtop_cpu *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_cpu_s (glibtop *server);
|
void _glibtop_init_cpu_s (glibtop *server);
|
||||||
void glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf);
|
void glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -33,20 +31,20 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
void glibtop_error_vr (glibtop *server, const char *format, va_list args) G_GNUC_INTERNAL G_GNUC_NORETURN;
|
void glibtop_error_vr (glibtop *server, const char *format, va_list args) G_GNUC_NORETURN;
|
||||||
void glibtop_warn_vr (glibtop *server, const char *format, va_list args) G_GNUC_INTERNAL;
|
void glibtop_warn_vr (glibtop *server, const char *format, va_list args);
|
||||||
void glibtop_error_io_vr (glibtop *server, const char *format, int, va_list args) G_GNUC_INTERNAL G_GNUC_NORETURN;
|
void glibtop_error_io_vr (glibtop *server, const char *format, int, va_list args) G_GNUC_NORETURN;
|
||||||
void glibtop_warn_io_vr (glibtop *server, const char *format, int, va_list args) G_GNUC_INTERNAL;
|
void glibtop_warn_io_vr (glibtop *server, const char *format, int, va_list args);
|
||||||
|
|
||||||
void glibtop_error_r (glibtop *server, const char *format, ...) G_GNUC_INTERNAL G_GNUC_PRINTF(2, 3) G_GNUC_NORETURN;
|
void glibtop_error_r (glibtop *server, const char *format, ...) G_GNUC_PRINTF(2, 3) G_GNUC_NORETURN;
|
||||||
void glibtop_warn_r (glibtop *server, const char *format, ...) G_GNUC_INTERNAL G_GNUC_PRINTF(2, 3);
|
void glibtop_warn_r (glibtop *server, const char *format, ...) G_GNUC_PRINTF(2, 3);
|
||||||
void glibtop_error_io_r (glibtop *server, const char *format, ...) G_GNUC_INTERNAL G_GNUC_PRINTF(2, 3) G_GNUC_NORETURN;
|
void glibtop_error_io_r (glibtop *server, const char *format, ...) G_GNUC_PRINTF(2, 3) G_GNUC_NORETURN;
|
||||||
void glibtop_warn_io_r (glibtop *server, const char *format, ...) G_GNUC_INTERNAL G_GNUC_PRINTF(2, 3);
|
void glibtop_warn_io_r (glibtop *server, const char *format, ...) G_GNUC_PRINTF(2, 3);
|
||||||
|
|
||||||
void glibtop_error (const char *format, ...) G_GNUC_INTERNAL G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN;
|
void glibtop_error (const char *format, ...) G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN;
|
||||||
void glibtop_warn (const char *format, ...) G_GNUC_INTERNAL G_GNUC_PRINTF(1, 2);
|
void glibtop_warn (const char *format, ...) G_GNUC_PRINTF(1, 2);
|
||||||
void glibtop_error_io (const char *format, ...) G_GNUC_INTERNAL G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN;
|
void glibtop_error_io (const char *format, ...) G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN;
|
||||||
void glibtop_warn_io (const char *format, ...) G_GNUC_INTERNAL G_GNUC_PRINTF(1, 2);
|
void glibtop_warn_io (const char *format, ...) G_GNUC_PRINTF(1, 2);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
|
|
||||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
||||||
|
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 2.0.
|
This file is part of LibGTop 2.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
typedef void (*glibtop_init_func_t)(glibtop *);
|
typedef void (*_glibtop_init_func_t)(glibtop *);
|
||||||
|
|
||||||
extern const glibtop_init_func_t _glibtop_init_hook_s[];
|
extern const _glibtop_init_func_t _glibtop_init_hook_s[];
|
||||||
extern const glibtop_init_func_t _glibtop_init_hook_p[];
|
extern const _glibtop_init_func_t _glibtop_init_hook_p[];
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -1,67 +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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __GLIBTOP_INODEDB_H__
|
|
||||||
#define __GLIBTOP_INODEDB_H__
|
|
||||||
|
|
||||||
#include <glibtop.h>
|
|
||||||
#include <gdbm.h>
|
|
||||||
|
|
||||||
#define GLIBTOP_INODEDB_SYSTEM 1
|
|
||||||
#define GLIBTOP_INODEDB_USER 2
|
|
||||||
#define GLIBTOP_INODEDB_CACHE 4
|
|
||||||
|
|
||||||
#define GLIBTOP_INODEDB_ALL 7
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
|
||||||
|
|
||||||
typedef struct _glibtop_inodedb glibtop_inodedb;
|
|
||||||
|
|
||||||
typedef struct _glibtop_inodedb_key glibtop_inodedb_key;
|
|
||||||
|
|
||||||
struct _glibtop_inodedb_key
|
|
||||||
{
|
|
||||||
guint64 device, inode;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _glibtop_inodedb
|
|
||||||
{
|
|
||||||
GDBM_FILE system_dbf, user_dbf;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define glibtop_inodedb_open(p1,p2) glibtop_inodedb_open_s(glibtop_global_server, p1, p2)
|
|
||||||
#define glibtop_inodedb_lookup(p1,p2,p3) glibtop_inodedb_lookup_s(glibtop_global_server, p1, p2, p3)
|
|
||||||
#define glibtop_inodedb_close(p1) glibtop_inodedb_close_s(glibtop_global_server)
|
|
||||||
|
|
||||||
glibtop_inodedb *
|
|
||||||
glibtop_inodedb_open_s (glibtop *server, unsigned databases, unsigned long cache_size);
|
|
||||||
|
|
||||||
const char *
|
|
||||||
glibtop_inodedb_lookup_s (glibtop *server,
|
|
||||||
glibtop_inodedb *inodedb,
|
|
||||||
guint64 device, guint64 inode);
|
|
||||||
|
|
||||||
void
|
|
||||||
glibtop_inodedb_close_s (glibtop *server, glibtop_inodedb *inodedb);
|
|
||||||
|
|
||||||
G_END_DECLS
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -58,10 +56,10 @@ void glibtop_get_loadavg(glibtop_loadavg *buf);
|
|||||||
void glibtop_get_loadavg_l (glibtop *server, glibtop_loadavg *buf);
|
void glibtop_get_loadavg_l (glibtop *server, glibtop_loadavg *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_LOADAVG
|
#if GLIBTOP_SUID_LOADAVG
|
||||||
void glibtop_init_loadavg_p (glibtop *server);
|
void _glibtop_init_loadavg_p (glibtop *server);
|
||||||
void glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf);
|
void glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_loadavg_s (glibtop *server);
|
void _glibtop_init_loadavg_s (glibtop *server);
|
||||||
void glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf);
|
void glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -66,10 +64,10 @@ void glibtop_get_mem(glibtop_mem *buf);
|
|||||||
void glibtop_get_mem_l (glibtop *server, glibtop_mem *buf);
|
void glibtop_get_mem_l (glibtop *server, glibtop_mem *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_MEM
|
#if GLIBTOP_SUID_MEM
|
||||||
void glibtop_init_mem_p (glibtop *server);
|
void _glibtop_init_mem_p (glibtop *server);
|
||||||
void glibtop_get_mem_p (glibtop *server, glibtop_mem *buf);
|
void glibtop_get_mem_p (glibtop *server, glibtop_mem *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_mem_s (glibtop *server);
|
void _glibtop_init_mem_s (glibtop *server);
|
||||||
void glibtop_get_mem_s (glibtop *server, glibtop_mem *buf);
|
void glibtop_get_mem_s (glibtop *server, glibtop_mem *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -64,10 +62,10 @@ void glibtop_get_msg_limits(glibtop_msg_limits *buf);
|
|||||||
void glibtop_get_msg_limits_l (glibtop *server, glibtop_msg_limits *buf);
|
void glibtop_get_msg_limits_l (glibtop *server, glibtop_msg_limits *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_MSG_LIMITS
|
#if GLIBTOP_SUID_MSG_LIMITS
|
||||||
void glibtop_init_msg_limits_p (glibtop *server);
|
void _glibtop_init_msg_limits_p (glibtop *server);
|
||||||
void glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf);
|
void glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_msg_limits_s (glibtop *server);
|
void _glibtop_init_msg_limits_s (glibtop *server);
|
||||||
void glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf);
|
void glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -48,10 +48,10 @@ char** glibtop_get_netlist(glibtop_netlist *buf);
|
|||||||
char** glibtop_get_netlist_l (glibtop *server, glibtop_netlist *buf);
|
char** glibtop_get_netlist_l (glibtop *server, glibtop_netlist *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_NETLIST
|
#if GLIBTOP_SUID_NETLIST
|
||||||
void glibtop_init_netlist_p (glibtop *server);
|
void _glibtop_init_netlist_p (glibtop *server);
|
||||||
char** glibtop_get_netlist_p (glibtop *server, glibtop_netlist *buf);
|
char** glibtop_get_netlist_p (glibtop *server, glibtop_netlist *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_netlist_s (glibtop *server);
|
void _glibtop_init_netlist_s (glibtop *server);
|
||||||
char** glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf);
|
char** glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -119,10 +117,10 @@ void glibtop_get_netload(glibtop_netload *buf, const char *interface);
|
|||||||
void glibtop_get_netload_l (glibtop *server, glibtop_netload *buf, const char *interface);
|
void glibtop_get_netload_l (glibtop *server, glibtop_netload *buf, const char *interface);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_NETLOAD
|
#if GLIBTOP_SUID_NETLOAD
|
||||||
void glibtop_init_netload_p (glibtop *server);
|
void _glibtop_init_netload_p (glibtop *server);
|
||||||
void glibtop_get_netload_p (glibtop *server, glibtop_netload *buf, const char *interface);
|
void glibtop_get_netload_p (glibtop *server, glibtop_netload *buf, const char *interface);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_netload_s (glibtop *server);
|
void _glibtop_init_netload_s (glibtop *server);
|
||||||
void glibtop_get_netload_s (glibtop *server, glibtop_netload *buf, const char *interface);
|
void glibtop_get_netload_s (glibtop *server, glibtop_netload *buf, const char *interface);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -62,10 +60,10 @@ void glibtop_get_ppp(glibtop_ppp *buf, unsigned short device);
|
|||||||
void glibtop_get_ppp_l (glibtop *server, glibtop_ppp *buf, unsigned short device);
|
void glibtop_get_ppp_l (glibtop *server, glibtop_ppp *buf, unsigned short device);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PPP
|
#if GLIBTOP_SUID_PPP
|
||||||
void glibtop_init_ppp_p (glibtop *server);
|
void _glibtop_init_ppp_p (glibtop *server);
|
||||||
void glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device);
|
void glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_ppp_s (glibtop *server);
|
void _glibtop_init_ppp_s (glibtop *server);
|
||||||
void glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device);
|
void glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
0
include/glibtop/procaffinity.h
Normal file
0
include/glibtop/procaffinity.h
Normal file
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -53,7 +51,7 @@ glibtop_get_proc_args (glibtop_proc_args *buf, pid_t pid, unsigned max_len);
|
|||||||
|
|
||||||
# define glibtop_get_proc_args_r glibtop_get_proc_args_p
|
# define glibtop_get_proc_args_r glibtop_get_proc_args_p
|
||||||
|
|
||||||
void glibtop_init_proc_args_p (glibtop *server);
|
void _glibtop_init_proc_args_p (glibtop *server);
|
||||||
|
|
||||||
char *
|
char *
|
||||||
glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
|
glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
|
||||||
@@ -64,7 +62,7 @@ glibtop_get_proc_args (glibtop_proc_args *buf, pid_t pid, unsigned max_len);
|
|||||||
|
|
||||||
# define glibtop_get_proc_args_r glibtop_get_proc_args_s
|
# define glibtop_get_proc_args_r glibtop_get_proc_args_s
|
||||||
|
|
||||||
void glibtop_init_proc_args_s (glibtop *server);
|
void _glibtop_init_proc_args_s (glibtop *server);
|
||||||
|
|
||||||
char *
|
char *
|
||||||
glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
|
glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -75,10 +73,10 @@ void glibtop_get_proc_kernel(glibtop_proc_kernel *buf, pid_t pid);
|
|||||||
void glibtop_get_proc_kernel_l (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
|
void glibtop_get_proc_kernel_l (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_KERNEL
|
#if GLIBTOP_SUID_PROC_KERNEL
|
||||||
void glibtop_init_proc_kernel_p (glibtop *server);
|
void _glibtop_init_proc_kernel_p (glibtop *server);
|
||||||
void glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
|
void glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_kernel_s (glibtop *server);
|
void _glibtop_init_proc_kernel_s (glibtop *server);
|
||||||
void glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
|
void glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -62,7 +60,7 @@ struct _glibtop_proclist
|
|||||||
guint64 size; /* GLIBTOP_PROCLIST_SIZE */
|
guint64 size; /* GLIBTOP_PROCLIST_SIZE */
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned *
|
pid_t*
|
||||||
glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg);
|
glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROCLIST
|
#if GLIBTOP_SUID_PROCLIST
|
||||||
@@ -71,20 +69,20 @@ glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg);
|
|||||||
#define glibtop_get_proclist_r glibtop_get_proclist_s
|
#define glibtop_get_proclist_r glibtop_get_proclist_s
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned *
|
pid_t*
|
||||||
glibtop_get_proclist_l (glibtop *server, glibtop_proclist *buf,
|
glibtop_get_proclist_l (glibtop *server, glibtop_proclist *buf,
|
||||||
gint64 which, gint64 arg);
|
gint64 which, gint64 arg);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROCLIST
|
#if GLIBTOP_SUID_PROCLIST
|
||||||
void glibtop_init_proclist_p (glibtop *server);
|
void _glibtop_init_proclist_p (glibtop *server);
|
||||||
|
|
||||||
unsigned *
|
pid_t*
|
||||||
glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
|
glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
|
||||||
gint64 which, gint64 arg);
|
gint64 which, gint64 arg);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proclist_s (glibtop *server);
|
void _glibtop_init_proclist_s (glibtop *server);
|
||||||
|
|
||||||
unsigned *
|
pid_t*
|
||||||
glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
|
glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
|
||||||
gint64 which, gint64 arg);
|
gint64 which, gint64 arg);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -104,12 +102,12 @@ glibtop_map_entry *
|
|||||||
glibtop_get_proc_map_l (glibtop *server, glibtop_proc_map *buf, pid_t pid);
|
glibtop_get_proc_map_l (glibtop *server, glibtop_proc_map *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_MAP
|
#if GLIBTOP_SUID_PROC_MAP
|
||||||
void glibtop_init_proc_map_p (glibtop *server);
|
void _glibtop_init_proc_map_p (glibtop *server);
|
||||||
|
|
||||||
glibtop_map_entry *
|
glibtop_map_entry *
|
||||||
glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf, pid_t pid);
|
glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_map_s (glibtop *server);
|
void _glibtop_init_proc_map_s (glibtop *server);
|
||||||
|
|
||||||
glibtop_map_entry *
|
glibtop_map_entry *
|
||||||
glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid);
|
glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid);
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -66,10 +64,10 @@ void glibtop_get_proc_mem(glibtop_proc_mem *buf, pid_t pid);
|
|||||||
void glibtop_get_proc_mem_l (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
|
void glibtop_get_proc_mem_l (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_MEM
|
#if GLIBTOP_SUID_PROC_MEM
|
||||||
void glibtop_init_proc_mem_p (glibtop *server);
|
void _glibtop_init_proc_mem_p (glibtop *server);
|
||||||
void glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
|
void glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_mem_s (glibtop *server);
|
void _glibtop_init_proc_mem_s (glibtop *server);
|
||||||
void glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
|
void glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
Copyright (C) 2004 Nicolás Lichtmaier
|
Copyright (C) 2004 Nicolás Lichtmaier
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
@@ -107,12 +105,12 @@ glibtop_open_files_entry *
|
|||||||
glibtop_get_proc_open_files_l (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
|
glibtop_get_proc_open_files_l (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_FILE
|
#if GLIBTOP_SUID_PROC_FILE
|
||||||
void glibtop_init_proc_open_files_p (glibtop *server);
|
void _glibtop_init_proc_open_files_p (glibtop *server);
|
||||||
|
|
||||||
glibtop_open_files_entry *
|
glibtop_open_files_entry *
|
||||||
glibtop_get_proc_open_files_p (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
|
glibtop_get_proc_open_files_p (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_open_files_s (glibtop *server);
|
void _glibtop_init_proc_open_files_s (glibtop *server);
|
||||||
|
|
||||||
glibtop_open_files_entry *
|
glibtop_open_files_entry *
|
||||||
glibtop_get_proc_open_files_s (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
|
glibtop_get_proc_open_files_s (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -69,10 +67,10 @@ void glibtop_get_proc_segment(glibtop_proc_segment *buf, pid_t pid);
|
|||||||
void glibtop_get_proc_segment_l (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
|
void glibtop_get_proc_segment_l (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_SEGMENT
|
#if GLIBTOP_SUID_PROC_SEGMENT
|
||||||
void glibtop_init_proc_segment_p (glibtop *server);
|
void _glibtop_init_proc_segment_p (glibtop *server);
|
||||||
void glibtop_get_proc_segment_p (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
|
void glibtop_get_proc_segment_p (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_segment_s (glibtop *server);
|
void _glibtop_init_proc_segment_s (glibtop *server);
|
||||||
void glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
|
void glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -60,10 +58,10 @@ void glibtop_get_proc_signal(glibtop_proc_signal *buf, pid_t pid);
|
|||||||
void glibtop_get_proc_signal_l (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
|
void glibtop_get_proc_signal_l (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_SIGNAL
|
#if GLIBTOP_SUID_PROC_SIGNAL
|
||||||
void glibtop_init_proc_signal_p (glibtop *server);
|
void _glibtop_init_proc_signal_p (glibtop *server);
|
||||||
void glibtop_get_proc_signal_p (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
|
void glibtop_get_proc_signal_p (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_signal_s (glibtop *server);
|
void _glibtop_init_proc_signal_s (glibtop *server);
|
||||||
void glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
|
void glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -84,10 +82,10 @@ void glibtop_get_proc_state(glibtop_proc_state *buf, pid_t pid);
|
|||||||
void glibtop_get_proc_state_l (glibtop *server, glibtop_proc_state *buf, pid_t pid);
|
void glibtop_get_proc_state_l (glibtop *server, glibtop_proc_state *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_STATE
|
#if GLIBTOP_SUID_PROC_STATE
|
||||||
void glibtop_init_proc_state_p (glibtop *server);
|
void _glibtop_init_proc_state_p (glibtop *server);
|
||||||
void glibtop_get_proc_state_p (glibtop *server, glibtop_proc_state *buf, pid_t pid);
|
void glibtop_get_proc_state_p (glibtop *server, glibtop_proc_state *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_state_s (glibtop *server);
|
void _glibtop_init_proc_state_s (glibtop *server);
|
||||||
void glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf, pid_t pid);
|
void glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf, pid_t pid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -82,10 +80,10 @@ void glibtop_get_proc_time(glibtop_proc_time *buf, pid_t pid);
|
|||||||
void glibtop_get_proc_time_l (glibtop *server, glibtop_proc_time *buf, pid_t pid);
|
void glibtop_get_proc_time_l (glibtop *server, glibtop_proc_time *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_TIME
|
#if GLIBTOP_SUID_PROC_TIME
|
||||||
void glibtop_init_proc_time_p (glibtop *server);
|
void _glibtop_init_proc_time_p (glibtop *server);
|
||||||
void glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf, pid_t pid);
|
void glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_time_s (glibtop *server);
|
void _glibtop_init_proc_time_s (glibtop *server);
|
||||||
void glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid);
|
void glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -91,10 +89,10 @@ void glibtop_get_proc_uid(glibtop_proc_uid *buf, pid_t pid);
|
|||||||
void glibtop_get_proc_uid_l (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
|
void glibtop_get_proc_uid_l (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_PROC_UID
|
#if GLIBTOP_SUID_PROC_UID
|
||||||
void glibtop_init_proc_uid_p (glibtop *server);
|
void _glibtop_init_proc_uid_p (glibtop *server);
|
||||||
void glibtop_get_proc_uid_p (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
|
void glibtop_get_proc_uid_p (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_proc_uid_s (glibtop *server);
|
void _glibtop_init_proc_uid_s (glibtop *server);
|
||||||
void glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
|
void glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
69
include/glibtop/procwd.h
Normal file
69
include/glibtop/procwd.h
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
/* Copyright (C) 2007 Benoît Dejean
|
||||||
|
This file is part of LibGTop 2.
|
||||||
|
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __GLIBTOP_PROCWD_H__
|
||||||
|
#define __GLIBTOP_PROCWD_H__
|
||||||
|
|
||||||
|
#include <glibtop.h>
|
||||||
|
#include <glibtop/global.h>
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
typedef struct _glibtop_proc_wd glibtop_proc_wd;
|
||||||
|
|
||||||
|
#define GLIBTOP_PROC_WD_NUMBER 0
|
||||||
|
#define GLIBTOP_PROC_WD_ROOT 1
|
||||||
|
#define GLIBTOP_PROC_WD_EXE 2
|
||||||
|
#define GLIBTOP_PROC_WD_MAX 3
|
||||||
|
|
||||||
|
#define GLIBTOP_PROC_WD_ROOT_LEN 215
|
||||||
|
#define GLIBTOP_PROC_WD_EXE_LEN 215
|
||||||
|
|
||||||
|
struct _glibtop_proc_wd
|
||||||
|
{
|
||||||
|
guint64 flags;
|
||||||
|
guint32 number;
|
||||||
|
char root[GLIBTOP_PROC_WD_ROOT_LEN+1];
|
||||||
|
char exe[GLIBTOP_PROC_WD_EXE_LEN+1];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
char ** glibtop_get_proc_wd(glibtop_proc_wd *buf, pid_t pid);
|
||||||
|
char ** glibtop_get_proc_wd_l(glibtop *server, glibtop_proc_wd *buf, pid_t pid);
|
||||||
|
|
||||||
|
|
||||||
|
#if GLIBTOP_SUID_PROC_WD
|
||||||
|
|
||||||
|
#define glibtop_get_proc_wd_r glibtop_get_proc_wd_p
|
||||||
|
void _glibtop_init_proc_wd_p(glibtop *server);
|
||||||
|
char ** glibtop_get_proc_wd_p(glibtop *server, glibtop_proc_wd *buf, pid_t pid);
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define glibtop_get_proc_wd_r glibtop_get_proc_wd_s
|
||||||
|
void _glibtop_init_proc_wd_s(glibtop *server);
|
||||||
|
char ** glibtop_get_proc_wd_s(glibtop *server, glibtop_proc_wd *buf, pid_t pid);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -70,10 +68,10 @@ void glibtop_get_sem_limits(glibtop_sem_limits *buf);
|
|||||||
void glibtop_get_sem_limits_l (glibtop *server, glibtop_sem_limits *buf);
|
void glibtop_get_sem_limits_l (glibtop *server, glibtop_sem_limits *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_SEM_LIMITS
|
#if GLIBTOP_SUID_SEM_LIMITS
|
||||||
void glibtop_init_sem_limits_p (glibtop *server);
|
void _glibtop_init_sem_limits_p (glibtop *server);
|
||||||
void glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf);
|
void glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_sem_limits_s (glibtop *server);
|
void _glibtop_init_sem_limits_s (glibtop *server);
|
||||||
void glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf);
|
void glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -60,10 +58,10 @@ void glibtop_get_shm_limits(glibtop_shm_limits *buf);
|
|||||||
void glibtop_get_shm_limits_l (glibtop *server, glibtop_shm_limits *buf);
|
void glibtop_get_shm_limits_l (glibtop *server, glibtop_shm_limits *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_SHM_LIMITS
|
#if GLIBTOP_SUID_SHM_LIMITS
|
||||||
void glibtop_init_shm_limits_p (glibtop *server);
|
void _glibtop_init_shm_limits_p (glibtop *server);
|
||||||
void glibtop_get_shm_limits_p (glibtop *, glibtop_shm_limits *buf);
|
void glibtop_get_shm_limits_p (glibtop *, glibtop_shm_limits *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_shm_limits_s (glibtop *server);
|
void _glibtop_init_shm_limits_s (glibtop *server);
|
||||||
void glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf);
|
void glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -61,10 +59,10 @@ glibtop_get_swap(glibtop_swap *buf);
|
|||||||
void glibtop_get_swap_l (glibtop *server, glibtop_swap *buf);
|
void glibtop_get_swap_l (glibtop *server, glibtop_swap *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_SWAP
|
#if GLIBTOP_SUID_SWAP
|
||||||
void glibtop_init_swap_p (glibtop *server);
|
void _glibtop_init_swap_p (glibtop *server);
|
||||||
void glibtop_get_swap_p (glibtop *server, glibtop_swap *buf);
|
void glibtop_get_swap_p (glibtop *server, glibtop_swap *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_swap_s (glibtop *server);
|
void _glibtop_init_swap_s (glibtop *server);
|
||||||
void glibtop_get_swap_s (glibtop *server, glibtop_swap *buf);
|
void glibtop_get_swap_s (glibtop *server, glibtop_swap *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -53,8 +51,9 @@ G_BEGIN_DECLS
|
|||||||
#define GLIBTOP_SYSDEPS_PPP 22
|
#define GLIBTOP_SYSDEPS_PPP 22
|
||||||
#define GLIBTOP_SYSDEPS_NETLIST 23
|
#define GLIBTOP_SYSDEPS_NETLIST 23
|
||||||
#define GLIBTOP_SYSDEPS_PROC_OPEN_FILES 24
|
#define GLIBTOP_SYSDEPS_PROC_OPEN_FILES 24
|
||||||
|
#define GLIBTOP_SYSDEPS_PROC_WD 25
|
||||||
|
|
||||||
#define GLIBTOP_MAX_SYSDEPS 25
|
#define GLIBTOP_MAX_SYSDEPS 26
|
||||||
|
|
||||||
#define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1)
|
#define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1)
|
||||||
|
|
||||||
@@ -88,6 +87,7 @@ struct _glibtop_sysdeps
|
|||||||
guint64 netlist; /* glibtop_netlist */
|
guint64 netlist; /* glibtop_netlist */
|
||||||
guint64 netload; /* glibtop_netload */
|
guint64 netload; /* glibtop_netload */
|
||||||
guint64 ppp; /* glibtop_ppp */
|
guint64 ppp; /* glibtop_ppp */
|
||||||
|
guint64 proc_wd; /* glibtop_proc_wd */
|
||||||
};
|
};
|
||||||
|
|
||||||
void glibtop_get_sysdeps (glibtop_sysdeps *buf);
|
void glibtop_get_sysdeps (glibtop_sysdeps *buf);
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -50,7 +48,8 @@ struct _glibtop_entry
|
|||||||
|
|
||||||
struct _glibtop_sysinfo
|
struct _glibtop_sysinfo
|
||||||
{
|
{
|
||||||
guint64 flags, ncpu;
|
guint64 flags;
|
||||||
|
guint64 ncpu;
|
||||||
glibtop_entry cpuinfo [GLIBTOP_NCPU];
|
glibtop_entry cpuinfo [GLIBTOP_NCPU];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -44,6 +42,7 @@
|
|||||||
#include <glibtop/procargs.h>
|
#include <glibtop/procargs.h>
|
||||||
#include <glibtop/procmap.h>
|
#include <glibtop/procmap.h>
|
||||||
#include <glibtop/procopenfiles.h>
|
#include <glibtop/procopenfiles.h>
|
||||||
|
#include <glibtop/procwd.h>
|
||||||
|
|
||||||
#include <glibtop/mountlist.h>
|
#include <glibtop/mountlist.h>
|
||||||
#include <glibtop/fsusage.h>
|
#include <glibtop/fsusage.h>
|
||||||
@@ -82,6 +81,7 @@ union _glibtop_union
|
|||||||
glibtop_netload netload;
|
glibtop_netload netload;
|
||||||
glibtop_ppp ppp;
|
glibtop_ppp ppp;
|
||||||
glibtop_proc_open_files proc_open_files;
|
glibtop_proc_open_files proc_open_files;
|
||||||
|
glibtop_proc_wd proc_wd;
|
||||||
};
|
};
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -56,10 +54,10 @@ void glibtop_get_uptime (glibtop_uptime *buf);
|
|||||||
void glibtop_get_uptime_l (glibtop *server, glibtop_uptime *buf);
|
void glibtop_get_uptime_l (glibtop *server, glibtop_uptime *buf);
|
||||||
|
|
||||||
#if GLIBTOP_SUID_UPTIME
|
#if GLIBTOP_SUID_UPTIME
|
||||||
void glibtop_init_uptime_p (glibtop *server);
|
void _glibtop_init_uptime_p (glibtop *server);
|
||||||
void glibtop_get_uptime_p (glibtop *server, glibtop_uptime *buf);
|
void glibtop_get_uptime_p (glibtop *server, glibtop_uptime *buf);
|
||||||
#else
|
#else
|
||||||
void glibtop_init_uptime_s (glibtop *server);
|
void _glibtop_init_uptime_s (glibtop *server);
|
||||||
void glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf);
|
void glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
.deps
|
|
||||||
.libs
|
|
||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
libgtop.la
|
|
||||||
*.lo
|
|
||||||
lib.c
|
|
||||||
error.loT
|
|
||||||
@@ -7,7 +7,7 @@ libgtop_2_0_la_SOURCES = init.c open.c close.c command.c read.c \
|
|||||||
read_data.c write.c lib.c parameter.c \
|
read_data.c write.c lib.c parameter.c \
|
||||||
sysdeps.c
|
sysdeps.c
|
||||||
|
|
||||||
libgtop_2_0_la_LDFLAGS = $(LT_VERSION_INFO) -export-symbols-regex "^[^_].*"
|
libgtop_2_0_la_LDFLAGS = $(LT_VERSION_INFO) -export-symbols $(srcdir)/libgtop.sym
|
||||||
libgtop_2_0_la_LIBADD = $(GLIB_LIBS) $(top_builddir)/sysdeps/common/libgtop_common-2.0.la $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la $(sysdeps_suid_lib)
|
libgtop_2_0_la_LIBADD = $(GLIB_LIBS) $(top_builddir)/sysdeps/common/libgtop_common-2.0.la $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la $(sysdeps_suid_lib)
|
||||||
|
|
||||||
BUILT_SOURCES = lib.c
|
BUILT_SOURCES = lib.c
|
||||||
@@ -16,7 +16,7 @@ lib.c: lib.pl $(top_builddir)/config.h $(top_srcdir)/features.def
|
|||||||
$(PERL) $(srcdir)/lib.pl < $(top_srcdir)/features.def > lib-t
|
$(PERL) $(srcdir)/lib.pl < $(top_srcdir)/features.def > lib-t
|
||||||
mv lib-t lib.c
|
mv lib-t lib.c
|
||||||
|
|
||||||
EXTRA_DIST = lib.pl
|
EXTRA_DIST = lib.pl libgtop.sym
|
||||||
|
|
||||||
CLEANFILES = lib.c
|
CLEANFILES = lib.c
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
||||||
|
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
||||||
|
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
||||||
|
|
||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 2.0.
|
This file is part of LibGTop 2.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -221,7 +219,7 @@ glibtop *
|
|||||||
glibtop_init_s (glibtop **server_ptr, unsigned long features, unsigned flags)
|
glibtop_init_s (glibtop **server_ptr, unsigned long features, unsigned flags)
|
||||||
{
|
{
|
||||||
glibtop *server;
|
glibtop *server;
|
||||||
const glibtop_init_func_t *init_fkt;
|
const _glibtop_init_func_t *init_fkt;
|
||||||
|
|
||||||
if (server_ptr == NULL)
|
if (server_ptr == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
117
lib/inodedb.c
117
lib/inodedb.c
@@ -1,117 +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 <config.h>
|
|
||||||
#include <glibtop.h>
|
|
||||||
#include <glibtop/error.h>
|
|
||||||
#include <glibtop/inodedb.h>
|
|
||||||
|
|
||||||
#include <pwd.h>
|
|
||||||
#include <gdbm.h>
|
|
||||||
|
|
||||||
#ifndef SYSTEM_INODEDB
|
|
||||||
#define SYSTEM_INODEDB "/usr/var/libgtop/inodedb.db"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
glibtop_inodedb *
|
|
||||||
glibtop_inodedb_open_s (glibtop *server, unsigned databases,
|
|
||||||
unsigned long cachesize)
|
|
||||||
{
|
|
||||||
glibtop_inodedb *inodedb;
|
|
||||||
char filename [BUFSIZ];
|
|
||||||
struct passwd *pwd;
|
|
||||||
struct stat statb;
|
|
||||||
|
|
||||||
if (!databases)
|
|
||||||
databases = GLIBTOP_INODEDB_ALL;
|
|
||||||
|
|
||||||
inodedb = g_malloc (sizeof (glibtop_inodedb));
|
|
||||||
|
|
||||||
if (stat (SYSTEM_INODEDB, &statb))
|
|
||||||
databases &= ~GLIBTOP_INODEDB_SYSTEM;
|
|
||||||
|
|
||||||
if (databases & GLIBTOP_INODEDB_SYSTEM) {
|
|
||||||
inodedb->system_dbf = gdbm_open
|
|
||||||
(SYSTEM_INODEDB, 0, GDBM_READER, 0, 0);
|
|
||||||
if (!inodedb->system_dbf)
|
|
||||||
glibtop_error_io_r
|
|
||||||
(server, "gdbm_open (%s)", SYSTEM_INODEDB);
|
|
||||||
}
|
|
||||||
|
|
||||||
pwd = getpwuid (getuid ());
|
|
||||||
if (!pwd) glibtop_error_io_r (server, "getpwuid");
|
|
||||||
|
|
||||||
sprintf (filename, "%s/var/libgtop/inodedb.db", pwd->pw_dir);
|
|
||||||
|
|
||||||
if (stat (filename, &statb))
|
|
||||||
databases &= ~GLIBTOP_INODEDB_USER;
|
|
||||||
|
|
||||||
if (databases & GLIBTOP_INODEDB_USER) {
|
|
||||||
inodedb->user_dbf = gdbm_open
|
|
||||||
(filename, 0, GDBM_READER, 0, 0);
|
|
||||||
if (!inodedb->user_dbf)
|
|
||||||
glibtop_error_io_r
|
|
||||||
(server, "gdbm_open (%s)", filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
return inodedb;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *
|
|
||||||
glibtop_inodedb_lookup_s (glibtop *server,
|
|
||||||
glibtop_inodedb *inodedb,
|
|
||||||
guint64 device, guint64 inode)
|
|
||||||
{
|
|
||||||
glibtop_inodedb_key key;
|
|
||||||
datum d_key, d_content;
|
|
||||||
|
|
||||||
d_key.dptr = (void *) &key;
|
|
||||||
d_key.dsize = sizeof (key);
|
|
||||||
|
|
||||||
key.device = device;
|
|
||||||
key.inode = inode;
|
|
||||||
|
|
||||||
if (inodedb->system_dbf) {
|
|
||||||
d_content = gdbm_fetch (inodedb->system_dbf, d_key);
|
|
||||||
if (d_content.dptr) return d_content.dptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (inodedb->user_dbf) {
|
|
||||||
d_content = gdbm_fetch (inodedb->user_dbf, d_key);
|
|
||||||
if (d_content.dptr) return d_content.dptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
glibtop_inodedb_close_s (glibtop *server, glibtop_inodedb *inodedb)
|
|
||||||
{
|
|
||||||
if (inodedb->system_dbf)
|
|
||||||
gdbm_close (inodedb->system_dbf);
|
|
||||||
|
|
||||||
if (inodedb->user_dbf)
|
|
||||||
gdbm_close (inodedb->user_dbf);
|
|
||||||
|
|
||||||
g_free (inodedb);
|
|
||||||
}
|
|
||||||
130
lib/libgtop.sym
Normal file
130
lib/libgtop.sym
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
glibtop_call_l
|
||||||
|
glibtop_call_p
|
||||||
|
glibtop_close
|
||||||
|
glibtop_close_p
|
||||||
|
glibtop_close_r
|
||||||
|
glibtop_close_s
|
||||||
|
glibtop_get_cpu
|
||||||
|
glibtop_get_cpu_l
|
||||||
|
glibtop_get_cpu_p
|
||||||
|
glibtop_get_cpu_s
|
||||||
|
glibtop_get_fsusage
|
||||||
|
glibtop_get_fsusage_l
|
||||||
|
glibtop_get_fsusage_p
|
||||||
|
glibtop_get_fsusage_s
|
||||||
|
glibtop_get_loadavg
|
||||||
|
glibtop_get_loadavg_l
|
||||||
|
glibtop_get_loadavg_p
|
||||||
|
glibtop_get_loadavg_s
|
||||||
|
glibtop_get_mem
|
||||||
|
glibtop_get_mem_l
|
||||||
|
glibtop_get_mem_p
|
||||||
|
glibtop_get_mem_s
|
||||||
|
glibtop_get_mountlist
|
||||||
|
glibtop_get_mountlist_l
|
||||||
|
glibtop_get_mountlist_p
|
||||||
|
glibtop_get_mountlist_s
|
||||||
|
glibtop_get_msg_limits
|
||||||
|
glibtop_get_msg_limits_l
|
||||||
|
glibtop_get_msg_limits_p
|
||||||
|
glibtop_get_msg_limits_s
|
||||||
|
glibtop_get_netlist
|
||||||
|
glibtop_get_netlist_l
|
||||||
|
glibtop_get_netlist_p
|
||||||
|
glibtop_get_netlist_s
|
||||||
|
glibtop_get_netload
|
||||||
|
glibtop_get_netload_l
|
||||||
|
glibtop_get_netload_p
|
||||||
|
glibtop_get_netload_s
|
||||||
|
glibtop_get_parameter_l
|
||||||
|
glibtop_get_parameter_p
|
||||||
|
glibtop_get_ppp
|
||||||
|
glibtop_get_ppp_l
|
||||||
|
glibtop_get_ppp_p
|
||||||
|
glibtop_get_ppp_s
|
||||||
|
glibtop_get_proc_args
|
||||||
|
glibtop_get_proc_args_l
|
||||||
|
glibtop_get_proc_args_p
|
||||||
|
glibtop_get_proc_args_s
|
||||||
|
glibtop_get_proc_argv
|
||||||
|
glibtop_get_proc_argv_l
|
||||||
|
glibtop_get_proc_argv_p
|
||||||
|
glibtop_get_proc_kernel
|
||||||
|
glibtop_get_proc_kernel_l
|
||||||
|
glibtop_get_proc_kernel_p
|
||||||
|
glibtop_get_proc_kernel_s
|
||||||
|
glibtop_get_proclist
|
||||||
|
glibtop_get_proclist_l
|
||||||
|
glibtop_get_proclist_p
|
||||||
|
glibtop_get_proclist_s
|
||||||
|
glibtop_get_proc_map
|
||||||
|
glibtop_get_proc_map_l
|
||||||
|
glibtop_get_proc_map_p
|
||||||
|
glibtop_get_proc_map_s
|
||||||
|
glibtop_get_proc_mem
|
||||||
|
glibtop_get_proc_mem_l
|
||||||
|
glibtop_get_proc_mem_p
|
||||||
|
glibtop_get_proc_mem_s
|
||||||
|
glibtop_get_proc_open_files
|
||||||
|
glibtop_get_proc_open_files_l
|
||||||
|
glibtop_get_proc_open_files_p
|
||||||
|
glibtop_get_proc_open_files_s
|
||||||
|
glibtop_get_proc_segment
|
||||||
|
glibtop_get_proc_segment_l
|
||||||
|
glibtop_get_proc_segment_p
|
||||||
|
glibtop_get_proc_segment_s
|
||||||
|
glibtop_get_proc_signal
|
||||||
|
glibtop_get_proc_signal_l
|
||||||
|
glibtop_get_proc_signal_p
|
||||||
|
glibtop_get_proc_signal_s
|
||||||
|
glibtop_get_proc_state
|
||||||
|
glibtop_get_proc_state_l
|
||||||
|
glibtop_get_proc_state_p
|
||||||
|
glibtop_get_proc_state_s
|
||||||
|
glibtop_get_proc_time
|
||||||
|
glibtop_get_proc_time_l
|
||||||
|
glibtop_get_proc_time_p
|
||||||
|
glibtop_get_proc_time_s
|
||||||
|
glibtop_get_proc_uid
|
||||||
|
glibtop_get_proc_uid_l
|
||||||
|
glibtop_get_proc_uid_p
|
||||||
|
glibtop_get_proc_uid_s
|
||||||
|
glibtop_get_proc_wd
|
||||||
|
glibtop_get_proc_wd_l
|
||||||
|
glibtop_get_proc_wd_p
|
||||||
|
glibtop_get_proc_wd_s
|
||||||
|
glibtop_get_sem_limits
|
||||||
|
glibtop_get_sem_limits_l
|
||||||
|
glibtop_get_sem_limits_p
|
||||||
|
glibtop_get_sem_limits_s
|
||||||
|
glibtop_get_shm_limits
|
||||||
|
glibtop_get_shm_limits_l
|
||||||
|
glibtop_get_shm_limits_p
|
||||||
|
glibtop_get_shm_limits_s
|
||||||
|
glibtop_get_swap
|
||||||
|
glibtop_get_swap_l
|
||||||
|
glibtop_get_swap_p
|
||||||
|
glibtop_get_swap_s
|
||||||
|
glibtop_get_sysdeps
|
||||||
|
glibtop_get_sysdeps_r
|
||||||
|
glibtop_get_sysinfo
|
||||||
|
glibtop_get_sysinfo_p
|
||||||
|
glibtop_get_sysinfo_s
|
||||||
|
glibtop_get_uptime
|
||||||
|
glibtop_get_uptime_l
|
||||||
|
glibtop_get_uptime_p
|
||||||
|
glibtop_get_uptime_s
|
||||||
|
glibtop_global_server
|
||||||
|
glibtop_init
|
||||||
|
glibtop_init_p
|
||||||
|
glibtop_init_r
|
||||||
|
glibtop_init_s
|
||||||
|
glibtop_internet_addr
|
||||||
|
glibtop_make_connection
|
||||||
|
glibtop_open_l
|
||||||
|
glibtop_open_p
|
||||||
|
glibtop_open_s
|
||||||
|
glibtop_server_features
|
||||||
|
glibtop_set_parameter_l
|
||||||
|
glibtop_set_parameter_p
|
||||||
|
glibtop_sys_siglist
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
41
lib/read.c
41
lib/read.c
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -22,48 +20,39 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <glibtop/read.h>
|
#include <glibtop/read.h>
|
||||||
#include <glibtop/error.h>
|
#include <glibtop/error.h>
|
||||||
#include <glib/gi18n-lib.h>
|
#include <glib/gi18n-lib.h>
|
||||||
|
|
||||||
|
|
||||||
/* Reads some data from server. */
|
|
||||||
|
|
||||||
static void
|
|
||||||
do_read (int s, void *ptr, size_t total_size)
|
|
||||||
{
|
|
||||||
ssize_t nread;
|
|
||||||
|
|
||||||
if(!total_size) return;
|
|
||||||
|
|
||||||
while (total_size && (nread = recv (s, ptr, total_size, 0)) > 0) {
|
|
||||||
total_size -= nread;
|
|
||||||
ptr = (char*)ptr + nread;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(nread == 0)
|
|
||||||
close (s);
|
|
||||||
else if (nread < 0)
|
|
||||||
glibtop_error_io ("recv");
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
glibtop_read_l (glibtop *server, size_t size, void *buf)
|
glibtop_read_l (glibtop *server, size_t size, void *buf)
|
||||||
{
|
{
|
||||||
|
int fd;
|
||||||
glibtop_init_r (&server, 0, 0);
|
glibtop_init_r (&server, 0, 0);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf (stderr, "LIBRARY: really reading %d bytes.\n", (int)size);
|
fprintf (stderr, "LIBRARY: really reading %d bytes.\n", (int)size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (server->socket) {
|
fd = server->socket ? server->socket : server->input[0];
|
||||||
do_read (server->socket, buf, size);
|
|
||||||
} else {
|
while (size) {
|
||||||
if(read (server->input [0], buf, size) < 0)
|
ssize_t nread = read(fd, buf, size);
|
||||||
glibtop_error_io_r (
|
|
||||||
|
if (nread < 0 && errno == EINTR)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (nread <= 0)
|
||||||
|
glibtop_error_io_r(
|
||||||
server,
|
server,
|
||||||
ngettext ("read %d byte",
|
ngettext ("read %d byte",
|
||||||
"read %d bytes", size),
|
"read %d bytes", size),
|
||||||
(int)size);
|
(int)size);
|
||||||
|
|
||||||
|
size -= nread;
|
||||||
|
buf = (char *)buf + nread;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
|
|||||||
@@ -46,138 +46,145 @@ GLIBTOP_SUID_PROC_ARGS +
|
|||||||
GLIBTOP_SUID_PROC_MAP +
|
GLIBTOP_SUID_PROC_MAP +
|
||||||
GLIBTOP_SUID_NETLOAD +
|
GLIBTOP_SUID_NETLOAD +
|
||||||
GLIBTOP_SUID_NETLIST +
|
GLIBTOP_SUID_NETLIST +
|
||||||
|
GLIBTOP_SUID_PROC_WD +
|
||||||
GLIBTOP_SUID_PPP;
|
GLIBTOP_SUID_PPP;
|
||||||
|
|
||||||
const glibtop_init_func_t _glibtop_init_hook_s [] = {
|
const _glibtop_init_func_t _glibtop_init_hook_s [] = {
|
||||||
#if !GLIBTOP_SUID_CPU
|
#if !GLIBTOP_SUID_CPU
|
||||||
glibtop_init_cpu_s,
|
_glibtop_init_cpu_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_MEM
|
#if !GLIBTOP_SUID_MEM
|
||||||
glibtop_init_mem_s,
|
_glibtop_init_mem_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_SWAP
|
#if !GLIBTOP_SUID_SWAP
|
||||||
glibtop_init_swap_s,
|
_glibtop_init_swap_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_UPTIME
|
#if !GLIBTOP_SUID_UPTIME
|
||||||
glibtop_init_uptime_s,
|
_glibtop_init_uptime_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_LOADAVG
|
#if !GLIBTOP_SUID_LOADAVG
|
||||||
glibtop_init_loadavg_s,
|
_glibtop_init_loadavg_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_SHM_LIMITS
|
#if !GLIBTOP_SUID_SHM_LIMITS
|
||||||
glibtop_init_shm_limits_s,
|
_glibtop_init_shm_limits_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_MSG_LIMITS
|
#if !GLIBTOP_SUID_MSG_LIMITS
|
||||||
glibtop_init_msg_limits_s,
|
_glibtop_init_msg_limits_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_SEM_LIMITS
|
#if !GLIBTOP_SUID_SEM_LIMITS
|
||||||
glibtop_init_sem_limits_s,
|
_glibtop_init_sem_limits_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROCLIST
|
#if !GLIBTOP_SUID_PROCLIST
|
||||||
glibtop_init_proclist_s,
|
_glibtop_init_proclist_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_STATE
|
#if !GLIBTOP_SUID_PROC_STATE
|
||||||
glibtop_init_proc_state_s,
|
_glibtop_init_proc_state_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_UID
|
#if !GLIBTOP_SUID_PROC_UID
|
||||||
glibtop_init_proc_uid_s,
|
_glibtop_init_proc_uid_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_MEM
|
#if !GLIBTOP_SUID_PROC_MEM
|
||||||
glibtop_init_proc_mem_s,
|
_glibtop_init_proc_mem_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_TIME
|
#if !GLIBTOP_SUID_PROC_TIME
|
||||||
glibtop_init_proc_time_s,
|
_glibtop_init_proc_time_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_SIGNAL
|
#if !GLIBTOP_SUID_PROC_SIGNAL
|
||||||
glibtop_init_proc_signal_s,
|
_glibtop_init_proc_signal_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_KERNEL
|
#if !GLIBTOP_SUID_PROC_KERNEL
|
||||||
glibtop_init_proc_kernel_s,
|
_glibtop_init_proc_kernel_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_SEGMENT
|
#if !GLIBTOP_SUID_PROC_SEGMENT
|
||||||
glibtop_init_proc_segment_s,
|
_glibtop_init_proc_segment_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_ARGS
|
#if !GLIBTOP_SUID_PROC_ARGS
|
||||||
glibtop_init_proc_args_s,
|
_glibtop_init_proc_args_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PROC_MAP
|
#if !GLIBTOP_SUID_PROC_MAP
|
||||||
glibtop_init_proc_map_s,
|
_glibtop_init_proc_map_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_NETLOAD
|
#if !GLIBTOP_SUID_NETLOAD
|
||||||
glibtop_init_netload_s,
|
_glibtop_init_netload_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_NETLIST
|
#if !GLIBTOP_SUID_NETLIST
|
||||||
glibtop_init_netlist_s,
|
_glibtop_init_netlist_s,
|
||||||
|
#endif
|
||||||
|
#if !GLIBTOP_SUID_PROC_WD
|
||||||
|
_glibtop_init_proc_wd_s,
|
||||||
#endif
|
#endif
|
||||||
#if !GLIBTOP_SUID_PPP
|
#if !GLIBTOP_SUID_PPP
|
||||||
glibtop_init_ppp_s,
|
_glibtop_init_ppp_s,
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
const glibtop_init_func_t _glibtop_init_hook_p [] = {
|
const _glibtop_init_func_t _glibtop_init_hook_p [] = {
|
||||||
#if GLIBTOP_SUID_CPU
|
#if GLIBTOP_SUID_CPU
|
||||||
glibtop_init_cpu_p,
|
_glibtop_init_cpu_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_MEM
|
#if GLIBTOP_SUID_MEM
|
||||||
glibtop_init_mem_p,
|
_glibtop_init_mem_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_SWAP
|
#if GLIBTOP_SUID_SWAP
|
||||||
glibtop_init_swap_p,
|
_glibtop_init_swap_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_UPTIME
|
#if GLIBTOP_SUID_UPTIME
|
||||||
glibtop_init_uptime_p,
|
_glibtop_init_uptime_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_LOADAVG
|
#if GLIBTOP_SUID_LOADAVG
|
||||||
glibtop_init_loadavg_p,
|
_glibtop_init_loadavg_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_SHM_LIMITS
|
#if GLIBTOP_SUID_SHM_LIMITS
|
||||||
glibtop_init_shm_limits_p,
|
_glibtop_init_shm_limits_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_MSG_LIMITS
|
#if GLIBTOP_SUID_MSG_LIMITS
|
||||||
glibtop_init_msg_limits_p,
|
_glibtop_init_msg_limits_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_SEM_LIMITS
|
#if GLIBTOP_SUID_SEM_LIMITS
|
||||||
glibtop_init_sem_limits_p,
|
_glibtop_init_sem_limits_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROCLIST
|
#if GLIBTOP_SUID_PROCLIST
|
||||||
glibtop_init_proclist_p,
|
_glibtop_init_proclist_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_STATE
|
#if GLIBTOP_SUID_PROC_STATE
|
||||||
glibtop_init_proc_state_p,
|
_glibtop_init_proc_state_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_UID
|
#if GLIBTOP_SUID_PROC_UID
|
||||||
glibtop_init_proc_uid_p,
|
_glibtop_init_proc_uid_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_MEM
|
#if GLIBTOP_SUID_PROC_MEM
|
||||||
glibtop_init_proc_mem_p,
|
_glibtop_init_proc_mem_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_TIME
|
#if GLIBTOP_SUID_PROC_TIME
|
||||||
glibtop_init_proc_time_p,
|
_glibtop_init_proc_time_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_SIGNAL
|
#if GLIBTOP_SUID_PROC_SIGNAL
|
||||||
glibtop_init_proc_signal_p,
|
_glibtop_init_proc_signal_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_KERNEL
|
#if GLIBTOP_SUID_PROC_KERNEL
|
||||||
glibtop_init_proc_kernel_p,
|
_glibtop_init_proc_kernel_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_SEGMENT
|
#if GLIBTOP_SUID_PROC_SEGMENT
|
||||||
glibtop_init_proc_segment_p,
|
_glibtop_init_proc_segment_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_ARGS
|
#if GLIBTOP_SUID_PROC_ARGS
|
||||||
glibtop_init_proc_args_p,
|
_glibtop_init_proc_args_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PROC_MAP
|
#if GLIBTOP_SUID_PROC_MAP
|
||||||
glibtop_init_proc_map_p,
|
_glibtop_init_proc_map_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_NETLOAD
|
#if GLIBTOP_SUID_NETLOAD
|
||||||
glibtop_init_netload_p,
|
_glibtop_init_netload_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_NETLIST
|
#if GLIBTOP_SUID_NETLIST
|
||||||
glibtop_init_netlist_p,
|
_glibtop_init_netlist_p,
|
||||||
|
#endif
|
||||||
|
#if GLIBTOP_SUID_PROC_WD
|
||||||
|
_glibtop_init_proc_wd_p,
|
||||||
#endif
|
#endif
|
||||||
#if GLIBTOP_SUID_PPP
|
#if GLIBTOP_SUID_PPP
|
||||||
glibtop_init_ppp_p,
|
_glibtop_init_ppp_p,
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|||||||
14
lib/write.c
14
lib/write.c
@@ -1,5 +1,3 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
/* Copyright (C) 1998-99 Martin Baulig
|
||||||
This file is part of LibGTop 1.0.
|
This file is part of LibGTop 1.0.
|
||||||
|
|
||||||
@@ -22,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <glibtop/write.h>
|
#include <glibtop/write.h>
|
||||||
#include <glibtop/error.h>
|
#include <glibtop/error.h>
|
||||||
#include <glib/gi18n-lib.h>
|
#include <glib/gi18n-lib.h>
|
||||||
@@ -33,6 +31,7 @@ void
|
|||||||
glibtop_write_l (glibtop *server, size_t size, void *buf)
|
glibtop_write_l (glibtop *server, size_t size, void *buf)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
int fd;
|
||||||
|
|
||||||
glibtop_init_r (&server, 0, 0);
|
glibtop_init_r (&server, 0, 0);
|
||||||
|
|
||||||
@@ -42,11 +41,10 @@ glibtop_write_l (glibtop *server, size_t size, void *buf)
|
|||||||
fprintf (stderr, "LIBRARY: really writing %d bytes.\n", (int)size);
|
fprintf (stderr, "LIBRARY: really writing %d bytes.\n", (int)size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (server->socket) {
|
fd = server->socket ? server->socket : server->output[1];
|
||||||
ret = send (server->socket, buf, size, 0);
|
|
||||||
} else {
|
while ((ret = write(fd, buf, size)) < 0 && errno == EINTR)
|
||||||
ret = write (server->output [1], buf, size);
|
;
|
||||||
}
|
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
glibtop_error_io_r (server,
|
glibtop_error_io_r (server,
|
||||||
|
|||||||
@@ -18,19 +18,22 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
|||||||
AC_SUBST(libgtop_need_server)
|
AC_SUBST(libgtop_need_server)
|
||||||
|
|
||||||
AC_ARG_WITH(libgtop-examples,
|
AC_ARG_WITH(libgtop-examples,
|
||||||
[ --with-libgtop-examples Build the libgtop examples (default=no)],[
|
AS_HELP_STRING([--with-examples],
|
||||||
build_examples="$withval"], [build_examples=no])
|
[Build the libgtop examples @<:@default=yes@:>@]),[
|
||||||
|
build_examples="$withval"], [build_examples=yes])
|
||||||
|
|
||||||
AM_CONDITIONAL(EXAMPLES, test x"$build_examples" = xyes)
|
AM_CONDITIONAL(EXAMPLES, test x"$build_examples" = xyes)
|
||||||
|
|
||||||
AC_ARG_ENABLE(hacker-mode,
|
AC_ARG_ENABLE(hacker-mode,
|
||||||
[ --enable-hacker-mode Enable building of unstable sysdeps],
|
AS_HELP_STRING([--enable-hacker-mode],
|
||||||
|
[Enable building of unstable sysdeps]),
|
||||||
[hacker_mode="$enableval"], [hacker_mode=no])
|
[hacker_mode="$enableval"], [hacker_mode=no])
|
||||||
|
|
||||||
AM_CONDITIONAL(HACKER_MODE, test x"$hacker_mode" = xyes)
|
AM_CONDITIONAL(HACKER_MODE, test x"$hacker_mode" = xyes)
|
||||||
|
|
||||||
AC_ARG_WITH(libgtop-smp,
|
AC_ARG_WITH(libgtop-smp,
|
||||||
[ --with-libgtop-smp Enable SMP support (default-auto)],[
|
AS_HELP_STRING([--with-libgtop-smp],
|
||||||
|
[Enable SMP support @<:@default-auto@:>@]),[
|
||||||
libgtop_smp="$withval"],[libgtop_smp=auto])
|
libgtop_smp="$withval"],[libgtop_smp=auto])
|
||||||
|
|
||||||
if test $libgtop_smp = auto ; then
|
if test $libgtop_smp = auto ; then
|
||||||
@@ -60,15 +63,21 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
|||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux*)
|
linux*)
|
||||||
libgtop_sysdeps_dir=linux
|
libgtop_sysdeps_dir=linux
|
||||||
libgtop_use_machine_h=no
|
libgtop_use_machine_h=yes
|
||||||
libgtop_have_sysinfo=yes
|
libgtop_have_sysinfo=yes
|
||||||
libgtop_need_server=no
|
libgtop_need_server=yes
|
||||||
;;
|
;;
|
||||||
freebsd*|netbsd*|openbsd*|bsdi*)
|
netbsd*|openbsd*|bsdi*)
|
||||||
|
libgtop_sysdeps_dir=bsd
|
||||||
|
libgtop_use_machine_h=yes
|
||||||
|
libgtop_need_server=yes
|
||||||
|
libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2755 $(bindir)/libgtop_server2'
|
||||||
|
;;
|
||||||
|
freebsd*|kfreebsd*)
|
||||||
libgtop_sysdeps_dir=freebsd
|
libgtop_sysdeps_dir=freebsd
|
||||||
libgtop_use_machine_h=yes
|
libgtop_use_machine_h=yes
|
||||||
libgtop_need_server=yes
|
libgtop_need_server=yes
|
||||||
libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
|
libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2755 $(bindir)/libgtop_server2'
|
||||||
;;
|
;;
|
||||||
solaris*)
|
solaris*)
|
||||||
libgtop_sysdeps_dir=solaris
|
libgtop_sysdeps_dir=solaris
|
||||||
@@ -122,9 +131,29 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
|||||||
|
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
*bsd*)
|
*bsd*)
|
||||||
AC_CHECK_LIB(kvm, kvm_open, KVM_LIBS=-lkvm, KVM_LIBS=)
|
case "$host_os" in
|
||||||
|
*kfreebsd*)
|
||||||
|
AC_CHECK_LIB(kvm, kvm_open, KVM_LIBS="-lkvm -lfreebsd -lbsd", KVM_LIBS=, -lfreebsd -lbsd);;
|
||||||
|
*)
|
||||||
|
AC_CHECK_LIB(kvm, kvm_open, KVM_LIBS=-lkvm, KVM_LIBS=);;
|
||||||
|
esac
|
||||||
|
|
||||||
AC_SUBST(KVM_LIBS)
|
AC_SUBST(KVM_LIBS)
|
||||||
|
|
||||||
|
case "$host_os" in
|
||||||
|
kfreebsd*)
|
||||||
|
EXTRA_SYSDEPS_LIBS="-lgeom -ldevstat"
|
||||||
|
;;
|
||||||
|
freebsd*)
|
||||||
|
osreldate=`sysctl -n kern.osreldate 2>/dev/null`
|
||||||
|
if test -n "${osreldate}" && test ${osreldate} -ge 600000 ; then
|
||||||
|
EXTRA_SYSDEPS_LIBS="-lgeom -ldevstat"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
AC_SUBST(EXTRA_SYSDEPS_LIBS)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(net/if_var.h)
|
AC_CHECK_HEADERS(net/if_var.h)
|
||||||
AC_MSG_CHECKING([for I4B])
|
AC_MSG_CHECKING([for I4B])
|
||||||
AC_TRY_COMPILE([
|
AC_TRY_COMPILE([
|
||||||
@@ -141,7 +170,7 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
|||||||
#include <net/netisr.h>
|
#include <net/netisr.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)
|
||||||
#include <net/if_sppp.h>
|
#include <net/if_sppp.h>
|
||||||
#else
|
#else
|
||||||
#include <i4b/sppp/if_sppp.h>
|
#include <i4b/sppp/if_sppp.h>
|
||||||
@@ -167,7 +196,7 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
|||||||
#include <net/netisr.h>
|
#include <net/netisr.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)
|
||||||
#include <net/if_sppp.h>
|
#include <net/if_sppp.h>
|
||||||
#else
|
#else
|
||||||
#include <i4b/sppp/if_sppp.h>
|
#include <i4b/sppp/if_sppp.h>
|
||||||
@@ -194,6 +223,7 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
|
|||||||
msginfo_needs=
|
msginfo_needs=
|
||||||
for def in nothing KERNEL _KERNEL; do
|
for def in nothing KERNEL _KERNEL; do
|
||||||
AC_COMPILE_IFELSE([#define $def
|
AC_COMPILE_IFELSE([#define $def
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
#include <sys/msg.h>
|
#include <sys/msg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -59,12 +59,12 @@ Examples for LibGTop.
|
|||||||
%build
|
%build
|
||||||
# Needed for snapshot releases.
|
# Needed for snapshot releases.
|
||||||
if [ ! -f configure ]; then
|
if [ ! -f configure ]; then
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-examples --with-libgtop-smp
|
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --without-linux-table --with-libgtop-examples --with-libgtop-smp
|
||||||
else
|
else
|
||||||
%ifarch alpha
|
%ifarch alpha
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-examples --with-libgtop-smp
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-examples --with-libgtop-smp
|
||||||
%else
|
%else
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-examples --with-libgtop-smp
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --without-linux-table --with-libgtop-examples --with-libgtop-smp
|
||||||
%endif
|
%endif
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
Makefile.in
|
|
||||||
Makefile
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
*.gmo
|
|
||||||
*.mo
|
|
||||||
*.pot
|
|
||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
Makefile.in.in
|
|
||||||
POTFILES
|
|
||||||
cat-id-tbl.c
|
|
||||||
messages
|
|
||||||
missing
|
|
||||||
notexist
|
|
||||||
po2tbl.sed
|
|
||||||
po2tbl.sed.in
|
|
||||||
stamp-cat-id
|
|
||||||
83
po/ChangeLog
83
po/ChangeLog
@@ -1,3 +1,86 @@
|
|||||||
|
2007-06-23 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
|
* nb.po: Updated Norwegian bokmål translation.
|
||||||
|
|
||||||
|
2007-06-13 Pema Geyleg <pema.geyleg@gmail.com>
|
||||||
|
|
||||||
|
* dz.po: Updated dzongkha translation.
|
||||||
|
|
||||||
|
2007-05-27 Daniel Nylander <po@danielnylander.se>
|
||||||
|
|
||||||
|
* sv.po: Updated Swedish translation.
|
||||||
|
|
||||||
|
2007-05-18 Theppitak Karoonboonyanan <thep@linux.thai.net>
|
||||||
|
|
||||||
|
* th.po: Updated Thai translation.
|
||||||
|
|
||||||
|
2007-05-17 Priit Laes <plaes@svn.gnome.org>
|
||||||
|
|
||||||
|
* et.po: Updated Estonian translation by Ivar Smolin <okul@linux.ee>.
|
||||||
|
|
||||||
|
2007-05-15 David Lodge <dave@cirt.net>
|
||||||
|
|
||||||
|
* en_GB.po: Updated British English translation
|
||||||
|
|
||||||
|
2007-05-14 Jorge Gonzalez <jorgegonz@svn.gnome.org>
|
||||||
|
|
||||||
|
* es.po: Updated Spanish translation.
|
||||||
|
|
||||||
|
2007-04-27 I Felix <ifelix25@gmail.com>
|
||||||
|
|
||||||
|
* ta.po: Updated Tamil Translation.
|
||||||
|
|
||||||
|
2007-04-25 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* ta.po: Updated Tamil translation.
|
||||||
|
Translated by Senthil Kumar <senthil0627@gmail.com>.
|
||||||
|
|
||||||
|
2007-03-25 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
|
||||||
|
|
||||||
|
* gl.po: Updated Galician Translation.
|
||||||
|
|
||||||
|
2007-03-03 Artur Flinta <aflinta@svn.gnome.org>
|
||||||
|
|
||||||
|
* pl.po: Updated Polish translation by GNOME PL Team.
|
||||||
|
|
||||||
|
2007-02-27 Gintautas Miliauskas <gintas@akl.lt>
|
||||||
|
|
||||||
|
* lt.po: Updated Lithuanian translation.
|
||||||
|
|
||||||
|
2006-02-20 Maxim Dziumanenko <dziumanenko@gmail.com>
|
||||||
|
|
||||||
|
* uk.po: Updated Ukrainian translation.
|
||||||
|
|
||||||
|
2006-12-1 Djihed Afifi <djihed@gmail.com>
|
||||||
|
|
||||||
|
* ar.po: Updated Arabic Translation.
|
||||||
|
|
||||||
|
2006-11-19 Wouter Bolsterlee <wbolster@cvs.gnome.org>
|
||||||
|
|
||||||
|
* pl.po: Translation updated by GNOME PL Team.
|
||||||
|
|
||||||
|
2006-11-18 Djihed Afifi <djihed@gmail.com>
|
||||||
|
|
||||||
|
* ar.po: Updated Arabic Translation.
|
||||||
|
|
||||||
|
2006-10-30 Djihed Afifi <djihed@gmail.com>
|
||||||
|
|
||||||
|
* ar.po Updated Arabic Translation.
|
||||||
|
|
||||||
|
2006-10-30 Satoru SATOH <ss@gnome.gr.jp>
|
||||||
|
|
||||||
|
* ja.po: Fixed wrong plural form entries.
|
||||||
|
|
||||||
|
2006-09-21 Pawan Chitrakar <pchitrakar@gmail.com>
|
||||||
|
|
||||||
|
* ne.po: Updated Nepali Translation
|
||||||
|
|
||||||
|
2006-09-19 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
|
||||||
|
|
||||||
|
* te.po: Added Telugu "te" translation done by
|
||||||
|
Sree Ganesh <mrthottempudi@yahoo.com>.
|
||||||
|
* LINGUAS: Added "te".
|
||||||
|
|
||||||
2006-09-01 Runa Bhattacharjee <runabh@gmail.com>
|
2006-09-01 Runa Bhattacharjee <runabh@gmail.com>
|
||||||
|
|
||||||
* bn_IN.po: Fixed some typos.
|
* bn_IN.po: Fixed some typos.
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ nb
|
|||||||
ne
|
ne
|
||||||
nl
|
nl
|
||||||
nn
|
nn
|
||||||
|
oc
|
||||||
or
|
or
|
||||||
pa
|
pa
|
||||||
pl
|
pl
|
||||||
@@ -65,6 +66,7 @@ sr
|
|||||||
sr@Latn
|
sr@Latn
|
||||||
sv
|
sv
|
||||||
ta
|
ta
|
||||||
|
te
|
||||||
th
|
th
|
||||||
tr
|
tr
|
||||||
uk
|
uk
|
||||||
|
|||||||
@@ -15,8 +15,6 @@ src/daemon/main.c
|
|||||||
src/daemon/server.c
|
src/daemon/server.c
|
||||||
src/daemon/slave.c
|
src/daemon/slave.c
|
||||||
src/daemon/version.c
|
src/daemon/version.c
|
||||||
src/inodedb/file_by_inode2.c
|
|
||||||
src/inodedb/mkinodedb2.c
|
|
||||||
sysdeps/linux/siglist.c
|
sysdeps/linux/siglist.c
|
||||||
sysdeps/osf1/siglist.c
|
sysdeps/osf1/siglist.c
|
||||||
sysdeps/sun4/siglist.c
|
sysdeps/sun4/siglist.c
|
||||||
|
|||||||
210
po/ar.po
210
po/ar.po
@@ -1,51 +1,49 @@
|
|||||||
# translation of libgtop.po to Arabic
|
# translation of libgtop.HEAD.ar.po to Arabic
|
||||||
# translation of libgtop.libgtop-GNOME-2-0-port.ar.po to Arabic
|
|
||||||
# This file is distributed under the same license as the PACKAGE package.
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
|
||||||
|
#
|
||||||
# Arafat Medini <lumina@silverpen.de>, 2002,2003.
|
# Arafat Medini <lumina@silverpen.de>, 2002,2003.
|
||||||
# Isam Bayazidi <bayazidi@arabeyes.org>, 2002.
|
# Isam Bayazidi <bayazidi@arabeyes.org>, 2002.
|
||||||
# Abdulaziz Al-Arfaj <alarfaj0@yahoo.com>, 2004.
|
# Abdulaziz Al-Arfaj <alarfaj0@yahoo.com>, 2004.
|
||||||
#
|
# Khaled Hosny <khaledhosny@eglug.org>, 2006.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: libgtop\n"
|
"Project-Id-Version: libgtop.HEAD.ar\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2005-09-25 18:15+0200\n"
|
"POT-Creation-Date: 2006-07-23 08:51+0200\n"
|
||||||
"PO-Revision-Date: 2004-09-04 17:52+0300\n"
|
"PO-Revision-Date: 2006-11-25 15:36+0200\n"
|
||||||
"Last-Translator: Abdulaziz Al-Arfaj <alarfaj0@yahoo.com>\n"
|
"Last-Translator: Khaled Hosny <khaledhosny@eglug.org>\n"
|
||||||
"Language-Team: Arabic <support@arabeyes.org>\n"
|
"Language-Team: Arabic <support@arabeyes.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Generator: KBabel 1.3\n"
|
"X-Generator: KBabel 1.11.4\n"
|
||||||
"Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n>=3 && n<=10 ? 2 : "
|
"Plural-Forms: Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n>=3 && n<=10 ? 2 : 3\n"
|
||||||
"3\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: lib/read.c:65
|
#: ../lib/read.c:65
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "read %d byte"
|
msgid "read %d byte"
|
||||||
msgid_plural "read %d bytes"
|
msgid_plural "read %d bytes"
|
||||||
msgstr[0] "قراءة بايت واحدة"
|
msgstr[0] "اقرأ بايت واحدة"
|
||||||
msgstr[1] "قراءة بايتين"
|
msgstr[1] "اقرأ بايتين"
|
||||||
msgstr[2] "قراءة %d بايتات"
|
msgstr[2] "اقرأ %d بايتات"
|
||||||
msgstr[3] "قراءة %d بايت"
|
msgstr[3] "اقرأ %d بايت"
|
||||||
|
|
||||||
#: lib/read_data.c:53
|
#: ../lib/read_data.c:53
|
||||||
msgid "read data size"
|
msgid "read data size"
|
||||||
msgstr "قراءت حجم البيانات"
|
msgstr "اقرأ حجم البيانات"
|
||||||
|
|
||||||
#: lib/read_data.c:72
|
#: ../lib/read_data.c:72
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "read %lu byte of data"
|
msgid "read %lu byte of data"
|
||||||
msgid_plural "read %lu bytes of data"
|
msgid_plural "read %lu bytes of data"
|
||||||
msgstr[0] "قراءة بايت واحدة"
|
msgstr[0] "اقرأ بايت واحدة "
|
||||||
msgstr[1] "قراءة بايتين"
|
msgstr[1] "اقرأ بايتين"
|
||||||
msgstr[2] "قراءة %d بايتات"
|
msgstr[2] "اقرأ %lu بايتات"
|
||||||
msgstr[3] "قراءة %d بايت"
|
msgstr[3] "اقرأ %lu بايت"
|
||||||
|
|
||||||
#: lib/write.c:52
|
#: ../lib/write.c:53
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "wrote %d byte"
|
msgid "wrote %d byte"
|
||||||
msgid_plural "wrote %d bytes"
|
msgid_plural "wrote %d bytes"
|
||||||
msgstr[0] "كتابة بايت واحدة"
|
msgstr[0] "كتابة بايت واحدة"
|
||||||
@@ -53,167 +51,199 @@ msgstr[1] "كتابة بايتين"
|
|||||||
msgstr[2] "كتابة %d بايتات"
|
msgstr[2] "كتابة %d بايتات"
|
||||||
msgstr[3] "كتابة %d بايت"
|
msgstr[3] "كتابة %d بايت"
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:460
|
#: ../src/daemon/gnuserv.c:460
|
||||||
msgid "Enable debugging"
|
msgid "Enable debugging"
|
||||||
msgstr "تفعيل التنقيح"
|
msgstr "فعّل التنقيح"
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:460
|
#: ../src/daemon/gnuserv.c:460
|
||||||
msgid "DEBUG"
|
msgid "DEBUG"
|
||||||
msgstr "تنقيح"
|
msgstr "DEBUG"
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:462
|
#: ../src/daemon/gnuserv.c:462
|
||||||
msgid "Enable verbose output"
|
msgid "Enable verbose output"
|
||||||
msgstr "تمكين اخراج مسهب"
|
msgstr "فعّل خرْج مسهِب"
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:462
|
#: ../src/daemon/gnuserv.c:462
|
||||||
msgid "VERBOSE"
|
msgid "VERBOSE"
|
||||||
msgstr "مضجر"
|
msgstr "VERBOSE"
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:464
|
#: ../src/daemon/gnuserv.c:464
|
||||||
msgid "Don't fork into background"
|
msgid "Don't fork into background"
|
||||||
msgstr "لا تشعّب إلى الخلفية"
|
msgstr "لا تشعّب إلى الخلفية"
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:464
|
#: ../src/daemon/gnuserv.c:464
|
||||||
msgid "NO-DAEMON"
|
msgid "NO-DAEMON"
|
||||||
msgstr "لا-جنّي"
|
msgstr "NO-DAEMON"
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:466
|
#: ../src/daemon/gnuserv.c:466
|
||||||
msgid "Invoked from inetd"
|
msgid "Invoked from inetd"
|
||||||
msgstr "استُحضرت من inetd "
|
msgstr "استُحضرت من inetd "
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:466
|
#: ../src/daemon/gnuserv.c:466
|
||||||
msgid "INETD"
|
msgid "INETD"
|
||||||
msgstr "INETD"
|
msgstr "INETD"
|
||||||
|
|
||||||
#: src/daemon/gnuserv.c:500
|
#: ../src/daemon/gnuserv.c:500
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error on option %s: %s.\n"
|
"Error on option %s: %s.\n"
|
||||||
"Run '%s --help' to see a full list of available command line options.\n"
|
"Run '%s --help' to see a full list of available command line options.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"خطأ عند الخيار %s: %s.\n"
|
"خطأ عند الخيار %s: %s.\n"
|
||||||
"فعل '%s --help' لرئية قائمة كاملة لخيارات سطر الأوامر.\n"
|
"شغّل '%s --help' لرئية قائمة كاملة لخيارات سطر الأوامر.\n"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
|
#: ../sysdeps/osf1/siglist.c:29
|
||||||
|
#: ../sysdeps/sun4/siglist.c:29
|
||||||
msgid "Hangup"
|
msgid "Hangup"
|
||||||
msgstr "أغلاق الخط"
|
msgstr "علق"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
|
#: ../sysdeps/osf1/siglist.c:30
|
||||||
|
#: ../sysdeps/sun4/siglist.c:30
|
||||||
msgid "Interrupt"
|
msgid "Interrupt"
|
||||||
msgstr "مقاطعة"
|
msgstr "قاطِع"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
|
#: ../sysdeps/osf1/siglist.c:31
|
||||||
|
#: ../sysdeps/sun4/siglist.c:31
|
||||||
msgid "Quit"
|
msgid "Quit"
|
||||||
msgstr "خروج"
|
msgstr "اخرج"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
|
#: ../sysdeps/osf1/siglist.c:32
|
||||||
|
#: ../sysdeps/sun4/siglist.c:32
|
||||||
msgid "Illegal instruction"
|
msgid "Illegal instruction"
|
||||||
msgstr "توجيه ممنوع"
|
msgstr "توجيه ممنوع"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
|
#: ../sysdeps/osf1/siglist.c:33
|
||||||
|
#: ../sysdeps/sun4/siglist.c:33
|
||||||
msgid "Trace trap"
|
msgid "Trace trap"
|
||||||
msgstr "فخ رسم"
|
msgstr "فخ رسم"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
|
#: ../sysdeps/osf1/siglist.c:34
|
||||||
|
#: ../sysdeps/sun4/siglist.c:34
|
||||||
msgid "Abort"
|
msgid "Abort"
|
||||||
msgstr "ايقاف"
|
msgstr "اجهض"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
|
#: ../sysdeps/osf1/siglist.c:35
|
||||||
|
#: ../sysdeps/sun4/siglist.c:35
|
||||||
msgid "EMT error"
|
msgid "EMT error"
|
||||||
msgstr "خطأ EMT"
|
msgstr "خطأ EMT"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
|
#: ../sysdeps/osf1/siglist.c:36
|
||||||
|
#: ../sysdeps/sun4/siglist.c:36
|
||||||
msgid "Floating-point exception"
|
msgid "Floating-point exception"
|
||||||
msgstr "استثناء Floating-point"
|
msgstr "استثناء أرقام عشرية"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
|
#: ../sysdeps/osf1/siglist.c:37
|
||||||
|
#: ../sysdeps/sun4/siglist.c:37
|
||||||
msgid "Kill"
|
msgid "Kill"
|
||||||
msgstr "قتل"
|
msgstr "اقتل"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
|
#: ../sysdeps/osf1/siglist.c:38
|
||||||
|
#: ../sysdeps/sun4/siglist.c:38
|
||||||
msgid "Bus error"
|
msgid "Bus error"
|
||||||
msgstr "خطأ باص"
|
msgstr "خطأ ناقل"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
|
#: ../sysdeps/osf1/siglist.c:39
|
||||||
|
#: ../sysdeps/sun4/siglist.c:39
|
||||||
msgid "Segmentation violation"
|
msgid "Segmentation violation"
|
||||||
msgstr "انتهاك اﻻنقسام"
|
msgstr "انتهاك اﻻنقسام"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
|
#: ../sysdeps/osf1/siglist.c:40
|
||||||
|
#: ../sysdeps/sun4/siglist.c:40
|
||||||
msgid "Bad argument to system call"
|
msgid "Bad argument to system call"
|
||||||
msgstr "متغيّر سيء عند نداء النظام"
|
msgstr "متغيّر سيء لنداء النظام"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
|
#: ../sysdeps/osf1/siglist.c:41
|
||||||
|
#: ../sysdeps/sun4/siglist.c:41
|
||||||
msgid "Broken pipe"
|
msgid "Broken pipe"
|
||||||
msgstr "انبوب مكسور"
|
msgstr "أنبوب مكسور"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
|
#: ../sysdeps/osf1/siglist.c:42
|
||||||
|
#: ../sysdeps/sun4/siglist.c:42
|
||||||
msgid "Alarm clock"
|
msgid "Alarm clock"
|
||||||
msgstr "ساعة منبهة"
|
msgstr "ساعة منبهة"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
|
#: ../sysdeps/osf1/siglist.c:43
|
||||||
|
#: ../sysdeps/sun4/siglist.c:43
|
||||||
msgid "Termination"
|
msgid "Termination"
|
||||||
msgstr "إنهاء"
|
msgstr "إنهاء"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
|
#: ../sysdeps/osf1/siglist.c:44
|
||||||
|
#: ../sysdeps/sun4/siglist.c:44
|
||||||
msgid "Urgent condition on socket"
|
msgid "Urgent condition on socket"
|
||||||
msgstr "حالة استعجالية عند نقطة الاتصال"
|
msgstr "حالة عاجلة عند المقبس"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
|
#: ../sysdeps/osf1/siglist.c:45
|
||||||
|
#: ../sysdeps/sun4/siglist.c:45
|
||||||
msgid "Stop"
|
msgid "Stop"
|
||||||
msgstr "توقّف"
|
msgstr "قف"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
|
#: ../sysdeps/osf1/siglist.c:46
|
||||||
|
#: ../sysdeps/sun4/siglist.c:46
|
||||||
msgid "Keyboard stop"
|
msgid "Keyboard stop"
|
||||||
msgstr "توقيف لوحة المفاتيح"
|
msgstr "أوقف لوحة المفاتيح"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
|
#: ../sysdeps/osf1/siglist.c:47
|
||||||
|
#: ../sysdeps/sun4/siglist.c:47
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "متابعة"
|
msgstr "تابع"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
|
#: ../sysdeps/osf1/siglist.c:48
|
||||||
|
#: ../sysdeps/sun4/siglist.c:48
|
||||||
msgid "Child status has changed"
|
msgid "Child status has changed"
|
||||||
msgstr "تغيرت حالة الابن"
|
msgstr "تغيرت حالة الابن"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
|
#: ../sysdeps/osf1/siglist.c:49
|
||||||
|
#: ../sysdeps/sun4/siglist.c:49
|
||||||
msgid "Background read from tty"
|
msgid "Background read from tty"
|
||||||
msgstr "قراءة خلفية من tty"
|
msgstr "قراءة من tty في الخلفية"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
|
#: ../sysdeps/osf1/siglist.c:50
|
||||||
|
#: ../sysdeps/sun4/siglist.c:50
|
||||||
msgid "Background write to tty"
|
msgid "Background write to tty"
|
||||||
msgstr "كتابة خلفية لـ tty"
|
msgstr "كتابة لـ tty في الخلفية"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
|
#: ../sysdeps/osf1/siglist.c:51
|
||||||
|
#: ../sysdeps/sun4/siglist.c:51
|
||||||
msgid "I/O now possible"
|
msgid "I/O now possible"
|
||||||
msgstr "ادخال/اخراج ممكن الآن"
|
msgstr "دخْل/خرْج ممكن الآن"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
|
#: ../sysdeps/osf1/siglist.c:52
|
||||||
|
#: ../sysdeps/sun4/siglist.c:52
|
||||||
msgid "CPU limit exceeded"
|
msgid "CPU limit exceeded"
|
||||||
msgstr "تجاوز حد الـمعالج"
|
msgstr "تجاوز حد الـمعالج"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
|
#: ../sysdeps/osf1/siglist.c:53
|
||||||
|
#: ../sysdeps/sun4/siglist.c:53
|
||||||
msgid "File size limit exceeded"
|
msgid "File size limit exceeded"
|
||||||
msgstr "تجاوز حد حجم الملف"
|
msgstr "تجاوز حد حجم الملف"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
|
#: ../sysdeps/osf1/siglist.c:54
|
||||||
|
#: ../sysdeps/sun4/siglist.c:54
|
||||||
msgid "Virtual alarm clock"
|
msgid "Virtual alarm clock"
|
||||||
msgstr "ساعة تنبيه تخيّلية"
|
msgstr "ساعة تنبيه تخيّلية"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
|
#: ../sysdeps/osf1/siglist.c:55
|
||||||
|
#: ../sysdeps/sun4/siglist.c:55
|
||||||
msgid "Profiling alarm clock"
|
msgid "Profiling alarm clock"
|
||||||
msgstr "كتابة لمحة عن ساعة التنبيه"
|
msgstr "كتابة لمحة عن ساعة التنبيه"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
|
#: ../sysdeps/osf1/siglist.c:56
|
||||||
|
#: ../sysdeps/sun4/siglist.c:56
|
||||||
msgid "Window size change"
|
msgid "Window size change"
|
||||||
msgstr "تغير حجم النافذة"
|
msgstr "تغير حجم النافذة"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
|
#: ../sysdeps/osf1/siglist.c:57
|
||||||
|
#: ../sysdeps/sun4/siglist.c:57
|
||||||
msgid "Information request"
|
msgid "Information request"
|
||||||
msgstr "طلب معلومات"
|
msgstr "طلب معلومات"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
|
#: ../sysdeps/osf1/siglist.c:58
|
||||||
|
#: ../sysdeps/sun4/siglist.c:58
|
||||||
msgid "User defined signal 1"
|
msgid "User defined signal 1"
|
||||||
msgstr "اشارة معرفة من طرف المستخدم 1"
|
msgstr "اشارة 1 معرفة من طرف المستخدم"
|
||||||
|
|
||||||
#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
|
#: ../sysdeps/osf1/siglist.c:59
|
||||||
|
#: ../sysdeps/sun4/siglist.c:59
|
||||||
msgid "User defined signal 2"
|
msgid "User defined signal 2"
|
||||||
msgstr "اشارة معرفة من طرف المستخدم 2"
|
msgstr "اشارة 2 معرفة من طرف المستخدم"
|
||||||
|
|
||||||
|
|||||||
140
po/dz.po
140
po/dz.po
@@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: libgtop.HEAD\n"
|
"Project-Id-Version: libgtop.HEAD\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2006-03-06 05:23+0100\n"
|
"POT-Creation-Date: 2007-05-14 03:41+0100\n"
|
||||||
"PO-Revision-Date: 2006-03-28 11:12-0500\n"
|
"PO-Revision-Date: 2006-03-28 11:12-0500\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: <en@li.org>\n"
|
"Language-Team: <en@li.org>\n"
|
||||||
@@ -19,224 +19,186 @@ msgstr ""
|
|||||||
"X-Poedit-SourceCharset: utf-8\n"
|
"X-Poedit-SourceCharset: utf-8\n"
|
||||||
"X-Generator: KBabel 1.10.2\n"
|
"X-Generator: KBabel 1.10.2\n"
|
||||||
|
|
||||||
#: ../lib/read.c:65
|
#: ../lib/read.c:51
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "read %d byte"
|
msgid "read %d byte"
|
||||||
msgid_plural "read %d bytes"
|
msgid_plural "read %d bytes"
|
||||||
msgstr[0] "བའིཊི་ %d ལྷག"
|
msgstr[0] "བའིཊི་ %d ལྷག"
|
||||||
msgstr[1] "བའིཊི་ %d ལྷག"
|
msgstr[1] "བའིཊི་ %d ལྷག"
|
||||||
|
|
||||||
#: ../lib/read_data.c:53
|
#: ../lib/read_data.c:51
|
||||||
msgid "read data size"
|
msgid "read data size"
|
||||||
msgstr "གནད་སྡུད་ཀྱི་ཚད་ལྷག"
|
msgstr "གནད་སྡུད་ཀྱི་ཚད་ལྷག"
|
||||||
|
|
||||||
#: ../lib/read_data.c:72
|
#: ../lib/read_data.c:70
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "read %lu byte of data"
|
msgid "read %lu byte of data"
|
||||||
msgid_plural "read %lu bytes of data"
|
msgid_plural "read %lu bytes of data"
|
||||||
msgstr[0] "གནས་སྡུད་ བའིཊི་ %lu ལྷག"
|
msgstr[0] "གནས་སྡུད་ བའིཊི་ %lu ལྷག"
|
||||||
msgstr[1] "གནས་སྡུད་ བའིཊི་ %lu ལྷག"
|
msgstr[1] "གནས་སྡུད་ བའིཊི་ %lu ལྷག"
|
||||||
|
|
||||||
#: ../lib/write.c:52
|
#: ../lib/write.c:51
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "wrote %d byte"
|
msgid "wrote %d byte"
|
||||||
msgid_plural "wrote %d bytes"
|
msgid_plural "wrote %d bytes"
|
||||||
msgstr[0] "བའིཊི་ %d བྲིས་ཡི། "
|
msgstr[0] "བའིཊི་ %d བྲིས་ཡི། "
|
||||||
msgstr[1] "བའིཊི་ %d བྲིས་ཡི།"
|
msgstr[1] "བའིཊི་ %d བྲིས་ཡི།"
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:460
|
#: ../src/daemon/gnuserv.c:458
|
||||||
msgid "Enable debugging"
|
msgid "Enable debugging"
|
||||||
msgstr "རྐྱེན་སེལ་འབད་ནི་ ལྕོགས་ཅན་བཟོ།"
|
msgstr "རྐྱེན་སེལ་འབད་ནི་ ལྕོགས་ཅན་བཟོ།"
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:460
|
#: ../src/daemon/gnuserv.c:460
|
||||||
msgid "DEBUG"
|
|
||||||
msgstr "རྐྱེན་སེལ།"
|
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:462
|
|
||||||
msgid "Enable verbose output"
|
msgid "Enable verbose output"
|
||||||
msgstr "ཚིག་མང་ཨའུཊི་པུཊི་ ལྕོགས་ཅན་བཟོ།"
|
msgstr "ཚིག་མང་ཨའུཊི་པུཊི་ ལྕོགས་ཅན་བཟོ།"
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:462
|
#: ../src/daemon/gnuserv.c:462
|
||||||
msgid "VERBOSE"
|
|
||||||
msgstr "ཚིག་མང་།"
|
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:464
|
|
||||||
msgid "Don't fork into background"
|
msgid "Don't fork into background"
|
||||||
msgstr "རྒྱབ་གཞིའི་ནང་ ཁ་མ་སྤེལ།"
|
msgstr "རྒྱབ་གཞིའི་ནང་ ཁ་མ་སྤེལ།"
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:464
|
#: ../src/daemon/gnuserv.c:464
|
||||||
msgid "NO-DAEMON"
|
|
||||||
msgstr "ཌེ་མཱོན་མིན་འདུག"
|
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:466
|
|
||||||
msgid "Invoked from inetd"
|
msgid "Invoked from inetd"
|
||||||
msgstr "ཨའི་ཨེན་ཨི་ཊི་ཌི་ནང་ལས་ ལས་བཀོལ་འབད།"
|
msgstr "ཨའི་ཨེན་ཨི་ཊི་ཌི་ནང་ལས་ ལས་བཀོལ་འབད།"
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:466
|
#: ../src/daemon/gnuserv.c:498
|
||||||
msgid "INETD"
|
#, fuzzy, c-format
|
||||||
msgstr "ཨའི་ཨེན་ཨི་ཊི་ཌི།"
|
msgid "Run '%s --help' to see a full list of available command line options.\n"
|
||||||
|
|
||||||
#: ../src/daemon/gnuserv.c:500
|
|
||||||
#, c-format
|
|
||||||
msgid ""
|
|
||||||
"Error on option %s: %s.\n"
|
|
||||||
"Run '%s --help' to see a full list of available command line options.\n"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"གདམ་ཁ་%s: %sལུ་འཛོལ་བ། \n"
|
"གདམ་ཁ་%s: %sལུ་འཛོལ་བ། \n"
|
||||||
"འཐོབ་ཚུགས་པའི་ བརྡ་ལམ་གདམ་ཁའི་ ཐོ་ཡིག་ཧྲིལ་བུ་ཅིག་ལུ་ བལྟ་ནིའི་དོན་ལས་ '%s --help' གཡོག་བཀོལ།\n"
|
"འཐོབ་ཚུགས་པའི་ བརྡ་ལམ་གདམ་ཁའི་ ཐོ་ཡིག་ཧྲིལ་བུ་ཅིག་ལུ་ བལྟ་ནིའི་དོན་ལས་ '%s --help' གཡོག་བཀོལ།\n"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:28
|
#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
|
||||||
#: ../sysdeps/sun4/siglist.c:28
|
|
||||||
msgid "Hangup"
|
msgid "Hangup"
|
||||||
msgstr "ཐོགས་རྐྱེན།"
|
msgstr "ཐོགས་རྐྱེན།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:29
|
#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
|
||||||
#: ../sysdeps/sun4/siglist.c:29
|
|
||||||
msgid "Interrupt"
|
msgid "Interrupt"
|
||||||
msgstr "བར་ཆད།"
|
msgstr "བར་ཆད།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:30
|
#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
|
||||||
#: ../sysdeps/sun4/siglist.c:30
|
|
||||||
msgid "Quit"
|
msgid "Quit"
|
||||||
msgstr "སྤངས།"
|
msgstr "སྤངས།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:31
|
#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
|
||||||
#: ../sysdeps/sun4/siglist.c:31
|
|
||||||
msgid "Illegal instruction"
|
msgid "Illegal instruction"
|
||||||
msgstr "ཁྲིམས་འགལ་བཀོད་རྒྱ།"
|
msgstr "ཁྲིམས་འགལ་བཀོད་རྒྱ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:32
|
#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
|
||||||
#: ../sysdeps/sun4/siglist.c:32
|
|
||||||
msgid "Trace trap"
|
msgid "Trace trap"
|
||||||
msgstr "ཧིང་ རྗེས་འཚོལ་འབད།"
|
msgstr "ཧིང་ རྗེས་འཚོལ་འབད།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:33
|
#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
|
||||||
#: ../sysdeps/sun4/siglist.c:33
|
|
||||||
msgid "Abort"
|
msgid "Abort"
|
||||||
msgstr "བར་བཤོལ་འབད།"
|
msgstr "བར་བཤོལ་འབད།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:34
|
#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
|
||||||
#: ../sysdeps/sun4/siglist.c:34
|
|
||||||
msgid "EMT error"
|
msgid "EMT error"
|
||||||
msgstr "ཨི་ཨེམ་ཊི་འཛོལ་བ།"
|
msgstr "ཨི་ཨེམ་ཊི་འཛོལ་བ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:35
|
#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
|
||||||
#: ../sysdeps/sun4/siglist.c:35
|
|
||||||
msgid "Floating-point exception"
|
msgid "Floating-point exception"
|
||||||
msgstr "ལྡིང་ཚད་དམིགས་བསལ།"
|
msgstr "ལྡིང་ཚད་དམིགས་བསལ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:36
|
#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
|
||||||
#: ../sysdeps/sun4/siglist.c:36
|
|
||||||
msgid "Kill"
|
msgid "Kill"
|
||||||
msgstr "གསད།"
|
msgstr "གསད།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:37
|
#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
|
||||||
#: ../sysdeps/sun4/siglist.c:37
|
|
||||||
msgid "Bus error"
|
msgid "Bus error"
|
||||||
msgstr "བརྡ་རྟགས་འགྲུལ་ལམ་གྱི་འཛོལ་བ།"
|
msgstr "བརྡ་རྟགས་འགྲུལ་ལམ་གྱི་འཛོལ་བ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:38
|
#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
|
||||||
#: ../sysdeps/sun4/siglist.c:38
|
|
||||||
msgid "Segmentation violation"
|
msgid "Segmentation violation"
|
||||||
msgstr "ཆ་བགོ་བའི་འགལ་བ།"
|
msgstr "ཆ་བགོ་བའི་འགལ་བ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:39
|
#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
|
||||||
#: ../sysdeps/sun4/siglist.c:39
|
|
||||||
msgid "Bad argument to system call"
|
msgid "Bad argument to system call"
|
||||||
msgstr "རིམ་ལུགས་བོད་བརྡ་ལུ་ སྒྲུབ་རྟགས་བྱང་ཉེས།"
|
msgstr "རིམ་ལུགས་བོད་བརྡ་ལུ་ སྒྲུབ་རྟགས་བྱང་ཉེས།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:40
|
#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
|
||||||
#: ../sysdeps/sun4/siglist.c:40
|
|
||||||
msgid "Broken pipe"
|
msgid "Broken pipe"
|
||||||
msgstr "རྒྱུད་དུང་ཆད་པ།"
|
msgstr "རྒྱུད་དུང་ཆད་པ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:41
|
#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
|
||||||
#: ../sysdeps/sun4/siglist.c:41
|
|
||||||
msgid "Alarm clock"
|
msgid "Alarm clock"
|
||||||
msgstr "འཇིགས་བརྡ་ཆེ་འཁོར།"
|
msgstr "འཇིགས་བརྡ་ཆེ་འཁོར།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:42
|
#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
|
||||||
#: ../sysdeps/sun4/siglist.c:42
|
|
||||||
msgid "Termination"
|
msgid "Termination"
|
||||||
msgstr "རྩ་གྲོལ།"
|
msgstr "རྩ་གྲོལ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:43
|
#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
|
||||||
#: ../sysdeps/sun4/siglist.c:43
|
|
||||||
msgid "Urgent condition on socket"
|
msgid "Urgent condition on socket"
|
||||||
msgstr "སོཀ་ཀེཊི་ལུ་ འཕྲལ་མཁོའི་གནས་སྟངས།"
|
msgstr "སོཀ་ཀེཊི་ལུ་ འཕྲལ་མཁོའི་གནས་སྟངས།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:44
|
#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
|
||||||
#: ../sysdeps/sun4/siglist.c:44
|
|
||||||
msgid "Stop"
|
msgid "Stop"
|
||||||
msgstr "བཀག"
|
msgstr "བཀག"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:45
|
#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
|
||||||
#: ../sysdeps/sun4/siglist.c:45
|
|
||||||
msgid "Keyboard stop"
|
msgid "Keyboard stop"
|
||||||
msgstr "ལྡེ་སྒྲོམ་བཀག"
|
msgstr "ལྡེ་སྒྲོམ་བཀག"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:46
|
#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
|
||||||
#: ../sysdeps/sun4/siglist.c:46
|
|
||||||
msgid "Continue"
|
msgid "Continue"
|
||||||
msgstr "འཕྲོ་མཐུད།"
|
msgstr "འཕྲོ་མཐུད།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:47
|
#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
|
||||||
#: ../sysdeps/sun4/siglist.c:47
|
|
||||||
msgid "Child status has changed"
|
msgid "Child status has changed"
|
||||||
msgstr "རྩ་ལག་གི་གནས་ཚད་ བསྒྱུར་བཅོས་ཡར་སོ་ནུག"
|
msgstr "རྩ་ལག་གི་གནས་ཚད་ བསྒྱུར་བཅོས་ཡར་སོ་ནུག"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:48
|
#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
|
||||||
#: ../sysdeps/sun4/siglist.c:48
|
|
||||||
msgid "Background read from tty"
|
msgid "Background read from tty"
|
||||||
msgstr "ཊི་ཊི་ཝའི་ནང་ལས་ རྒྱབ་གཞི་ལྷག་ཡོད།"
|
msgstr "ཊི་ཊི་ཝའི་ནང་ལས་ རྒྱབ་གཞི་ལྷག་ཡོད།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:49
|
#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
|
||||||
#: ../sysdeps/sun4/siglist.c:49
|
|
||||||
msgid "Background write to tty"
|
msgid "Background write to tty"
|
||||||
msgstr "ཊི་ཊི་ཝའི་ལུ་ རྒྱབ་གཞི་བྲིས།"
|
msgstr "ཊི་ཊི་ཝའི་ལུ་ རྒྱབ་གཞི་བྲིས།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:50
|
#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
|
||||||
#: ../sysdeps/sun4/siglist.c:50
|
|
||||||
msgid "I/O now possible"
|
msgid "I/O now possible"
|
||||||
msgstr "ཨའི་/ཨོ་ ད་ལྟོ་ཚུགས་པས།"
|
msgstr "ཨའི་/ཨོ་ ད་ལྟོ་ཚུགས་པས།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:51
|
#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
|
||||||
#: ../sysdeps/sun4/siglist.c:51
|
|
||||||
msgid "CPU limit exceeded"
|
msgid "CPU limit exceeded"
|
||||||
msgstr "ལས་སྦྱོར་ལྟེ་བའི་ཚད་ལས་ ལྷག་སོ་ནུག"
|
msgstr "ལས་སྦྱོར་ལྟེ་བའི་ཚད་ལས་ ལྷག་སོ་ནུག"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:52
|
#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
|
||||||
#: ../sysdeps/sun4/siglist.c:52
|
|
||||||
msgid "File size limit exceeded"
|
msgid "File size limit exceeded"
|
||||||
msgstr "ཡིག་སྣོད་ཀྱི་ཚད་ལས་ ལྷག་སོ་ནུག"
|
msgstr "ཡིག་སྣོད་ཀྱི་ཚད་ལས་ ལྷག་སོ་ནུག"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:53
|
#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
|
||||||
#: ../sysdeps/sun4/siglist.c:53
|
|
||||||
msgid "Virtual alarm clock"
|
msgid "Virtual alarm clock"
|
||||||
msgstr "བར་ཅུ་ཡེལ་ འཇིགས་བརྡའི་ཆེ་འཁོར།"
|
msgstr "བར་ཅུ་ཡེལ་ འཇིགས་བརྡའི་ཆེ་འཁོར།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:54
|
#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
|
||||||
#: ../sysdeps/sun4/siglist.c:54
|
|
||||||
msgid "Profiling alarm clock"
|
msgid "Profiling alarm clock"
|
||||||
msgstr "གསལ་སྡུད་འཇིགས་བརྡའི་ཆེ་འཁོར།"
|
msgstr "གསལ་སྡུད་འཇིགས་བརྡའི་ཆེ་འཁོར།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:55
|
#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
|
||||||
#: ../sysdeps/sun4/siglist.c:55
|
|
||||||
msgid "Window size change"
|
msgid "Window size change"
|
||||||
msgstr "སྒོ་སྒྲིག་ཚད་ཀྱི་བསྒྱུར་བཅོས།"
|
msgstr "སྒོ་སྒྲིག་ཚད་ཀྱི་བསྒྱུར་བཅོས།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:56
|
#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
|
||||||
#: ../sysdeps/sun4/siglist.c:56
|
|
||||||
msgid "Information request"
|
msgid "Information request"
|
||||||
msgstr "བརྡ་དོན་གྱི་ཞུ་བ།"
|
msgstr "བརྡ་དོན་གྱི་ཞུ་བ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:57
|
#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
|
||||||
#: ../sysdeps/sun4/siglist.c:57
|
|
||||||
msgid "User defined signal 1"
|
msgid "User defined signal 1"
|
||||||
msgstr "ལག་ལེན་པའི་ ངེས་འཛིན་བརྡ་རྟགས་ ༡པ།"
|
msgstr "ལག་ལེན་པའི་ ངེས་འཛིན་བརྡ་རྟགས་ ༡པ།"
|
||||||
|
|
||||||
#: ../sysdeps/osf1/siglist.c:58
|
#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
|
||||||
#: ../sysdeps/sun4/siglist.c:58
|
|
||||||
msgid "User defined signal 2"
|
msgid "User defined signal 2"
|
||||||
msgstr "ལག་ལེན་པའི་ངེས་འཛིན་བརྡ་རྟགས་ ༢པ།"
|
msgstr "ལག་ལེན་པའི་ངེས་འཛིན་བརྡ་རྟགས་ ༢པ།"
|
||||||
|
|
||||||
|
#~ msgid "DEBUG"
|
||||||
|
#~ msgstr "རྐྱེན་སེལ།"
|
||||||
|
|
||||||
|
#~ msgid "VERBOSE"
|
||||||
|
#~ msgstr "ཚིག་མང་།"
|
||||||
|
|
||||||
|
#~ msgid "NO-DAEMON"
|
||||||
|
#~ msgstr "ཌེ་མཱོན་མིན་འདུག"
|
||||||
|
|
||||||
|
#~ msgid "INETD"
|
||||||
|
#~ msgstr "ཨའི་ཨེན་ཨི་ཊི་ཌི།"
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user