Compare commits

..

46 Commits

Author SHA1 Message Date
Kevin Vandersloot
222706a0d4 add back the support stuf but make it really work
2002-01-10  Kevin Vandersloot <kfv101@psu.edu>

        * acininclude.m4: add back the support stuf but make it really
        work

        * configure.in: bump version number, add back GNOME_SUPPORT
        check since that was causing a build failure

        * release 1.90.1
2002-01-11 04:25:27 +00:00
Kevin Vandersloot
2168cc5f71 remove gnome support check. Fixes the build for those with automake <
2002-01-09  Kevin Vandersloot <kfv101@psu.edu>

        * acinclude.m4: remove gnome support check. Fixes the build
        for those with automake < 1.4p5.

        * configure.in: remove check for GNOME_SUPPORT
2002-01-10 02:30:57 +00:00
Miles Lane
08808384f4 Added "#undef HAVE_GETTEXT" entry. Removed file. added glib-gettextize
2001-14-27  Miles Lane <miles@megapathdsl.net>
	* acconfig.h:  Added "#undef HAVE_GETTEXT" entry.
	* LIBGTOP_VERSION:  Removed file.
	* configure.in:  added glib-gettextize support and
	  moved in the *VERSION* stuff from LIBGTOP_VERSION.
2001-12-16 02:40:42 +00:00
Yuri Syrota
0f1306a20f Updated Ukrainian Translation 2001-12-07 09:25:07 +00:00
Yuri Syrota
84b05c0219 Updated Ukrainian Translation 2001-12-05 13:12:48 +00:00
Yuri Syrota
6916ada308 Updated Ukrainian Translation 2001-12-05 13:11:35 +00:00
Kevin Vandersloot
5943c96d35 copy some of the macros that were formerly in gnome-macros
2001-11-27  Kevin Vandersloot <kfv101@psu.edu>

        * acinclude.m4: copy some of the macros that were formerly
        in gnome-macros

        * configure.in, sysdeps/Makefile.am: comment out guile
        support for now.

        * release 1.90.0
2001-11-28 02:00:37 +00:00
Kevin Vandersloot
909a3e6512 ChangeLog 2001-11-26 22:17:21 +00:00
Kevin Vandersloot
ca94618e27 Apply patch fixing security issue from intexxia labs - #1048-261101
2001-11-26  Kevin Vandersloot <kfv101@psu.edu>

        * gnuserv.c: Apply patch fixing security issue from
        intexxia labs - #1048-261101
2001-11-26 22:16:57 +00:00
Kwok-Koon Cheung
a478d380f4 Various cleanup as well as a few fixes for parallel install 2001-11-26 06:15:53 +00:00
Kwok-Koon Cheung
af80d4d3d2 Bye-bye stamp-cat-id 2001-11-26 05:13:45 +00:00
Kevin Vandersloot
973dc2d37c port stable libgtop to GNOME 2.0. Too much to detail. pkgconfig is now
2001-11-25  Kevin Vandersloot <kfv101@psu.edu>

        * port stable libgtop to GNOME 2.0. Too much to detail.
        pkgconfig is now used. Libs are named libgtop-2.0 etc for
        parallel install.
2001-11-26 03:23:22 +00:00
Chyla Zbigniew
97b32c7046 Updated Polish translation by GNOME PL Team <translators@gnome.pl> 2001-10-30 22:56:35 +00:00
Carlos Perelló Marín
fb8184afba *** empty log message *** 2001-10-18 00:53:25 +00:00
Carlos Perell Marn
16643866cf Added by Duarte Loreto <happyguy_pt@hotmail.com>
2001-10-17  Carlos Perell Marn <carlos@gnome-db.org>

	* pt.po: Added by Duarte Loreto <happyguy_pt@hotmail.com>
2001-10-18 00:47:22 +00:00
Kwok-Koon Cheung
aa9299f344 Parallel installation fix {moved headers to $(includedir)/libgtop-1.0/ } 2001-10-17 03:53:56 +00:00
Kwok-Koon Cheung
6f69cd863b New traditional Chinese translation. 2001-09-15 23:20:45 +00:00
Kjartan Maraas
7262bf39d8 Added Norwegian (nynorsk) translation.
2001-07-16  Kjartan Maraas  <kmaraas@gnome.org>

	* nn.po: Added Norwegian (nynorsk) translation.
2001-07-16 20:25:25 +00:00
Andraz Tori
9e773390cc Updated Slovenian translation 2001-05-03 21:59:35 +00:00
Yuri Syrota
54cbdb8158 Updated Ukrainian transaltion 2001-03-30 10:23:17 +00:00
Yuri Syrota
c70b11ee00 Updated Ukrainian transaltion 2001-03-28 13:02:47 +00:00
Andraz Tori
965b26c926 Updated Slovenian translation 2001-03-25 13:11:30 +00:00
Fatih Demir
384cd6b2db Full tr.po 2001-03-25 10:56:03 +00:00
Fatih Demir
b055e3710b Updated tr.po from Grkem 2001-03-23 21:29:49 +00:00
Yuri Syrota
669c6fd670 Updated Ukrainian transaltion 2001-03-22 10:49:57 +00:00
Valek Frob
617c4568d2 Updated russian translation. 2001-03-15 18:49:12 +00:00
Pablo Saratxaga
93c998cf7a fixed chars 2001-03-15 10:52:29 +00:00
Pablo Saratxaga
46a0750736 corrected charset line 2001-03-15 10:42:32 +00:00
Andraz Tori
e9227d1a2e Updated Slovenian translation 2001-03-11 22:18:24 +00:00
Pablo Saratxaga
41b7120527 Converted az.po to 8bit encoding
added tr.po from HEAD branch
fixed the ALL_LINGUAS to match the available languages
2001-03-09 16:39:21 +00:00
Andraz Tori
0ad6ae0a12 Updated Slovenian translation 2001-03-01 23:29:52 +00:00
Martin Baulig
6197e3ad47 Released LibGTop 1.0.12 "Gerolzhofen". 2001-02-27 14:14:03 +00:00
Martin Baulig
e577717013 Released LibGTop 1.0.12 "Gerolzhofen".
2001-02-13  Martin Baulig  <baulig@suse.de>

	Released LibGTop 1.0.12 "Gerolzhofen".

	* NEWS: Added news entry to 1.0.12.

	* LIBGTOP-VERSION: Set version number to 1.0.12, binary age 11,
	interface age 11.
2001-02-27 14:01:13 +00:00
Martin Baulig
6b19a0090a February 27, 2001: =================
February 27, 2001:
=================

* Released LibGTop 1.0.12 "Gerolzhofen".

  - fix for Solaris 8 from Laszlo PETER (msg_limits, sem_limits).

  - fix for FreeBSD 4.2 from Rolf Grossmann (FreeBSD now uses
    `_KERNEL' instead of `KERNEL'). Bug #51334.

  - for BSDI, comment out `subnet' field in netload; this should make
    it compile, but there may be other problems. Bug #13345.

  This release is for GNOME 1.4 Beta2.
2001-02-27 14:00:40 +00:00
Martin Baulig
a515242f17 Comment out the `subnet' field on BSDI; this should make it compile. Bug
2001-02-27  Martin Baulig  <baulig@suse.de>

	* netload.c: Comment out the `subnet' field on BSDI; this should
	make it compile. Bug #13345.
2001-02-27 13:52:56 +00:00
Martin Baulig
a7b13c7d83 Applied a patch from Rolf Grossmann (grossman@securitas.net) for FreeBSD
2001-02-27  Martin Baulig  <baulig@suse.de>

	* shm_limits.c, msg_limits.c, sem_limits.c: Applied a patch
	from Rolf Grossmann (grossman@securitas.net) for FreeBSD 4.2.
	Fixes #51334.
2001-02-27 13:40:10 +00:00
Simos Xenitellis
849d2da085 Update of Greek translation 2001-02-25 20:18:16 +00:00
Simos Xenitellis
d4b195045a More Greek messages 2001-02-23 13:32:00 +00:00
Yuri Syrota
c269f0adb8 Updated Ukrainian translation 2001-02-20 07:43:11 +00:00
Andraz Tori
4f65ee018c Updated Slovenian translation 2001-02-19 23:08:08 +00:00
Simos Xenitellis
8a8b975d08 Update of Greek translation 2001-02-19 03:03:22 +00:00
Andraz Tori
64955004a0 Updated Slovenian translation 2001-02-18 19:44:35 +00:00
Martin Baulig
4ef82847fe Applied a patch from Laszlo PETER <Laszlo.Peter@ireland.sun.com> for
2001-02-18  Martin Baulig  <baulig@suse.de>

	Applied a patch from Laszlo PETER <Laszlo.Peter@ireland.sun.com>
	for Solaris 8.

	* msg_limits.c: `struct msginfo' no longer has msgmap and msgssz.
	* sem_limits.c: `struct seminfo' no longer has a semmap field.
2001-02-18 14:27:27 +00:00
Andraz Tori
9da5658ba1 Updated Slovenian translation 2001-02-16 21:47:18 +00:00
Christian Meyer
b300842f47 Some minor changes for German translation. 2001-02-15 16:08:51 +00:00
Yuri Syrota
9a49872026 Updated Ukrainian translation 2001-02-15 13:07:35 +00:00
70 changed files with 9372 additions and 2103 deletions

View File

@@ -13,7 +13,6 @@ gtopConf.sh
i386-bsdi
i686-pc-linux-gnu
intl
libgtop-0.01.tar.gz
libgtop-mirror.sh.swp
libgtopConf.sh
libtool
@@ -30,7 +29,6 @@ i686-pc-linux-gnu-linux
libgtop-config
ABOUT-NLS
libgtop.spec
libgtop-0.99.*.tar.gz
libgtop-0.99.*
libgtop*.tar.gz
*-debstamp
libgtop-1.*.*.tar.gz
libgtop*.pc

View File

@@ -1,3 +1,79 @@
2002-01-10 Kevin Vandersloot <kfv101@psu.edu>
* acininclude.m4: add back the support stuf but make it really
work
* configure.in: bump version number, add back GNOME_SUPPORT
check since that was causing a build failure
* release 1.90.1
2002-01-09 Kevin Vandersloot <kfv101@psu.edu>
* acinclude.m4: remove gnome support check. Fixes the build
for those with automake < 1.4p5.
* configure.in: remove check for GNOME_SUPPORT
2001-14-27 Miles Lane <miles@megapathdsl.net>
* acconfig.h: Added "#undef HAVE_GETTEXT" entry.
* LIBGTOP_VERSION: Removed file.
* configure.in: added glib-gettextize support and
moved in the *VERSION* stuff from LIBGTOP_VERSION.
2001-11-27 Kevin Vandersloot <kfv101@psu.edu>
* acinclude.m4: copy some of the macros that were formerly
in gnome-macros
* configure.in, sysdeps/Makefile.am: comment out guile
support for now.
* release 1.90.0
2001-11-26 Kevin Vandersloot <kfv101@psu.edu>
* src/daemon/gnuserv.c: Apply patch fixing security issue from
intexxia labs - #1048-261101
2001-11-26 Abel Cheung <maddog@linux.org.hk>
* src/inodedb/file_by_inode.c: Rename to file_by_inode2.c
* src/inodedb/mkinodedb.c: Rename to mkinodedb2.c
* po/POTFILES.in: Reflect above change
* */.cvsignore: Add various files
2001-11-25 Kevin Vandersloot <kfv101@psu.edu>
* port stable libgtop to GNOME 2.0. Too much to detail.
pkgconfig is now used. Libs are named libgtop-2.0 etc for
parallel install.
2001-10-17 Abel Chueng <maddog@linux.org.hk>
* configure.in, Makefile.am, include/glibtop/Makefile.am: headers
moved to $(includedir)/libgtop-1.0/glibtop.
2001-09-16 Abel Chueng <maddog@linux.org.hk>
* configure.in: Added "zh_TW" to ALL_LINGUAS.
2001-02-13 Martin Baulig <baulig@suse.de>
Released LibGTop 1.0.12 "Gerolzhofen".
* NEWS: Added news entry to 1.0.12.
* LIBGTOP-VERSION: Set version number to 1.0.12, binary age 11,
interface age 11.
2001-02-19 Simos Xenitellis <simos@hellug.gr>
* configure.in: Added "el" to ALL_LINGUAS.
2001-02-15 Martin Baulig <baulig@suse.de>
Released LibGTop 1.0.11 "Jasmin".

View File

@@ -7,11 +7,11 @@
# set LIBGTOP_BINARY_AGE and LIBGTOP_INTERFACE_AGE to 0.
#
LIBGTOP_MAJOR_VERSION=1
LIBGTOP_MINOR_VERSION=0
LIBGTOP_MICRO_VERSION=11
LIBGTOP_MINOR_VERSION=90
LIBGTOP_MICRO_VERSION=0
LIBGTOP_INTERFACE_AGE=10
LIBGTOP_BINARY_AGE=10
LIBGTOP_INTERFACE_AGE=0
LIBGTOP_BINARY_AGE=0
# you can set this to `-snap' for instance to create
# a `libgtop-1.x.y-snap.tar.gz' tarball.
LIBGTOP_VERSION_SUFFIX=

View File

@@ -10,15 +10,16 @@ if BUILD_GNOME_SUPPORT
support = support
endif
SUBDIRS = po intl $(support) macros misc include sysdeps lib src \
SUBDIRS = po $(support) misc include sysdeps lib src \
$(examples_SUBDIRS) doc
include_HEADERS = glibtop.h
libgtopinclude_HEADERS = glibtop.h
libgtopincludedir = $(includedir)/libgtop-2.0
EXTRA_DIST = autogen.sh libgtop.spec.in copyright.txt libgtopConf.sh.in \
LIBGTOP-VERSION features.def libgtop-config.in RELNOTES-0.25 \
RELNOTES-1.0 RELNOTES-1.0.x libgtop-sysdeps.m4 README \
libgtop-mirror.sh
libgtop-mirror.sh libgtop-2.0.pc.in acinclude.m4
dist-hook:
cp libgtop.spec $(distdir)
@@ -28,19 +29,22 @@ release:
## Put `exec' in the name because this should be installed by
## `install-exec', not `install-data'.
confexecdir = $(libdir)
confexec_DATA = $(top_builddir)/libgtopConf.sh \
$(top_builddir)/libgtop-features.def
## confexecdir = $(libdir)
## confexec_DATA = $(top_builddir)/libgtopConf.sh \
## $(top_builddir)/libgtop-features.def
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgtop-2.0.pc
CLEANFILES=libgtopConf.sh
bin_SCRIPTS = $(top_builddir)/libgtop-config
## bin_SCRIPTS = $(top_builddir)/libgtop-config
## to automatically rebuild aclocal.m4 if any of the macros in
## `macros/' change
@MAINT@ include macros/macros.dep
@MAINT@macros/macros.dep: macros/Makefile.am
@MAINT@ cd macros && $(MAKE) macros.dep
## @MAINT@ include macros/macros.dep
## @MAINT@macros/macros.dep: macros/Makefile.am
## @MAINT@ cd macros && $(MAKE) macros.dep
@MAINT@$(top_srcdir)/aclocal.m4: libgtop-sysdeps.m4 LIBGTOP-VERSION
@@ -51,7 +55,7 @@ bin_SCRIPTS = $(top_builddir)/libgtop-config
libgtopConf.sh: libgtopConf.sh.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
sed -e 's#\@LIBGTOP_LIBDIR\@#$(libdir)#g' \
-e 's#\@LIBGTOP_INCLUDEDIR\@#$(includedir)#g' \
-e 's#\@LIBGTOP_INCLUDEDIR\@#$(includedir)/libgtop-2.0#g' \
-e 's#\@LIBGTOP_DATADIR\@#$(datadir)#g' \
-e 's#\@LIBGTOP_EXTRA_LIBS\@#$(LIBGTOP_EXTRA_LIBS)#g' \
-e 's#\@LIBGTOP_LIBS\@#$(LIBGTOP_LIBS)#g' \
@@ -78,11 +82,11 @@ libgtopConf.sh: libgtopConf.sh.in Makefile
< $(srcdir)/libgtopConf.sh.in > libgtopConf.tmp \
&& mv libgtopConf.tmp libgtopConf.sh
libgtop-config: libgtop-config.in Makefile
sed -e 's#\@LIBGTOP_LIBDIR\@#$(libdir)#g' \
< $(srcdir)/libgtop-config.in > libgtop-config.tmp \
&& mv libgtop-config.tmp libgtop-config && \
chmod 755 libgtop-config
# libgtop-config: libgtop-config.in Makefile
# sed -e 's#\@LIBGTOP_LIBDIR\@#$(libdir)#g' \
# < $(srcdir)/libgtop-config.in > libgtop-config.tmp \
# && mv libgtop-config.tmp libgtop-config && \
# chmod 755 libgtop-config
libgtop-features.def: features.def
@LN_S@ $< $@

15
NEWS
View File

@@ -1,3 +1,18 @@
February 27, 2001:
=================
* Released LibGTop 1.0.12 "Gerolzhofen".
- fix for Solaris 8 from Laszlo PETER (msg_limits, sem_limits).
- fix for FreeBSD 4.2 from Rolf Grossmann (FreeBSD now uses
`_KERNEL' instead of `KERNEL'). Bug #51334.
- for BSDI, comment out `subnet' field in netload; this should make
it compile, but there may be other problems. Bug #13345.
This release is for GNOME 1.4 Beta2.
February 14, 2001:
=================

View File

@@ -18,6 +18,7 @@
#undef ENABLE_NLS
#undef HAVE_CATGETS
#undef GETTEXT_PACKAGE
#undef HAVE_GETTEXT
#undef HAVE_LC_MESSAGES
#undef HAVE_STPCPY

876
acinclude.m4 Normal file
View File

@@ -0,0 +1,876 @@
dnl This is just copied m4s from need-declaration.m4 gnome-fileutils.m4
dnl gnome-supprt-checks.m4 and a little from gnome-libgtop-check.m4
dnl and finally libgtop-sysdeps.m4
dnl
dnl LIBGTOP_CHECK_TYPE
dnl
dnl Improved version of AC_CHECK_TYPE which takes into account
dnl that we need to #include some other header files on some
dnl systems to get some types.
dnl AC_LIBGTOP_CHECK_TYPE(TYPE, DEFAULT)
AC_DEFUN([AC_LIBGTOP_CHECK_TYPE],
[AC_REQUIRE([AC_HEADER_STDC])dnl
AC_MSG_CHECKING(for $1)
AC_CACHE_VAL(ac_cv_type_$1,
[AC_EGREP_CPP(dnl
changequote(<<,>>)dnl
<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
changequote([,]), [#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
/* For Tru64 */
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
AC_MSG_RESULT($ac_cv_type_$1)
if test $ac_cv_type_$1 = no; then
AC_DEFINE($1, $2)
fi
])
dnl
dnl GNOME_LIBGTOP_TYPES
dnl
dnl some typechecks for libgtop.
dnl
AC_DEFUN([GNOME_LIBGTOP_TYPES],
[
AC_CHECK_HEADERS(sys/bitypes.h)
AC_LIBGTOP_CHECK_TYPE(u_int64_t, unsigned long long int)
AC_LIBGTOP_CHECK_TYPE(int64_t, signed long long int)
])
dnl See whether we need a declaration for a function.
dnl GCC_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES])
AC_DEFUN([GCC_NEED_DECLARATION],
[AC_MSG_CHECKING([whether $1 must be declared])
AC_CACHE_VAL(gcc_cv_decl_needed_$1,
[AC_TRY_COMPILE([
#include <stdio.h>
#ifdef HAVE_STRING_H
#include <string.h>
#else
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
$2],
[char *(*pfn) = (char *(*)) $1],
eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])
if eval "test \"`echo '$gcc_cv_decl_needed_'$1`\" = yes"; then
AC_MSG_RESULT(yes)
gcc_need_declarations="$gcc_need_declarations $1"
gcc_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
AC_DEFINE_UNQUOTED($gcc_tr_decl)
else
AC_MSG_RESULT(no)
fi
])dnl
dnl Check multiple functions to see whether each needs a declaration.
dnl GCC_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES])
AC_DEFUN([GCC_NEED_DECLARATIONS],
[for ac_func in $1
do
GCC_NEED_DECLARATION($ac_func, $2)
done
]
)
dnl
dnl GNOME_FILEUTILS_CHECKS
dnl
dnl checks that are needed for the diskusage applet.
dnl
AC_DEFUN([GNOME_FILEUTILS_CHECKS],
[
AC_CHECK_HEADERS(fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
sys/filsys.h sys/fs_types.h sys/fs/s5param.h)
AC_CHECK_FUNCS(bcopy endgrent endpwent fchdir ftime ftruncate \
getcwd getmntinfo gettimeofday isascii lchown \
listmntent memcpy mkfifo strchr strerror strrchr vprintf)
dnl Set some defaults when cross-compiling
if test x$cross_compiling = xyes ; then
case "$host_os" in
linux*)
fu_cv_sys_mounted_getmntent1=yes
fu_cv_sys_stat_statfs2_bsize=yes
;;
sunos*)
fu_cv_sys_stat_statfs4=yes
;;
freebsd*)
fu_cv_sys_stat_statfs2_bsize=yes
;;
osf*)
fu_cv_sys_stat_statfs3_osf1=yes
;;
esac
fi
# Determine how to get the list of mounted filesystems.
list_mounted_fs=
# If the getmntent function is available but not in the standard library,
# make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
AC_FUNC_GETMNTENT
# This test must precede the ones for getmntent because Unicos-9 is
# reported to have the getmntent function, but its support is incompatible
# with other getmntent implementations.
# NOTE: Normally, I wouldn't use a check for system type as I've done for
# `CRAY' below since that goes against the whole autoconf philosophy. But
# I think there is too great a chance that some non-Cray system has a
# function named listmntent to risk the false positive.
if test -z "$list_mounted_fs"; then
# Cray UNICOS 9
AC_MSG_CHECKING([for listmntent of Cray/Unicos-9])
AC_CACHE_VAL(fu_cv_sys_mounted_cray_listmntent,
[fu_cv_sys_mounted_cray_listmntent=no
AC_EGREP_CPP(yes,
[#ifdef _CRAY
yes
#endif
], [test $ac_cv_func_listmntent = yes \
&& fu_cv_sys_mounted_cray_listmntent=yes]
)
]
)
AC_MSG_RESULT($fu_cv_sys_mounted_cray_listmntent)
if test $fu_cv_sys_mounted_cray_listmntent = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_LISTMNTENT)
fi
fi
if test $ac_cv_func_getmntent = yes; then
# This system has the getmntent function.
# Determine whether it's the one-argument variant or the two-argument one.
if test -z "$list_mounted_fs"; then
# 4.3BSD, SunOS, HP-UX, Dynix, Irix
AC_MSG_CHECKING([for one-argument getmntent function])
AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1,
[test $ac_cv_header_mntent_h = yes \
&& fu_cv_sys_mounted_getmntent1=yes \
|| fu_cv_sys_mounted_getmntent1=no])
AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1)
if test $fu_cv_sys_mounted_getmntent1 = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_GETMNTENT1)
fi
fi
if test -z "$list_mounted_fs"; then
# SVR4
AC_MSG_CHECKING([for two-argument getmntent function])
AC_CACHE_VAL(fu_cv_sys_mounted_getmntent2,
[AC_EGREP_HEADER(getmntent, sys/mnttab.h,
fu_cv_sys_mounted_getmntent2=yes,
fu_cv_sys_mounted_getmntent2=no)])
AC_MSG_RESULT($fu_cv_sys_mounted_getmntent2)
if test $fu_cv_sys_mounted_getmntent2 = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_GETMNTENT2)
fi
fi
if test -z "$list_mounted_fs"; then
AC_MSG_ERROR([could not determine how to read list of mounted filesystems])
fi
fi
if test -z "$list_mounted_fs"; then
# DEC Alpha running OSF/1.
AC_MSG_CHECKING([for getfsstat function])
AC_CACHE_VAL(fu_cv_sys_mounted_getsstat,
[AC_TRY_LINK([
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/fs_types.h>],
[struct statfs *stats;
int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ],
fu_cv_sys_mounted_getsstat=yes,
fu_cv_sys_mounted_getsstat=no)])
AC_MSG_RESULT($fu_cv_sys_mounted_getsstat)
if test $fu_cv_sys_mounted_getsstat = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_GETFSSTAT)
fi
fi
if test -z "$list_mounted_fs"; then
# AIX.
AC_MSG_CHECKING([for mntctl function and struct vmount])
AC_CACHE_VAL(fu_cv_sys_mounted_vmount,
[AC_TRY_CPP([#include <fshelp.h>],
fu_cv_sys_mounted_vmount=yes,
fu_cv_sys_mounted_vmount=no)])
AC_MSG_RESULT($fu_cv_sys_mounted_vmount)
if test $fu_cv_sys_mounted_vmount = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_VMOUNT)
fi
fi
if test -z "$list_mounted_fs"; then
# SVR3
AC_MSG_CHECKING([for FIXME existence of three headers])
AC_CACHE_VAL(fu_cv_sys_mounted_fread_fstyp,
[AC_TRY_CPP([
#include <sys/statfs.h>
#include <sys/fstyp.h>
#include <mnttab.h>],
fu_cv_sys_mounted_fread_fstyp=yes,
fu_cv_sys_mounted_fread_fstyp=no)])
AC_MSG_RESULT($fu_cv_sys_mounted_fread_fstyp)
if test $fu_cv_sys_mounted_fread_fstyp = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_FREAD_FSTYP)
fi
fi
if test -z "$list_mounted_fs"; then
# 4.4BSD and DEC OSF/1.
AC_MSG_CHECKING([for getmntinfo function])
AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo,
[
ok=
if test $ac_cv_func_getmntinfo = yes; then
AC_EGREP_HEADER(f_type;, sys/mount.h,
ok=yes)
fi
test -n "$ok" \
&& fu_cv_sys_mounted_getmntinfo=yes \
|| fu_cv_sys_mounted_getmntinfo=no
])
AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo)
if test $fu_cv_sys_mounted_getmntinfo = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_GETMNTINFO)
fi
fi
# FIXME: add a test for netbsd-1.1 here
if test -z "$list_mounted_fs"; then
# Ultrix
AC_MSG_CHECKING([for getmnt function])
AC_CACHE_VAL(fu_cv_sys_mounted_getmnt,
[AC_TRY_CPP([
#include <sys/fs_types.h>
#include <sys/mount.h>],
fu_cv_sys_mounted_getmnt=yes,
fu_cv_sys_mounted_getmnt=no)])
AC_MSG_RESULT($fu_cv_sys_mounted_getmnt)
if test $fu_cv_sys_mounted_getmnt = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_GETMNT)
fi
fi
if test -z "$list_mounted_fs"; then
# SVR2
AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab])
AC_CACHE_VAL(fu_cv_sys_mounted_fread,
[AC_TRY_CPP([#include <mnttab.h>],
fu_cv_sys_mounted_fread=yes,
fu_cv_sys_mounted_fread=no)])
AC_MSG_RESULT($fu_cv_sys_mounted_fread)
if test $fu_cv_sys_mounted_fread = yes; then
list_mounted_fs=found
AC_DEFINE(MOUNTED_FREAD)
fi
fi
if test -z "$list_mounted_fs"; then
AC_MSG_ERROR([could not determine how to read list of mounted filesystems])
# FIXME -- no need to abort building the whole package
# Cannot build mountlist.c or anything that needs its functions
fi
AC_CHECKING(how to get filesystem space usage)
space=no
# Perform only the link test since it seems there are no variants of the
# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
# because that got a false positive on SCO OSR5. Adding the declaration
# of a `struct statvfs' causes this test to fail (as it should) on such
# systems. That system is reported to work fine with STAT_STATFS4 which
# is what it gets when this test fails.
if test $space = no; then
# SVR4
AC_CACHE_CHECK([statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
[AC_TRY_LINK([#include <sys/types.h>
#include <sys/statvfs.h>],
[struct statvfs fsd; statvfs (0, &fsd);],
fu_cv_sys_stat_statvfs=yes,
fu_cv_sys_stat_statvfs=no)])
if test $fu_cv_sys_stat_statvfs = yes; then
space=yes
AC_DEFINE(STAT_STATVFS)
fi
fi
if test $space = no; then
# DEC Alpha running OSF/1
AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)])
AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1,
[AC_TRY_RUN([
#include <sys/param.h>
#include <sys/types.h>
#include <sys/mount.h>
int main ()
{
struct statfs fsd;
fsd.f_fsize = 0;
return (statfs (".", &fsd, sizeof (struct statfs)));
}],
fu_cv_sys_stat_statfs3_osf1=yes,
fu_cv_sys_stat_statfs3_osf1=no,
fu_cv_sys_stat_statfs3_osf1=no)])
AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
space=yes
AC_DEFINE(STAT_STATFS3_OSF1)
fi
fi
if test $space = no; then
# AIX
AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl
member (AIX, 4.3BSD)])
AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize,
[AC_TRY_RUN([
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
int main ()
{
struct statfs fsd;
fsd.f_bsize = 0;
return (statfs (".", &fsd));
}],
fu_cv_sys_stat_statfs2_bsize=yes,
fu_cv_sys_stat_statfs2_bsize=no,
fu_cv_sys_stat_statfs2_bsize=no)])
AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize)
if test $fu_cv_sys_stat_statfs2_bsize = yes; then
space=yes
AC_DEFINE(STAT_STATFS2_BSIZE)
fi
fi
if test $space = no; then
# SVR3
AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)])
AC_CACHE_VAL(fu_cv_sys_stat_statfs4,
[AC_TRY_RUN([#include <sys/types.h>
#include <sys/statfs.h>
int main ()
{
struct statfs fsd;
return (statfs (".", &fsd, sizeof fsd, 0));
}],
fu_cv_sys_stat_statfs4=yes,
fu_cv_sys_stat_statfs4=no,
fu_cv_sys_stat_statfs4=no)])
AC_MSG_RESULT($fu_cv_sys_stat_statfs4)
if test $fu_cv_sys_stat_statfs4 = yes; then
space=yes
AC_DEFINE(STAT_STATFS4)
fi
fi
if test $space = no; then
# 4.4BSD and NetBSD
AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl
member (4.4BSD and NetBSD)])
AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize,
[AC_TRY_RUN([#include <sys/types.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
int main ()
{
struct statfs fsd;
fsd.f_fsize = 0;
return (statfs (".", &fsd));
}],
fu_cv_sys_stat_statfs2_fsize=yes,
fu_cv_sys_stat_statfs2_fsize=no,
fu_cv_sys_stat_statfs2_fsize=no)])
AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize)
if test $fu_cv_sys_stat_statfs2_fsize = yes; then
space=yes
AC_DEFINE(STAT_STATFS2_FSIZE)
fi
fi
if test $space = no; then
# Ultrix
AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)])
AC_CACHE_VAL(fu_cv_sys_stat_fs_data,
[AC_TRY_RUN([#include <sys/types.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_FS_TYPES_H
#include <sys/fs_types.h>
#endif
int main ()
{
struct fs_data fsd;
/* Ultrix's statfs returns 1 for success,
0 for not mounted, -1 for failure. */
return (statfs (".", &fsd) != 1);
}],
fu_cv_sys_stat_fs_data=yes,
fu_cv_sys_stat_fs_data=no,
fu_cv_sys_stat_fs_data=no)])
AC_MSG_RESULT($fu_cv_sys_stat_fs_data)
if test $fu_cv_sys_stat_fs_data = yes; then
space=yes
AC_DEFINE(STAT_STATFS2_FS_DATA)
fi
fi
if test $space = no; then
# SVR2
AC_TRY_CPP([#include <sys/filsys.h>],
AC_DEFINE(STAT_READ_FILSYS) space=yes)
fi
if test -n "$list_mounted_fs" && test $space != no; then
DF_PROG="df"
# LIBOBJS="$LIBOBJS fsusage.o"
# LIBOBJS="$LIBOBJS mountlist.o"
fi
# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
# If <sys/vfs.h> exists and struct statfs has a member named f_spare,
# enable the work-around code in fsusage.c.
AC_MSG_CHECKING([for statfs that truncates block counts])
AC_CACHE_VAL(fu_cv_sys_truncating_statfs,
[AC_TRY_COMPILE([
#if !defined(sun) && !defined(__sun)
choke -- this is a workaround for a Sun-specific problem
#endif
#include <sys/types.h>
#include <sys/vfs.h>],
[struct statfs t; long c = *(t.f_spare);],
fu_cv_sys_truncating_statfs=yes,
fu_cv_sys_truncating_statfs=no,
)])
if test $fu_cv_sys_truncating_statfs = yes; then
AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS)
fi
AC_MSG_RESULT($fu_cv_sys_truncating_statfs)
AC_CHECKING(for AFS)
test -d /afs && AC_DEFINE(AFS)
])
dnl GNOME_SUPPORT_CHECKS
dnl Check for various support functions needed by the standard
dnl Gnome libraries. Sets LIBOBJS, might define some macros.
dnl This should only be used when building the Gnome libs;
dnl Gnome clients should not need this macro.
AC_DEFUN([GNOME_SUPPORT_CHECKS],[
# we need an `awk' to build `gnomesupport.h'
AC_REQUIRE([AC_PROG_AWK])
# this should go away soon
need_gnome_support=yes
save_LIBOBJS="$LIBOBJS"
LIBOBJS=
AC_CHECK_FUNCS(getopt_long,,LIBOBJS="$LIBOBJS getopt.o getopt1.o")
# for `scandir'
AC_HEADER_DIRENT
# copied from `configure.in' of `libiberty'
vars="program_invocation_short_name program_invocation_name sys_errlist"
for v in $vars; do
AC_MSG_CHECKING([for $v])
AC_CACHE_VAL(gnome_cv_var_$v,
[AC_TRY_LINK([int *p;], [extern int $v; p = &$v;],
[eval "gnome_cv_var_$v=yes"],
[eval "gnome_cv_var_$v=no"])])
if eval "test \"`echo '$gnome_cv_var_'$v`\" = yes"; then
AC_MSG_RESULT(yes)
n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
AC_DEFINE_UNQUOTED($n)
else
AC_MSG_RESULT(no)
fi
done
AC_REPLACE_FUNCS(memmove mkstemp scandir strcasecmp strerror strndup strnlen)
AC_REPLACE_FUNCS(strtok_r strtod strtol strtoul vasprintf vsnprintf)
AC_CHECK_FUNCS(realpath,,LIBOBJS="$LIBOBJS canonicalize.o")
# to include `error.c' error.c has some HAVE_* checks
AC_CHECK_FUNCS(vprintf doprnt strerror_r)
# stolen from am_func_error_at_line
AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line,
[AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");],
am_cv_lib_error_at_line=yes,
am_cv_lib_error_at_line=no)])
if test $am_cv_lib_error_at_line = no; then
LIBOBJS="$LIBOBJS error.o"
fi
AC_SUBST(LIBOBJS)dnl
# This is required if we declare setreuid () and setregid ().
AC_TYPE_UID_T
# see if we need to declare some functions. Solaris is notorious for
# putting functions into the `libc' but not listing them in the headers
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h dirent.h)
GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize)
GCC_NEED_DECLARATION(scandir,[
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
])
# Turn our LIBOBJS into libtool objects. This is gross, but it
# requires changes to autoconf before it goes away.
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
AC_SUBST(need_gnome_support)
AC_SUBST(LTLIBOBJS)
LIBOBJS="$save_LIBOBJS"
AM_CONDITIONAL(BUILD_GNOME_SUPPORT, test "$need_gnome_support" = yes)
])
dnl This file is intended for use both internally in libgtop and in every program
dnl that wants to use it.
dnl
dnl It defines the following variables:
dnl
dnl * 'libgtop_sysdeps_dir' - sysdeps dir for libgtop.
dnl * 'libgtop_use_machine_h' - some of system dependend parts of libgtop provide
dnl their own header file. In this case we need to
dnl define 'HAVE_GLIBTOP_MACHINE_H'.
dnl * 'libgtop_need_server' - is the server really needed? Defines 'NEED_LIBGTOP'
dnl if true; defines conditional 'NEED_LIBGTOP'.
AC_DEFUN([LIBGTOP_HACKER_TESTS],[
AC_REQUIRE([AC_CANONICAL_HOST])
case "$host_os" in
linux*)
AC_ARG_WITH(linux-table,
[ --with-linux-table Use the table () function from Martin Baulig],[
linux_table="$withval"],[linux_table=auto])
if test $linux_table = yes ; then
AC_CHECK_HEADER(linux/table.h, linux_table=yes, linux_table=no)
elif test $linux_table = auto ; then
AC_MSG_CHECKING(for table function in Linux Kernel)
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/unistd.h>
#include <linux/table.h>
#include <syscall.h>
static inline _syscall3 (int, table, int, type, union table *, tbl, const void *, param);
int
main (void)
{
union table tbl;
int ret;
ret = table (TABLE_VERSION, NULL, NULL);
if (ret == -1)
exit (-errno);
exit (ret < 1 ? ret : 0);
}
], linux_table=yes, linux_table=no, linux_table=no)
AC_MSG_RESULT($linux_table)
fi
if test $linux_table = yes ; then
AC_DEFINE(HAVE_LINUX_TABLE)
fi
AM_CONDITIONAL(LINUX_TABLE, test $linux_table = yes)
;;
esac
])
AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
AC_REQUIRE([AC_CANONICAL_HOST])
AC_SUBST(libgtop_sysdeps_dir)
AC_SUBST(libgtop_use_machine_h)
AC_SUBST(libgtop_need_server)
AC_ARG_WITH(libgtop-examples,
[ --with-libgtop-examples Build the libgtop examples (default=no)],[
build_examples="$withval"], [build_examples=no])
AM_CONDITIONAL(EXAMPLES, test x"$build_examples" = xyes)
AC_ARG_ENABLE(hacker-mode,
[ --enable-hacker-mode Enable building of unstable sysdeps],
[hacker_mode="$enableval"], [hacker_mode=no])
AM_CONDITIONAL(HACKER_MODE, test x"$hacker_mode" = xyes)
if test x$hacker_mode = xyes ; then
LIBGTOP_HACKER_TESTS
fi
AC_ARG_WITH(libgtop-smp,
[ --with-libgtop-smp Enable SMP support (default-auto)],[
libgtop_smp="$withval"],[libgtop_smp=auto])
if test $libgtop_smp = auto ; then
AC_MSG_CHECKING(whether to enable SMP support)
case "$host_os" in
linux*)
libgtop_smp=yes
;;
*)
libgtop_smp=no
;;
esac
AC_MSG_RESULT($libgtop_smp)
fi
if test $libgtop_smp = yes ; then
AC_DEFINE(HAVE_LIBGTOP_SMP)
fi
AM_CONDITIONAL(LIBGTOP_SMP, test $libgtop_smp = yes)
AC_MSG_CHECKING(for libgtop sysdeps directory)
case "$host_os" in
linux*)
if test x$linux_table = xyes ; then
libgtop_sysdeps_dir=kernel
libgtop_use_machine_h=no
else
libgtop_sysdeps_dir=linux
libgtop_use_machine_h=no
libgtop_have_sysinfo=yes
fi
libgtop_need_server=no
;;
freebsd*|netbsd*|openbsd*|bsdi*)
libgtop_sysdeps_dir=freebsd
libgtop_use_machine_h=yes
libgtop_need_server=yes
libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
;;
solaris*)
libgtop_sysdeps_dir=solaris
libgtop_use_machine_h=yes
libgtop_need_server=yes
libgtop_postinstall='chgrp sys $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
;;
*)
if test x$hacker_mode = xyes ; then
case "$host_os" in
sunos4*)
#Please note that this port is obsolete and not working at
#all. It is only useful for people who want to fix it ... :-)
libgtop_sysdeps_dir=sun4
libgtop_use_machine_h=yes
libgtop_need_server=yes
;;
osf*)
libgtop_sysdeps_dir=osf1
libgtop_use_machine_h=yes
libgtop_need_server=yes
;;
*)
libgtop_sysdeps_dir=stub
libgtop_use_machine_h=no
libgtop_need_server=no
;;
esac
else
libgtop_sysdeps_dir=stub
libgtop_use_machine_h=no
libgtop_need_server=no
fi
;;
esac
test -z "$libgtop_postinstall" && libgtop_postinstall=:
AC_MSG_RESULT($libgtop_sysdeps_dir)
AC_SUBST(libgtop_sysdeps_dir)
AC_SUBST(libgtop_postinstall)
AC_SUBST(libgtop_have_sysinfo)
case "$host_os" in
*bsd*)
AC_CHECK_HEADERS(net/if_var.h)
AC_MSG_CHECKING([for I4B])
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_types.h>
#ifdef HAVE_NET_IF_VAR_H
#include <net/if_var.h>
#endif
#include <net/netisr.h>
#include <net/route.h>
#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <net/if_sppp.h>
#else
#include <i4b/sppp/if_sppp.h>
#endif
],[
size_t size = sizeof (struct sppp);
], have_i4b=yes, have_i4b=no)
AC_MSG_RESULT($have_i4b)
if test x$have_i4b = xyes; then
AC_DEFINE(HAVE_I4B)
AC_MSG_CHECKING([for I4B accounting])
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_types.h>
#ifdef HAVE_NET_IF_VAR_H
#include <net/if_var.h>
#endif
#include <net/netisr.h>
#include <net/route.h>
#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <net/if_sppp.h>
#else
#include <i4b/sppp/if_sppp.h>
#endif
#include <machine/i4b_acct.h>
],[
size_t size = sizeof (struct i4bisppp_softc);
], have_i4b_acct=yes, have_i4b_acct=no)
AC_MSG_RESULT($have_i4b_acct)
if test x$have_i4b_acct = xyes ; then
AC_DEFINE(HAVE_I4B_ACCT)
else
AC_WARN([
*** I4B accounting disabled - you won't get any PPP statistics.
*** Read "misc/i4b_acct.txt" in the LibGTop source directory
*** to see how to enable it.])
fi
fi
;;
linux*)
os_major_version=`uname -r | sed 's/-pre[[0-9]]*//' | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
os_minor_version=`uname -r | sed 's/-pre[[0-9]]*//' | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
os_micro_version=`uname -r | sed 's/-pre[[0-9]]*//' | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
os_version_expr="$os_major_version 65536 * $os_minor_version 256 * + $os_micro_version + p q"
AC_CHECK_HEADERS(linux/version.h, have_linux_version_h=yes,
have_linux_version_h=no)
if test x$have_linux_version_h = xyes ; then
version_code=`cat /usr/include/linux/version.h | \
grep \#define | grep LINUX_VERSION_CODE`
os_version_code=`echo $version_code | \
sed 's/^.*LINUX_VERSION_CODE[[ \t]]*\([[0-9]]*\).*$/\1/'`
else
os_version_code=`echo "$os_version_expr" | dc`
fi
AC_MSG_CHECKING(for Linux kernel version code)
AC_DEFINE_UNQUOTED(GLIBTOP_LINUX_VERSION_CODE, $os_version_code)
AC_MSG_RESULT($os_version_code)
;;
solaris*)
os_major_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]\)\.*\([[0-9]]*\)/\1/'`
os_minor_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]\)\.*\([[0-9]]*\)/\2/'`
os_micro_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]\)\.*\([[0-9]]*\)/\3/'`
test -z "$os_micro_version" && os_micro_version=0
os_version_expr="$os_major_version 100 * $os_minor_version 10 * + $os_micro_version + p q"
os_version_code=`echo "$os_version_expr" | dc`
AC_MSG_CHECKING(for Solaris release code)
AC_DEFINE_UNQUOTED(GLIBTOP_SOLARIS_RELEASE, $os_version_code)
AC_MSG_RESULT($os_version_code)
;;
esac
AC_MSG_CHECKING(for machine.h in libgtop sysdeps dir)
AC_MSG_RESULT($libgtop_use_machine_h)
AC_MSG_CHECKING(whether we need libgtop)
AC_MSG_RESULT($libgtop_need_server)
if test x$libgtop_need_server = xyes ; then
AC_DEFINE(NEED_LIBGTOP)
fi
if test x$libgtop_use_machine_h = xyes ; then
AC_DEFINE(HAVE_GLIBTOP_MACHINE_H)
fi
AM_CONDITIONAL(NEED_LIBGTOP, test x$libgtop_need_server = xyes)
])

View File

@@ -14,4 +14,8 @@ PKG_NAME="Gnome Top Library"
exit 1
}
. $srcdir/macros/autogen.sh
which gnome-autogen.sh || {
echo "You need to install gnome-common from the GNOME CVS"
exit 1
}
USE_GNOME2_MACROS=1 . gnome-autogen.sh

View File

@@ -22,8 +22,22 @@ AC_MSG_ERROR([
***])
fi
. $srcdir/LIBGTOP-VERSION
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
LIBGTOP_MAJOR_VERSION=1
LIBGTOP_MINOR_VERSION=90
LIBGTOP_MICRO_VERSION=1
LIBGTOP_VERSION=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION.$LIBGTOP_MICRO_VERSION
AM_INIT_AUTOMAKE(libgtop, $LIBGTOP_VERSION)
LIBGTOP_INTERFACE_AGE=1
LIBGTOP_BINARY_AGE=1
# you can set this to `-snap' for instance to create
# a `libgtop-1.x.y-snap.tar.gz' tarball.
LIBGTOP_VERSION_SUFFIX=
# Increase each time you change the client/server protocol.
LIBGTOP_SERVER_VERSION=5
LIBGTOP_VERSION_CODE=`echo "$LIBGTOP_MAJOR_VERSION 1000000 * $LIBGTOP_MINOR_VERSION 1000 * + $LIBGTOP_MICRO_VERSION + p q" | dc`
AC_SUBST(LIBGTOP_MAJOR_VERSION)
AC_SUBST(LIBGTOP_MINOR_VERSION)
@@ -35,6 +49,22 @@ AC_SUBST(LIBGTOP_VERSION)
AC_SUBST(LIBGTOP_VERSION_CODE)
AC_SUBST(LIBGTOP_VERSION_SUFFIX)
dnl This is required at several places
AC_CHECK_PROG(ac_dc_found, dc, yes, no)
if test x$ac_dc_found != xyes ; then
AC_MSG_ERROR([
*** The "dc" utility was not found on your system.
***
*** When using RedHat Linux, you need to install the "bc" package.
***
*** It is now part of the "bc" package, so you should look at
*** ftp://ftp.gnu.org/pub/gnu/bc/ if you want to compile it yourself.
***
*** Other systems and distributions may also have it in their "bc" package,
*** so if there's no "dc" one, please look for "bc".
***])
fi
# libtool versioning
LT_RELEASE=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION
LT_CURRENT=`expr $LIBGTOP_MICRO_VERSION - $LIBGTOP_INTERFACE_AGE`
@@ -47,12 +77,12 @@ AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
AM_ACLOCAL_INCLUDE(. macros)
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I ."
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
dnl AC_ARG_PROGRAM
dnl We need this at some places.
libgtop_top_builddir=`pwd`
@@ -85,42 +115,43 @@ export cross_compiling
AM_PROG_LIBTOOL
dnl Let the user enable compiler warnings
GNOME_COMPILE_WARNINGS
dnl GNOME_COMPILE_WARNINGS
GNOME_INIT_HOOK(gnome_found=yes)
dnl GNOME_INIT_HOOK(gnome_found=yes)
if test "x$gnome_found" != xyes; then
if test "x$want_gnome" != xno ; then
AC_MSG_ERROR([
*** GNOME was not found on this system. ***
*** If you want to use LibGTop without GNOME, you need
*** to give configure the --without-gnome parameter.
])
else
AC_DEFINE(WITHOUT_GNOME)
fi
GNOME_SUPPORT_CHECKS
else
if test "x$want_gnome" != xno ; then
AM_CONDITIONAL(BUILD_GNOME_SUPPORT, false)
else
GNOME_SUPPORT_CHECKS
fi
fi
dnl if test "x$gnome_found" != xyes; then
dnl if test "x$want_gnome" != xno ; then
dnl AC_MSG_ERROR([
dnl *** GNOME was not found on this system. ***
dnl
dnl *** If you want to use LibGTop without GNOME, you need
dnl *** to give configure the --without-gnome parameter.
dnl ])
dnl else
dnl AC_DEFINE(WITHOUT_GNOME)
dnl fi
dnl GNOME_SUPPORT_CHECKS
dnl else
dnl if test "x$want_gnome" != xno ; then
dnl AM_CONDITIONAL(BUILD_GNOME_SUPPORT, false)
dnl else
dnl GNOME_SUPPORT_CHECKS
dnl fi
dnl fi
AM_CONDITIONAL(BUILD_GNOME_SUPPORT, false)
AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = xyes)
GNOME_LIBGTOP_SYSDEPS
GNOME_LIBGTOP_TYPES
AC_ARG_WITH(libgtop-guile,
[ --with-libgtop-guile Build the libgtop guile interface (default=no)],
[build_guile="$withval"], [build_guile=yes])
dnl AC_ARG_WITH(libgtop-guile,
dnl [ --with-libgtop-guile Build the libgtop guile interface (default=no)],
dnl [build_guile="$withval"], [build_guile=yes])
if test x$build_guile != xno ; then
GNOME_CHECK_GUILE
fi
dnl if test x$build_guile != xno ; then
dnl GNOME_CHECK_GUILE
dnl fi
AC_ARG_WITH(libgtop-inodedb,
[ --with-libgtop-inodedb Build the inodedb stuff (default=no)],
@@ -178,11 +209,17 @@ AC_SUBST(guile_subdirs)
AM_PROG_LIBTOOL
AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(GLIB >= 1.2.0 is required for LibGTop))
GLIB_REQUIRED=1.3.10
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
dnl (1.2.0,,AC_MSG_ERROR(GLIB >= 1.2.0 is required for LibGTop))
dnl You need to uncomment the following line if you want to use
dnl libGTop without Gnome.
dnl GNOME_SUPPORT_CHECKS
GNOME_SUPPORT_CHECKS
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@@ -243,18 +280,18 @@ AC_CHECK_LIB(kvm, kvm_open,[
dnl For DEC OSF1
AC_CHECK_LIB(mach, vm_statistics)
dnl For some broken libc5 systems (Debian 1.3)
saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -D_GNU_SOURCE"
dnl For some broken libc5 systems (Debian 1.3)
saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -D_GNU_SOURCE"
GCC_NEED_DECLARATION(program_invocation_name, [
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
])
CFLAGS=$saved_CFLAGS
dnl Check for Internet sockets.
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
])
CFLAGS=$saved_CFLAGS
AC_CHECK_FUNC(socket,
[AC_CHECK_HEADER(netinet/in.h,
[AC_CHECK_HEADER(arpa/inet.h, [
@@ -277,8 +314,13 @@ AC_FUNC_STRFTIME
AC_CHECK_FUNCS(getcwd gettimeofday getwd putenv strdup strtoul uname)
dnl ## all 'es_??' are only needed for format numbers different of 'es'
ALL_LINGUAS="az da de es es_DO es_GT es_HN es_MX es_PA es_PE es_SV fi fr gl ja ko nl no pl pt_BR sk sl sv"
AM_GNOME_GETTEXT
ALL_LINGUAS="az ca da de el es es_DO es_GT es_HN es_MX es_PA es_PE es_SV fi fr ga gl hu ja ko nl no pl pt pt_BR ru sk sl sv tr uk zh_CN.GB2312 zh_TW"
GETTEXT_PACKAGE=libgtop
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
AM_GLIB_GNU_GETTEXT
AC_PATH_XTRA
@@ -322,7 +364,7 @@ if test "x$gnome_found" = xyes ; then
LIBSUPPORT="$GNOME_LIBDIR -lgnomesupport"
SUPPORTINCS="$GNOME_INCLUDEDIR"
else
LIBSUPPORT='$(top_builddir)/support/libgnomesupport.la'
LIBSUPPORT='$(top_builddir)/support/libgnomesupport-2.0.la'
SUPPORTINCS='-DNEED_GNOMESUPPORT_H -I$(top_builddir)/support -I$(top_srcdir)/support'
fi
@@ -338,7 +380,7 @@ AC_SUBST(SUPPORTINCS)
dnl These definitions are expanded in make.
LIBGTOP_LIBS='-L$(libdir)'
LIBGTOP_INCS='-I$(includedir)'
LIBGTOP_INCS='-I$(includedir)/libgtop-2.0'
if test x$libgtop_use_machine_h = xyes ; then
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_GLIBTOP_MACHINE_H"
@@ -367,7 +409,7 @@ sysdeps_dir="$libgtop_sysdeps_dir"
AC_SUBST(sysdeps_dir)
if test x$ac_cv_guile_found = xyes ; then
LIBGTOP_GUILE_LIBS="$LIBGTOP_GUILE_LIBS -lgtop_guile"
LIBGTOP_GUILE_LIBS="$LIBGTOP_GUILE_LIBS -lgtop_guile-2.0"
libgtop_guile_found=yes
else
libgtop_guile_found=no
@@ -383,11 +425,11 @@ fi
LIBGTOP_EXTRA_LIBS="$LIBGTOP_EXTRA_LIBS $GLIB_LIBS"
LIBGTOP_LIBS="$LIBGTOP_LIBS -lgtop -lgtop_sysdeps -lgtop_common"
LIBGTOP_GUILE_LIBS="$LIBGTOP_GUILE_LIBS -lgtop -lgtop_sysdeps -lgtop_common"
LIBGTOP_LIBS="$LIBGTOP_LIBS -lgtop-2.0 -lgtop_sysdeps-2.0 -lgtop_common-2.0"
LIBGTOP_GUILE_LIBS="$LIBGTOP_GUILE_LIBS -lgtop-2.0 -lgtop_sysdeps-2.0 -lgtop_common-2.0"
LIBGTOP_NAMES_LIBS="$LIBGTOP_LIBS -lgtop_names"
LIBGTOP_GUILE_NAMES_LIBS="$LIBGTOP_GUILE_LIBS -lgtop_guile_names -lgtop_names"
LIBGTOP_NAMES_LIBS="$LIBGTOP_LIBS -lgtop_names-2.0"
LIBGTOP_GUILE_NAMES_LIBS="$LIBGTOP_GUILE_LIBS -lgtop_guile_names-2.0 -lgtop_names-2.0"
LIBGTOP_LIBS="$LIBGTOP_LIBS"
LIBGTOP_NAMES_LIBS="$LIBGTOP_NAMES_LIBS"
@@ -411,12 +453,12 @@ else
guile_def=""
fi
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include -I\$(top_srcdir)/intl $SUPPORTINCS $GLIB_CFLAGS $CFLAGS $X_CFLAGS $guile_def "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_VERSION_CODE='$LIBGTOP_VERSION_CODE' -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\"'
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include $SUPPORTINCS $GLIB_CFLAGS $CFLAGS $X_CFLAGS $guile_def "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_VERSION_CODE='$LIBGTOP_VERSION_CODE' -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\"'
AC_SUBST(INCLUDES)
AC_SUBST(LIBGTOP_EXTRA_LIBS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(LIBGTOP_LIBS)
AC_SUBST(LIBGTOP_INCS)
AC_SUBST(LIBGTOP_NAMES_LIBS)
@@ -429,7 +471,7 @@ AC_SUBST(LIBGTOP_BINDIR)
AC_SUBST(LIBGTOP_SERVER)
if test x$libgtop_need_server = xyes ; then
sysdeps_suid_lib="\$(top_builddir)/sysdeps/\$(sysdeps_dir)/libgtop_sysdeps_suid.la"
sysdeps_suid_lib="\$(top_builddir)/sysdeps/\$(sysdeps_dir)/libgtop_sysdeps_suid-2.0.la"
server_programs='libgtop_server'
else
sysdeps_suid_lib=
@@ -442,7 +484,6 @@ AC_OUTPUT([
Makefile
libgtop.spec
po/Makefile.in
intl/Makefile
misc/Makefile
include/Makefile
include/glibtop/Makefile
@@ -466,4 +507,5 @@ lib/Makefile
examples/Makefile
doc/Makefile
support/Makefile
macros/Makefile])
libgtop-2.0.pc
])

10
doc/.cvsignore Normal file
View File

@@ -0,0 +1,10 @@
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

43
doc/ChangeLog Normal file
View File

@@ -0,0 +1,43 @@
2001-11-26 Abel Cheung <maddog@linux.org.hk>
* libgtop.texi, Makefile.am: Renamed to libgtop2.texi
* about.texi: Very minor update.
1999-10-18 Martin Baulig <martin@home-of-linux.org>
* about.texi: Added a note about LibGTop and GNOME.
* reference.texi (glibtop_proc_state): Fix description of the `state'
field for LibGTop 1.0.x.
1999-09-29 Martin Baulig <martin@home-of-linux.org>
* Makefile.am (MAKEINFO): Add `-I @libgtop_top_builddir@/doc' here.
1999-05-16 Martin Baulig <martin@home-of-linux.org>
* main.texi: This is now the main file which will @include all
chapter files so we can use `texinfo-multiple-files-update'.
* reference.texi: Added all missing sections with a "not yet written"
notice.
1999-05-16 Martin Baulig <martin@home-of-linux.org>
* white-paper.texi: Initial version of the LibGTop White Paper.
* Makefile.am: Create `auto-macros.texi' from `auto-macros.texi.in'
which will contain some `@set' commands for the LibGTop version etc.
* auto-macros.texi.in: New file. This is a template for
`auto-macros.texi' which will be automatically generated.
1999-05-09 Martin Baulig <martin@home-of-linux.org>
* about.texi: Split the `libgtop.texi' into one file pro chapter,
this is the "About LibGTop".
* reference.texi: The "LibGTop Reference Manual".
* libgtop.texi: Initial version of the new LibGTop Manual.

45
doc/Makefile.am Normal file
View File

@@ -0,0 +1,45 @@
info_TEXINFOS = libgtop2.texi
libgtop2_TEXINFOS = libgtop2.texi about.texi reference.texi \
auto-macros.texi version.texi main.texi \
white-paper.texi
MAKEINFO += -I @libgtop_top_builddir@/doc
EXTRA_DIST = auto-macros.texi.in
auto-macros.texi: auto-macros.texi.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
sed -e 's#\%LIBGTOP_LIBDIR\%#$(libdir)#g' \
-e 's#\%LIBGTOP_INCLUDEDIR\%#$(includedir)/libgtop-2.0#g' \
-e 's#\%LIBGTOP_DATADIR\%#$(datadir)#g' \
-e 's#\%LIBGTOP_EXTRA_LIBS\%#$(LIBGTOP_EXTRA_LIBS)#g' \
-e 's#\%LIBGTOP_LIBS\%#$(LIBGTOP_LIBS)#g' \
-e 's#\%LIBGTOP_INCS\%#$(LIBGTOP_INCS)#g' \
-e 's#\%LIBGTOP_NAMES_LIBS\%#$(LIBGTOP_NAMES_LIBS)#g' \
-e 's#\%LIBGTOP_NAMES_INCS\%#$(LIBGTOP_NAMES_INCS)#g' \
-e 's#\%LIBGTOP_GUILE_LIBS\%#$(LIBGTOP_GUILE_LIBS)#g' \
-e 's#\%LIBGTOP_GUILE_INCS\%#$(LIBGTOP_GUILE_INCS)#g' \
-e 's#\%LIBGTOP_GUILE_NAMES_LIBS\%#$(LIBGTOP_GUILE_NAMES_LIBS)#g' \
-e 's#\%LIBGTOP_GUILE_NAMES_INCS\%#$(LIBGTOP_GUILE_NAMES_INCS)#g' \
-e 's#\%LIBGTOP_BINDIR\%#$(LIBGTOP_BINDIR)#g' \
-e 's#\%LIBGTOP_SERVER\%#$(LIBGTOP_SERVER)#g' \
-e 's#\%LIBGTOP_MAJOR_VERSION\%#$(LIBGTOP_MAJOR_VERSION)#g' \
-e 's#\%LIBGTOP_MINOR_VERSION\%#$(LIBGTOP_MINOR_VERSION)#g' \
-e 's#\%LIBGTOP_MICRO_VERSION\%#$(LIBGTOP_MICRO_VERSION)#g' \
-e 's#\%LIBGTOP_VERSION\%#$(LIBGTOP_VERSION)#g' \
-e 's#\%LIBGTOP_VERSION_CODE\%#$(LIBGTOP_VERSION_CODE)#g' \
-e 's#\%LIBGTOP_SERVER_VERSION\%#$(LIBGTOP_SERVER_VERSION)#g' \
-e 's#\%libgtop_sysdeps_dir\%#$(libgtop_sysdeps_dir)#g' \
-e 's#\%libgtop_need_server\%#$(libgtop_need_server)#g' \
-e 's#\%libgtop_use_machine_h\%#$(libgtop_use_machine_h)#g' \
-e 's#\%libgtop_guile_found\%#$(libgtop_guile_found)#g' \
-e 's#\%libgtop_want_examples\%#$(libgtop_want_examples)#g' \
< $(srcdir)/auto-macros.texi.in > auto-macros.tmp
echo '@c Set this if this is LibGTop 1.1.x' >> auto-macros.tmp
if [ $(LIBGTOP_VERSION_CODE) -ge 1001000 ] ; then \
echo '@set LIBGTOP-1-1' >> auto-macros.tmp ; \
else \
echo '@clear LIBGTOP-1-1' >> auto-macros.tmp ; \
fi
mv auto-macros.tmp auto-macros.texi

View File

@@ -33,10 +33,10 @@ latest release tarballs from
@noindent
or any of its mirror sites.
The latest stable version of LibGTop is 1.0.1 which is also the one that comes
together with GNOME 1.0. In CVS, there is a @code{LIBGTOP_STABLE_1_0} branch
which is rooted at the @code{LIBGTOP_1_0_1} tag while actual development occurs
in the @code{HEAD} which currently has version 1.1.0.
The latest stable version of LibGTop is 1.0.12 which is also the one that comes
together with GNOME 1.0. It belongs to @code{LIBGTOP_STABLE_1_0} branch in CVS.
Actual development occurs in the @code{libgtop-GNOME-2-0-port} which is
currently versioned 1.90.0.
@node Supported Platforms, Mailing List, Availability, About
@section Supported Platforms
@@ -47,7 +47,7 @@ The stable branch currently supports the following platforms:
@item All versions of Linux
LibGTop was tested under Linux 2.0.x and 2.2.x on the ix86 and the alpha, but
it should also work without problems on SparcLinux.
it should also work without problems on SparcLinux or Linux 2.4.x.
Note: I'm speaking of the Linux kernel here, not the GNU/Linux operating system.
@@ -116,6 +116,7 @@ me a lot in the early beginning.
@item Timur Bakeyev for the BSDI port.
@item Drazen Kacar and the other people on the LibGTop development mailing
list for the Solaris port.
@item Kevin Vandersloot for the effort to port to GNOME 2.0.
@item All people sending me patches, having good ideas, ...
@item Everyone I have forgotten in this list ...
@end itemize

12
doc/auto-macros.texi.in Normal file
View File

@@ -0,0 +1,12 @@
@c LibGTop major, minor and micro version.
@set LIBGTOP_MAJOR_VERSION %LIBGTOP_MAJOR_VERSION%
@set LIBGTOP_MINOR_VERSION %LIBGTOP_MINOR_VERSION%
@set LIBGTOP_MICRO_VERSION %LIBGTOP_MICRO_VERSION%
@c LibGTop version and numerical version code ("1.234.567" -> 1234567).
@set LIBGTOP_VERSION "%LIBGTOP_VERSION%"
@set LIBGTOP_VERSION_CODE %LIBGTOP_VERSION_CODE%
@c LibGTop server version, increased each time the protocol changes.
@set LIBGTOP_SERVER_VERSION %LIBGTOP_SERVER_VERSION%

89
doc/libgtop2.texi Normal file
View File

@@ -0,0 +1,89 @@
\input texinfo @c -*-texinfo-*-
@c %**start of header
@setfilename libgtop2.info
@settitle LibGTop Reference Manual
@setchapternewpage odd
@c %**end of header
@include auto-macros.texi
@include version.texi
@ifinfo
This is the LibGTop Reference Manual version @value{VERSION}
(last modified @value{UPDATED}).
Copyright 1999 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim
copies of this manual provided the copyright notice and
this permission notice are preserved on all copies.
@ignore
Permission is granted to process this file through TeX
and print the results, provided the printed document
carries a copying permission notice identical to this
one except for the removal of this paragraph (this
paragraph not being relevant to the printed manual).
@end ignore
Permission is granted to copy and distribute modified
versions of this manual under the conditions for
verbatim copying, provided also that the sections
entitled ``Copying'' and ``GNU General Public License''
are included exactly as in the original, and provided
that the entire resulting derived work is distributed
under the terms of a permission notice identical to this
one.
Permission is granted to copy and distribute
translations of this manual into another language,
under the above conditions for modified versions,
except that this permission notice may be stated in a
translation approved by the Free Software Foundation.
@format
@dircategory Libraries:
@direntry
* LibGTop2: (libgtop2). Library to get system specific data
such as cpu and memory usage, active
processes
@end direntry
@end format
@end ifinfo
@titlepage
@title LibGTop Reference Manual
@subtitle Version @value{VERSION} - @value{UPDATED}
@author Martin Baulig
@page
@vskip 0pt plus 1filll
Copyright @copyright{} 1999 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim
copies of this manual provided the copyright notice and
this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified
versions of this manual under the conditions for
verbatim copying, provided also that the sections
entitled ``Copying'' and ``GNU General Public License''
are included exactly as in the original, and provided
that the entire resulting derived work is distributed
under the terms of a permission notice identical to this
one.
Permission is granted to copy and distribute
translations of this manual into another language,
under the above conditions for modified versions,
except that this permission notice may be stated in a
translation approved by the Free Software Foundation.
@end titlepage
@contents
@include main.texi
@bye

90
doc/white-paper.texi Normal file
View File

@@ -0,0 +1,90 @@
@node White Paper, Reference Manual, About, Top
@chapter LibGTop White Paper
@menu
* Introduction:: Introduction
* Overview:: Overview
@end menu
@node Introduction, Overview, White Paper, White Paper
@section Introduction
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.
@itemize @bullet
@item
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.
@item
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).
@item
Linux has a very nice @file{/proc} filesystem, but reading and parsing
@file{/proc} is very slow and inefficient.
@item
Solaris is a bit better, but you still need to be in the @code{sys} group or
even root to get some data.
@end itemize
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.
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.
@node Overview, , Introduction, White Paper
@section Overview
This section should give you a short overview on how LibGTop was developed, which
things needed to be considered and how it works.
@menu
* Interface Design:: Things that need to be considered
* Server Implementation:: The LibGTop "server"
@end menu
@node Interface Design, Server Implementation, Overview, Overview
@subsection Interface Design
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.
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.
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.
@node Server Implementation, , Interface Design, Overview
@subsection Server Implementation
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.
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.

View File

@@ -22,9 +22,9 @@ EXTRA_PROGRAMS = first_static second_static \
timings_static
first_SOURCES = first.c
first_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
first_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
first_static_SOURCES = $(first_SOURCES)
@@ -32,9 +32,9 @@ first_static_LDADD = $(first_LDADD)
first_static_LDFLAGS = -static
second_SOURCES = second.c
second_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
second_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
second_static_SOURCES = $(second_SOURCES)
@@ -42,9 +42,9 @@ second_static_LDADD = $(second_LDADD)
second_static_LDFLAGS = -static
procmap_SOURCES = procmap.c
procmap_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
procmap_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
@@ -54,9 +54,9 @@ procmap_static_LDADD = $(procmap_LDADD)
procmap_static_LDFLAGS = -static
netload_SOURCES = netload.c
netload_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
netload_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
netload_static_SOURCES = $(netload_SOURCES)
@@ -73,15 +73,15 @@ sysdeps_static_SOURCES = $(sysdeps_SOURCES)
sysdeps_static_LDADD = $(sysdeps_LDADD)
sysdeps_static_LDFLAGS = -static
third_guile_names_LIBS = $(top_builddir)/sysdeps/guile/names/libgtop_guile_names.la
third_names_LIBS = $(top_builddir)/sysdeps/names/libgtop_names.la
third_guile_names_LIBS = $(top_builddir)/sysdeps/guile/names/libgtop_guile_names-2.0.la
third_names_LIBS = $(top_builddir)/sysdeps/names/libgtop_names-2.0.la
third_SOURCES = third.c
third_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile.la \
third_LDADD = $(top_builddir)/sysdeps/guile/libgtop_guile-2.0.la \
$(third_guile_names_LIBS) $(third_names_LIBS) \
$(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
$(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@GUILE_LIBS@ @LIBSUPPORT@ @INTLLIBS@
third_static_SOURCES = $(third_SOURCES)
@@ -89,9 +89,9 @@ third_static_LDADD = $(third_LDADD)
third_static_LDFLAGS = -static
mountlist_SOURCES = mountlist.c
mountlist_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
mountlist_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
mountlist_static_SOURCES= $(mountlist_SOURCES)
@@ -100,9 +100,9 @@ mountlist_static_LDFLAGS= -static
smp_SOURCES = smp.c
smp_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
smp_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
smp_static_SOURCES = $(smp_SOURCES)
@@ -110,9 +110,9 @@ smp_static_LDADD = $(smp_LDADD)
smp_static_LDFLAGS = -static
timings_SOURCES = timings.c
timings_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
timings_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
timings_static_SOURCES = $(timings_SOURCES)

View File

@@ -1,4 +1,4 @@
glibtopdir = $(includedir)/glibtop
glibtopdir = $(includedir)/libgtop-2.0/glibtop
glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
sem_limits.h uptime.h command.h mem.h proclist.h \

View File

@@ -2,13 +2,13 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop.la
lib_LTLIBRARIES = libgtop-2.0.la
libgtop_la_SOURCES = init.c open.c close.c command.c read.c \
libgtop_2_0_la_SOURCES = init.c open.c close.c command.c read.c \
read_data.c write.c lib.c parameter.c \
sysdeps.c
libgtop_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
BUILT_SOURCES = lib.c

13
libgtop-2.0.pc.in Normal file
View File

@@ -0,0 +1,13 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libgtop
Description: Portable System Access Library
Requires: glib-2.0
Version: @VERSION@
Libs: -L${libdir} @LIBGTOP_LIBS@
Cflags: -I${includedir}/libgtop-2.0

View File

@@ -7,3 +7,5 @@ cat-id-tbl.c
libgtop.pot
Makefile.in.in
messages
stamp-cat-id
po2tbl.sed

View File

@@ -1,3 +1,56 @@
2001-11-26 Abel Cheung <maddog@linux.org.hk>
* stamp-cat-id: Removed, and add it to .cvsignore.
2001-10-30 Zbigniew Chyla <cyba@gnome.pl>
* pl.po: Updated Polish translation by
GNOME PL Team <translators@gnome.pl>.
2001-10-17 Carlos Perelló Marín <carlos@gnome-db.org>
* pt.po: Added by Duarte Loreto <happyguy_pt@hotmail.com>
2001-09-16 Abel Cheung <maddog@linux.org.hk>
* zh_TW.po: Added traditoinal Chinese translation.
2001-07-16 Kjartan Maraas <kmaraas@gnome.org>
* nn.po: Added Norwegian (nynorsk) translation.
2001-03-25 Fatih Demir <kabalak@gtranslator.org>
* tr.po: %100'ification.
2001-03-23 Fatih Demir <kabalak@gtranslator.org>
* tr.po: Updated Turkish translation by Görkem.
2001-03-15 Valek Filippov <frob@df.ru>
* ru.po: Updated russian translation.
2001-03-09 Pablo Saratxaga <pablo@mandrakesoft.com>
* az.po: converted to 8bit encoding as requested for Gnome 1.4
2001-02-25 Simos Xenitellis <simos@hellug.gr>
* el.po: Updated Greek translation.
2001-02-23 Simos Xenitellis <simos@hellug.gr>
* el.po: Some more strings.
2001-02-19 Simos Xenitellis <simos@hellug.gr>
* el.po: Update of Greek translation.
2001-02-15 Christian Meyer <cm@ggtt.de>
* de.po: Some minor changes.
2001-02-14 Jarkko Ranta <jjranta@cc.joensuu.fi>
* fi.po: Updated Finnish translation

View File

@@ -51,8 +51,8 @@ src/daemon/main.c
src/daemon/server.c
src/daemon/slave.c
src/daemon/version.c
src/inodedb/file_by_inode.c
src/inodedb/mkinodedb.c
src/inodedb/file_by_inode2.c
src/inodedb/mkinodedb2.c
support/easy-vsnprintf.c
support/error.c
support/error.h

580
po/az.po

File diff suppressed because it is too large Load Diff

View File

@@ -1,15 +1,16 @@
# German translation of libgtop
# Martin Baulig <martin@home-of-linux.org>, 1998, 1999, 2000
# Christian Meyer <linux@chrisime.de>, 2000.
# Christian Meyer <cm@ggtt.de>, 2000, 2001.
#
# hmm... ein paar englische Strings sollte man lieber in Ruhe lassen...! -cm-
#
msgid ""
msgstr ""
"Project-Id-Version: libgtop cvs\n"
"Project-Id-Version: libgtop 1.0.x\n"
"POT-Creation-Date: 2001-02-13 13:30+0100\n"
"PO-Revision-Date: 2000-09-20 12:48+0200\n"
"Last-Translator: Christian Meyer <linux@chrisime.de>\n"
"Language-Team: deutsch <gnome-de@gnome.org>\n"
"PO-Revision-Date: 2001-02-15 17:03+0100\n"
"Last-Translator: Christian Meyer <cm@ggtt.de>\n"
"Language-Team: German <gnome-de@gnome.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
@@ -132,7 +133,7 @@ msgstr "AUSF
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "Nicht in den Hintergrund aufteilen"
msgstr "Nicht in den Hintergrund abspalten"
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
@@ -225,15 +226,15 @@ msgstr "CPU-Zeit insgesamt"
#: sysdeps/names/cpu.c:44
msgid "CPU Time in User Mode"
msgstr "CPU-Zeit in Benutzer-Modus"
msgstr "CPU-Zeit in Benutzermodus"
#: sysdeps/names/cpu.c:45
msgid "CPU Time in User Mode (nice)"
msgstr "CPU-Zeit in Benutzer-Modus (Priorität)"
msgstr "CPU-Zeit in Benutzermodus (Priorität)"
#: sysdeps/names/cpu.c:46
msgid "CPU Time in System Mode"
msgstr "CPU-Zeit in System-Modus"
msgstr "CPU-Zeit in Systemmodus"
#: sysdeps/names/cpu.c:47
msgid "CPU Time in the Idle Task"
@@ -249,15 +250,15 @@ msgstr "CPU-Zeit aller Prozessoren insgesamt"
#: sysdeps/names/cpu.c:50
msgid "SMP CPU Time in User Mode"
msgstr "CPU-Zeit aller Prozessoren im Benutzer-Modus"
msgstr "CPU-Zeit aller Prozessoren im Benutzermodus"
#: sysdeps/names/cpu.c:51
msgid "SMP CPU Time in User Mode (nice)"
msgstr "CPU-Zeit aller Prozessoren im Benutzer-Modus (Priorität)"
msgstr "CPU-Zeit aller Prozessoren im Benutzermodus (Priorität)"
#: sysdeps/names/cpu.c:52
msgid "SMP CPU Time in System Mode"
msgstr "CPU-Zeit aller Prozessoren im System-Modus"
msgstr "CPU-Zeit aller Prozessoren im Systemmodus"
#: sysdeps/names/cpu.c:53
msgid "SMP CPU Time in the Idle Task"
@@ -289,7 +290,7 @@ msgstr "Anzahl der `Clock'-Impulse, die das System im Leerlauf war"
#: sysdeps/names/cpu.c:63
msgid "Tick frequency (default is 100)"
msgstr "Impulsfrequenz (Default ist 100)"
msgstr "Impulsfrequenz (Vorgabe ist 100)"
#: sysdeps/names/fsusage.c:39 sysdeps/names/fsusage.c:48
msgid "Total blocks"
@@ -325,11 +326,11 @@ msgstr "Systemlast"
#: sysdeps/names/loadavg.c:40
msgid "Running Tasks"
msgstr "Laufende Jobs"
msgstr "Laufende Tasks"
#: sysdeps/names/loadavg.c:41
msgid "Number of Tasks"
msgstr "Anzahl Jobs"
msgstr "Anzahl Tasks"
#: sysdeps/names/loadavg.c:42 sysdeps/names/loadavg.c:50
msgid "Last PID"
@@ -341,11 +342,11 @@ msgstr "Anzahl gleichzeitig laufender Jobs im Mittel
#: sysdeps/names/loadavg.c:48
msgid "Number of tasks currently running"
msgstr "Anzahl der momentan laufenden Jobs"
msgstr "Anzahl der momentan laufenden Tasks"
#: sysdeps/names/loadavg.c:49
msgid "Total number of tasks"
msgstr "Anzahl Jobs insgesamt"
msgstr "Anzahl Tasks insgesamt"
#: sysdeps/names/mem.c:41
msgid "Total Memory"
@@ -411,7 +412,7 @@ msgstr "Speicher in gesperrten Seiten in kB"
#: sysdeps/names/proclist.c:38 sysdeps/names/proclist.c:45
#: sysdeps/names/procmap.c:38 sysdeps/names/procmap.c:45
msgid "Number of list elements"
msgstr "Zahl der Listen-Elemente"
msgstr "Zahl der Listenelemente"
#: sysdeps/names/mountlist.c:39 sysdeps/names/mountlist.c:46
#: sysdeps/names/proclist.c:39 sysdeps/names/proclist.c:46
@@ -439,7 +440,7 @@ msgstr "Maximale Gr
#: sysdeps/names/msg_limits.c:43 sysdeps/names/msg_limits.c:54
msgid "Default max size of queue"
msgstr "Standardmäßige Größe der Warteschlange"
msgstr "Maximale Größe der Warteschlange (Vorgabe)"
#: sysdeps/names/msg_limits.c:44 sysdeps/names/msg_limits.c:55
msgid "Max queues system wide"
@@ -835,7 +836,7 @@ msgstr "Dateiname des Programms im Aufruf von exec()"
#: sysdeps/names/procstate.c:46
msgid "Single-Char code for process state (S=sleeping)"
msgstr "Prozessstatus (S=schläft)"
msgstr "Single-Char Code für Prozessstatus (S=schläft)"
#: sysdeps/names/procstate.c:47
msgid "UID of process"
@@ -1037,7 +1038,7 @@ msgstr "Standard UNIX `nice' Wert des Prozesses"
#: sysdeps/names/sem_limits.c:42 sysdeps/names/sem_limits.c:56
msgid "Number of entries in semaphore map"
msgstr "Anzahl Einträge in der Zeichenträger-Tabelle"
msgstr "Anzahl Einträge in der Zeichenträgertabelle"
#: sysdeps/names/sem_limits.c:43 sysdeps/names/sem_limits.c:57
msgid "Max number of arrays"
@@ -1161,7 +1162,7 @@ msgstr "Limits f
#: sysdeps/names/sysdeps.c:57 sysdeps/names/sysdeps.c:84
msgid "Semaphore Set Limits"
msgstr "Festgelegtes Zeichenträger-Limit"
msgstr "Festgelegtes Zeichenträgerlimit"
#: sysdeps/names/sysdeps.c:58 sysdeps/names/sysdeps.c:85
msgid "List of running Processes"
@@ -1169,7 +1170,7 @@ msgstr "Liste derzeitiger Prozesse"
#: sysdeps/names/sysdeps.c:59 sysdeps/names/sysdeps.c:86
msgid "Process Status information"
msgstr "Prozess Statusinformation"
msgstr "Prozess-Statusinformation"
#: sysdeps/names/sysdeps.c:60 sysdeps/names/sysdeps.c:87
msgid "Process UID and TTY information"
@@ -1197,7 +1198,7 @@ msgstr "Prozess-Segmentinformation"
#: sysdeps/names/sysdeps.c:66
msgid "Process Arguments"
msgstr "Prozessargumente"
msgstr "Prozess-Argumente"
#: sysdeps/names/sysdeps.c:67 sysdeps/names/sysdeps.c:94
msgid "Process Memory Map"
@@ -1290,7 +1291,7 @@ msgstr "Segmentverletzung"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
msgid "Bad argument to system call"
msgstr "Falsches Argument für Systemaufruf"
msgstr "Ungültiges Argument für Systemaufruf"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
msgid "Broken pipe"
@@ -1314,7 +1315,7 @@ msgstr "Stoppen"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
msgid "Keyboard stop"
msgstr "Keyboard stopp"
msgstr "Keyboard-Stopp"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
msgid "Continue"
@@ -1326,15 +1327,15 @@ msgstr "Kind-Status hat sich ge
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
msgid "Background read from tty"
msgstr "Background read von tty"
msgstr "Hintergrundlesen von tty"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
msgid "Background write to tty"
msgstr "Background write auf tty"
msgstr "Hintergrundschreiben auf tty"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
msgid "I/O now possible"
msgstr "I/O nun möglich"
msgstr "E/A nun möglich"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
msgid "CPU limit exceeded"
@@ -1350,7 +1351,7 @@ msgstr "Virtuelle Alarmuhr"
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
msgid "Profiling alarm clock"
msgstr "Profiling alarm clock"
msgstr "Genaue Alarmuhr"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
msgid "Window size change"

1215
po/el.po

File diff suppressed because it is too large Load Diff

467
po/ga.po
View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop CVS\n"
"POT-Creation-Date: 2000-05-14 17:02+0200\n"
"POT-Creation-Date: 2001-03-09 17:27+0100\n"
"PO-Revision-Date: 2000-03-09 12:39+000\n"
"Last-Translator: Alastair McKinstry <mckinstry@computer.org>\n"
"Language-Team: Irish <ga@li.org>\n"
@@ -13,6 +13,206 @@ msgstr ""
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
#: examples/smp.c:68
#, c-format
msgid "Ticks (%ld per second):"
msgstr ""
#: examples/smp.c:71
msgid "Total"
msgstr ""
#: examples/smp.c:71 sysdeps/names/mem.c:47
msgid "User"
msgstr "Úsáidoeir"
#: examples/smp.c:71 sysdeps/names/procuid.c:58
msgid "Nice"
msgstr "Deas"
#: examples/smp.c:71
msgid "Sys"
msgstr ""
#: examples/smp.c:71
msgid "Idle"
msgstr ""
#: examples/smp.c:73
#, c-format
msgid ""
"CPU (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n"
"\n"
msgstr ""
#: examples/smp.c:77
#, c-format
msgid "CPU %3d (0x%08lx): %12lu %12lu %12lu %12lu %12lu\n"
msgstr ""
#: examples/smp.c:94
msgid "Percent:"
msgstr ""
#: examples/smp.c:95
msgid "Total (%)"
msgstr ""
#: examples/smp.c:95
#, fuzzy
msgid "User (%)"
msgstr "Úsáidoeir"
#: examples/smp.c:95
#, fuzzy
msgid "Nice (%)"
msgstr "Deas"
#: examples/smp.c:95
msgid "Sys (%)"
msgstr ""
#: examples/smp.c:96
msgid "Idle (%)"
msgstr ""
#: examples/smp.c:98
#, c-format
msgid ""
"CPU (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
"\n"
msgstr ""
#: examples/smp.c:114
#, c-format
msgid "CPU %3d (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
msgstr ""
#: examples/smp.c:120
msgid "Spin:"
msgstr ""
#: lib/read.c:75
#, c-format
msgid "read %d bytes"
msgstr ""
#: lib/read_data.c:49
msgid "read data size"
msgstr ""
#: lib/read_data.c:66
#, c-format
msgid "read data %d bytes"
msgstr ""
#: lib/write.c:48
#, c-format
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"
"Run '%s --help' to see a full list of available command line options.\n"
msgstr ""
#: support/error.c:109
msgid "Unknown system error"
msgstr "éarraid coráis anathnid"
#: support/getopt.c:669
#, c-format
msgid "%s: option `%s' is ambiguous\n"
msgstr ""
#: support/getopt.c:693
#, c-format
msgid "%s: option `--%s' doesn't allow an argument\n"
msgstr ""
#: support/getopt.c:698
#, c-format
msgid "%s: option `%c%s' doesn't allow an argument\n"
msgstr ""
#: support/getopt.c:715 support/getopt.c:888
#, c-format
msgid "%s: option `%s' requires an argument\n"
msgstr ""
#. --option
#: support/getopt.c:744
#, c-format
msgid "%s: unrecognized option `--%s'\n"
msgstr ""
#. +option or -option
#: support/getopt.c:748
#, c-format
msgid "%s: unrecognized option `%c%s'\n"
msgstr ""
#. 1003.2 specifies the format of this message.
#: support/getopt.c:774
#, c-format
msgid "%s: illegal option -- %c\n"
msgstr "%s: droch rogha -- %c\n"
#: support/getopt.c:777
#, c-format
msgid "%s: invalid option -- %c\n"
msgstr "%s: droch rogha -- %c\n"
#. 1003.2 specifies the format of this message.
#: support/getopt.c:807 support/getopt.c:937
#, c-format
msgid "%s: option requires an argument -- %c\n"
msgstr ""
#: support/getopt.c:854
#, c-format
msgid "%s: option `-W %s' is ambiguous\n"
msgstr ""
#: support/getopt.c:872
#, c-format
msgid "%s: option `-W %s' doesn't allow an argument\n"
msgstr ""
#: sysdeps/names/cpu.c:43
msgid "Total CPU Time"
msgstr "Am CPU Iomlán"
@@ -161,10 +361,6 @@ msgstr "Maol
msgid "Cached"
msgstr "Taisceáidthe"
#: sysdeps/names/mem.c:47
msgid "User"
msgstr "Úsáidoeir"
#: sysdeps/names/mem.c:48
msgid "Locked"
msgstr ""
@@ -249,6 +445,99 @@ msgstr ""
msgid "Number of system message headers"
msgstr ""
#: sysdeps/names/netload.c:45 sysdeps/names/netload.c:63
msgid "Interface Flags"
msgstr ""
#: sysdeps/names/netload.c:46
msgid "MTU"
msgstr ""
#: sysdeps/names/netload.c:47 sysdeps/names/netload.c:65
msgid "Subnet"
msgstr ""
#: sysdeps/names/netload.c:48 sysdeps/names/netload.c:66
msgid "Address"
msgstr ""
#: sysdeps/names/netload.c:49 sysdeps/names/netload.c:67
#, fuzzy
msgid "Packets In"
msgstr "Leathanach Istigh"
#: sysdeps/names/netload.c:50 sysdeps/names/netload.c:68
#, fuzzy
msgid "Packets Out"
msgstr "Leathanach Amach"
#: sysdeps/names/netload.c:51 sysdeps/names/netload.c:69
msgid "Packets Total"
msgstr ""
#: sysdeps/names/netload.c:52 sysdeps/names/netload.c:70
msgid "Bytes In"
msgstr ""
#: sysdeps/names/netload.c:53 sysdeps/names/netload.c:71
msgid "Bytes Out"
msgstr ""
#: sysdeps/names/netload.c:54 sysdeps/names/netload.c:72
msgid "Bytes Total"
msgstr ""
#: sysdeps/names/netload.c:55 sysdeps/names/netload.c:73
msgid "Errors In"
msgstr ""
#: sysdeps/names/netload.c:56 sysdeps/names/netload.c:74
msgid "Errors Out"
msgstr ""
#: sysdeps/names/netload.c:57 sysdeps/names/netload.c:75
msgid "Errors Total"
msgstr ""
#: sysdeps/names/netload.c:58 sysdeps/names/netload.c:76
msgid "Collisions"
msgstr ""
#: sysdeps/names/netload.c:64
msgid "Maximum Transfer Unit"
msgstr ""
#: sysdeps/names/ppp.c:38 sysdeps/names/ppp.c:45
#, fuzzy
msgid "PPP State"
msgstr "Sonraí PPP"
#: sysdeps/names/ppp.c:39
msgid "Input bytes"
msgstr ""
#: sysdeps/names/ppp.c:40
msgid "Output bytes"
msgstr ""
#: sysdeps/names/ppp.c:46
#, fuzzy
msgid "Number of input bytes"
msgstr "Uimhir na Tascaí"
#: sysdeps/names/ppp.c:47
#, fuzzy
msgid "Number of output bytes"
msgstr "Uimhir na Tascaí"
#: sysdeps/names/procargs.c:38 sysdeps/names/procmem.c:47
msgid "Size"
msgstr "Toirt"
#: sysdeps/names/procargs.c:43
msgid "Length in bytes of the returned string."
msgstr ""
# NOTE:
# Don't try translating the following; instead translate their
# popup hints that explain them.
@@ -351,10 +640,6 @@ msgstr ""
msgid "This is the textual name of the `nwchan' field."
msgstr ""
#: sysdeps/names/procmem.c:47
msgid "Size"
msgstr "Toirt"
#: sysdeps/names/procmem.c:47
msgid "Virtual"
msgstr "Fíoúil"
@@ -668,10 +953,6 @@ msgstr "TPGid"
msgid "Priority"
msgstr "Tosaíocht"
#: sysdeps/names/procuid.c:58
msgid "Nice"
msgstr "Deas"
#: sysdeps/names/procuid.c:63
msgid "User ID"
msgstr "ID Úsáideoir"
@@ -924,125 +1205,130 @@ msgstr ""
msgid "Time in seconds the system spent in the idle task since system boot"
msgstr ""
#: support/error.c:109
msgid "Unknown system error"
msgstr "éarraid coráis anathnid"
#: support/getopt.c:669
#, c-format
msgid "%s: option `%s' is ambiguous\n"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
msgid "Hangup"
msgstr ""
#: support/getopt.c:693
#, c-format
msgid "%s: option `--%s' doesn't allow an argument\n"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
msgid "Interrupt"
msgstr ""
#: support/getopt.c:698
#, c-format
msgid "%s: option `%c%s' doesn't allow an argument\n"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
msgid "Quit"
msgstr ""
#: support/getopt.c:715 support/getopt.c:888
#, c-format
msgid "%s: option `%s' requires an argument\n"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
msgid "Illegal instruction"
msgstr ""
#. --option
#: support/getopt.c:744
#, c-format
msgid "%s: unrecognized option `--%s'\n"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
msgid "Trace trap"
msgstr ""
#. +option or -option
#: support/getopt.c:748
#, c-format
msgid "%s: unrecognized option `%c%s'\n"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
msgid "Abort"
msgstr ""
#. 1003.2 specifies the format of this message.
#: support/getopt.c:774
#, c-format
msgid "%s: illegal option -- %c\n"
msgstr "%s: droch rogha -- %c\n"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
#, fuzzy
msgid "EMT error"
msgstr "Gan earráid"
#: support/getopt.c:777
#, c-format
msgid "%s: invalid option -- %c\n"
msgstr "%s: droch rogha -- %c\n"
#. 1003.2 specifies the format of this message.
#: support/getopt.c:807 support/getopt.c:937
#, c-format
msgid "%s: option requires an argument -- %c\n"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
msgid "Floating-point exception"
msgstr ""
#: support/getopt.c:854
#, c-format
msgid "%s: option `-W %s' is ambiguous\n"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
msgid "Kill"
msgstr ""
#: support/getopt.c:872
#, c-format
msgid "%s: option `-W %s' doesn't allow an argument\n"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
#, fuzzy
msgid "Bus error"
msgstr "Gan earráid"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
msgid "Segmentation violation"
msgstr ""
#: lib/read.c:75
#, c-format
msgid "read %d bytes"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
msgid "Bad argument to system call"
msgstr ""
#: lib/read_data.c:49
msgid "read data size"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
msgid "Broken pipe"
msgstr ""
#: lib/read_data.c:66
#, c-format
msgid "read data %d bytes"
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
msgid "Alarm clock"
msgstr ""
#: lib/write.c:48
#, c-format
msgid "write %d bytes"
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
msgid "Termination"
msgstr ""
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
msgid "Urgent condition on socket"
msgstr ""
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
msgid "Stop"
msgstr ""
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
msgid "Keyboard stop"
msgstr ""
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
msgid "Continue"
msgstr ""
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
msgid "Child status has changed"
msgstr ""
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
msgid "Background read from tty"
msgstr ""
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
msgid "Background write to tty"
msgstr ""
#: src/daemon/gnuserv.c:454
msgid "INETD"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
msgid "I/O now possible"
msgstr ""
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"
"Run '%s --help' to see a full list of available command line options.\n"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
msgid "CPU limit exceeded"
msgstr ""
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
msgid "File size limit exceeded"
msgstr ""
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
msgid "Virtual alarm clock"
msgstr ""
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
msgid "Profiling alarm clock"
msgstr ""
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
msgid "Window size change"
msgstr ""
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
msgid "Information request"
msgstr ""
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
msgid "User defined signal 1"
msgstr ""
#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
msgid "User defined signal 2"
msgstr ""
#, fuzzy
@@ -1104,9 +1390,6 @@ msgstr ""
#~ msgid "Filesystem Group ID"
#~ msgstr "ID Grupa Coráschomad"
#~ msgid "No error"
#~ msgstr "Gan earráid"
#, fuzzy
#~ msgid "Unknown error"
#~ msgstr "éarraid coráis anathnid"

1498
po/nn.po Normal file

File diff suppressed because it is too large Load Diff

1035
po/pl.po

File diff suppressed because it is too large Load Diff

1347
po/pt.po Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,6 @@
#
# E. A. Tacão <tacao@conectiva.com.br>, 2001
#
msgid ""
msgstr ""
"Project-Id-Version: LibGTOP\n"
@@ -6,7 +9,7 @@ msgstr ""
"Last-Translator: E. A. Tacão <tacao@conectiva.com.br>\n"
"Language-Team: Brazilian Portuguese <ldp-br@bazar.conectiva.com.br>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO 8859-1\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 0.6\n"

View File

@@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop-1.0.1\n"
"POT-Creation-Date: 2001-02-08 14:08+0300\n"
"PO-Revision-Date: 2001-02-08 14:47+03:00\n"
"POT-Creation-Date: 2001-03-15 21:42+0300\n"
"PO-Revision-Date: 2001-03-15 21:46+03:00\n"
"Last-Translator: Valek Filippov <flpd@mfil.ru>\n"
"Language-Team: Russian <ru@li.org>\n"
"MIME-Version: 1.0\n"
@@ -43,7 +43,9 @@ msgstr "
msgid ""
"CPU (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n"
"\n"
msgstr "ãðõ (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n\n"
msgstr ""
"ãðõ (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n"
"\n"
#: examples/smp.c:77
#, c-format
@@ -79,7 +81,9 @@ msgstr "
msgid ""
"CPU (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
"\n"
msgstr "ãðõ (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n\n"
msgstr ""
"ãðõ (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
"\n"
#: examples/smp.c:114
#, c-format
@@ -131,7 +135,7 @@ msgstr "
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
msgstr "âåú-äåíïîá"
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
@@ -327,8 +331,7 @@ msgid "Last PID"
msgstr "ðÏÓÌÅÄÎÉÊ ðéä"
#: sysdeps/names/loadavg.c:47
msgid ""
"Number of jobs running simultaneously averaged over 1, 5 and 15 minutes"
msgid "Number of jobs running simultaneously averaged over 1, 5 and 15 minutes"
msgstr "þÉÓÌÏ ÚÁÄÁÎÉÊ ÚÁÐÕÝÅÎÎÙÈ ÏÄÎÏ×ÒÅÍÅÎÎÏ × ÓÒÅÄÎÅÍ ÚÁ 1, 5 É 15 ÍÉÎÕÔ"
#: sysdeps/names/loadavg.c:48
@@ -598,21 +601,19 @@ msgstr ""
#. CMin_Flt
#: sysdeps/names/prockernel.c:65
msgid ""
"The number of minor faults that the process and its children have made."
msgid "The number of minor faults that the process and its children have made."
msgstr ""
#. CMaj_Flt
#: sysdeps/names/prockernel.c:68
msgid ""
"The number of major faults that the process and its children have made."
msgid "The number of major faults that the process and its children have made."
msgstr ""
#. KStk_ESP
#: sysdeps/names/prockernel.c:71
msgid ""
"The current value of esp (32-bit stack pointer), as found in the kernel stack "
"page for the process."
"The current value of esp (32-bit stack pointer), as found in the kernel "
"stack page for the process."
msgstr ""
#. KStk_EIP
@@ -623,10 +624,10 @@ msgstr "
#. NWChan
#: sysdeps/names/prockernel.c:76
msgid ""
"This is the \"channel\" in which the process is waiting. This is the address "
"of a system call, and can be looked up in a namelist if you need a textual "
"name. (If you have an up-to-date /etc/psdatabase, then try ps -l to see the "
"WCHAN field in action)"
"This is the \"channel\" in which the process is waiting. This is the "
"address of a system call, and can be looked up in a namelist if you need a "
"textual name. (If you have an up-to-date /etc/psdatabase, then try ps -l to "
"see the WCHAN field in action)"
msgstr ""
#. WChan
@@ -664,7 +665,7 @@ msgstr "
#: sysdeps/names/procmem.c:55
msgid "Number of resident set (non-swapped) pages"
msgstr ""
msgstr "þÉÓÌÏ ÒÅÚÉÄÅÎÔÎÙÈ (ÎÅ ÐÏÄËÁÞÉ×ÁÅÍÙÈ) ÎÁÂÏÒÏ× ÓÔÒÁÎÉÃ"
#: sysdeps/names/procmem.c:56
msgid "Number of pages of shared (mmap'd) memory"
@@ -681,7 +682,7 @@ msgstr ""
#: sysdeps/names/procmem.c:62
msgid ""
"Current limit in bytes on the rss of the process (usually 2,147,483,647)."
msgstr ""
msgstr "ôÅËÕÝÉÊ ÐÒÅÄÅÌ × ÂÁÊÔÁÈ ÄÌÑ rss ÐÒÏÃÅÓÓÁ (ÏÂÙÞÎÏ 2,147,483,647)."
#: sysdeps/names/procsegment.c:42
msgid "Text_RSS"
@@ -1067,20 +1068,19 @@ msgstr "
#: sysdeps/names/swap.c:42
msgid "Page In"
msgstr ""
msgstr "÷ÈÏÄÎÙÅ ÓÔÒÁÎÉÃÙ"
#: sysdeps/names/swap.c:43
msgid "Page Out"
msgstr ""
msgstr "÷ÙÈÏÄÎÙÅ cÔÒÁÎÉÃÙ"
#: sysdeps/names/swap.c:51
msgid "Total number of swap pages that have been brought in since system boot"
msgstr ""
msgstr "ïÂÝÅÅ ÞÉÓÌÏ ×ÈÏÄÎÙÈ ÓÔÒÁÎÉà ÐÏÄËÁÞËÉ ÉÓÐÏÌØÚÏ×ÁÎÎÙÈ Ó ÍÏÍÅÎÔÁ ÚÁÇÒÕÚËÉ ÓÉÓÔÅÍÙ"
#: sysdeps/names/swap.c:53
msgid ""
"Total number of swap pages that have been brought out since system boot"
msgstr ""
msgid "Total number of swap pages that have been brought out since system boot"
msgstr "ïÂÝÅÅ ÞÉÓÌÏ ×ÙÈÏÄÎÙÈ ÓÔÒÁÎÉà ÐÏÄËÁÞËÉ ÉÓÐÏÌØÚÏ×ÁÎÎÙÈ Ó ÍÏÍÅÎÔÁ ÚÁÇÒÕÚËÉ ÓÉÓÔÅÍÙ"
#: sysdeps/names/sysdeps.c:49 sysdeps/names/sysdeps.c:76
msgid "Server Features"
@@ -1116,7 +1116,7 @@ msgstr "
#: sysdeps/names/sysdeps.c:57 sysdeps/names/sysdeps.c:84
msgid "Semaphore Set Limits"
msgstr ""
msgstr "ðÒÅÄÅÌÙ ÎÁÂÏÒÁ ÓÅÍÁÆÏÒÏ×"
#: sysdeps/names/sysdeps.c:58 sysdeps/names/sysdeps.c:85
msgid "List of running Processes"
@@ -1200,7 +1200,7 @@ msgstr "
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
msgid "Hangup"
msgstr ""
msgstr "÷ÙËÌÀÞÉÔØ"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
msgid "Interrupt"
@@ -1216,7 +1216,7 @@ msgstr "
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
msgid "Trace trap"
msgstr ""
msgstr "úÁÈ×ÁÔ ÔÒÁÓÓÉÒÏ×ËÉ"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
msgid "Abort"
@@ -1268,7 +1268,7 @@ msgstr "
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
msgid "Keyboard stop"
msgstr ""
msgstr "ïÓÔÁÎÏ× ËÌÁ×ÉÁÔÕÒÙ"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
msgid "Continue"
@@ -1321,4 +1321,3 @@ msgstr "
#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
msgid "User defined signal 2"
msgstr "óÉÇÎÁÌ ÐÏÌØÚÏ×ÁÔÅÌÑ 2"

View File

@@ -5,12 +5,12 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop\n"
"POT-Creation-Date: 2001-02-13 13:30+0100\n"
"POT-Creation-Date: 2001-01-22 17:29+0100\n"
"PO-Revision-Date: 2000-05-22 02:46+0200\n"
"Last-Translator: Andraz Tori <andraz.tori1@guest.arnes.si>\n"
"Language-Team: Slovenian <sl@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso8895-2\n"
"Content-Type: text/plain; charset=iso-8859-2\n"
"Content-Transfer-Encoding: 8bit\n"
#: examples/smp.c:68
@@ -115,11 +115,11 @@ msgstr "zapisal %d bajtov"
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr "Vklopi razhro¹èevanje"
msgstr "Vkljuèi razhro¹èevanje"
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "RAHRO©ÈUJ"
msgstr "RAZHRO©ÈUJ"
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
@@ -152,7 +152,7 @@ msgid ""
"Run '%s --help' to see a full list of available command line options.\n"
msgstr ""
"Napaka ob mo¾nosti %s: %s.\n"
"Po¾enite '%s --help, èe ¾elite videti popoln seznam mo¾nosti ukaznevrstice.\n"
"Po¾enite '%s --help', èe ¾elite videti popoln seznam mo¾nosti ukazne vrstice.\n"
#: support/error.c:109
msgid "Unknown system error"
@@ -219,23 +219,23 @@ msgstr "%s: opcija `-W %s' ne dovoli argumenta\n"
#: sysdeps/names/cpu.c:43
msgid "Total CPU Time"
msgstr "Celoten CPU Èas"
msgstr "Celoten CPU èas"
#: sysdeps/names/cpu.c:44
msgid "CPU Time in User Mode"
msgstr "CPU Èas v Uporabni¹kem Naèinu"
msgstr "CPU Èas v uporabni¹kem naèinu"
#: sysdeps/names/cpu.c:45
msgid "CPU Time in User Mode (nice)"
msgstr "CPU Èas v Uporabni¹kem Naèinu (nice)"
msgstr "CPU èas v uporabni¹kem naèinu (nice)"
#: sysdeps/names/cpu.c:46
msgid "CPU Time in System Mode"
msgstr "CPU Èas v Sistemskem Naèinu"
msgstr "CPU èas v sistemskem naèinu"
#: sysdeps/names/cpu.c:47
msgid "CPU Time in the Idle Task"
msgstr "CPU Èas v Praznih Poslih"
msgstr "CPU èas v praznih poslih"
#: sysdeps/names/cpu.c:48
msgid "Tick Frequency"
@@ -243,23 +243,23 @@ msgstr "Frekvenca merjenja"
#: sysdeps/names/cpu.c:49
msgid "SMP Total CPU Time"
msgstr "SMP Celoten CPU Èas"
msgstr "SMP celoten CPU èas"
#: sysdeps/names/cpu.c:50
msgid "SMP CPU Time in User Mode"
msgstr "SMP CPU Èas v Uporabni¹kem Naèinu"
msgstr "SMP CPU èas v uporabni¹kem naèinu"
#: sysdeps/names/cpu.c:51
msgid "SMP CPU Time in User Mode (nice)"
msgstr "SMP CPU Èas v Uporabni¹kem Naèinu (nice)"
msgstr "SMP CPU èas v uporabni¹kem naèinu (nice)"
#: sysdeps/names/cpu.c:52
msgid "SMP CPU Time in System Mode"
msgstr "SMP CPU Èas v Sistemksem Naèinu"
msgstr "SMP CPU èas v sistemskem naèinu"
#: sysdeps/names/cpu.c:53
msgid "SMP CPU Time in the Idle Task"
msgstr "SMP CPU Èas v Praznih Poslih"
msgstr "SMP CPU èas v praznih poslih"
#: sysdeps/names/cpu.c:58 sysdeps/names/cpu.c:64
msgid "Number of clock ticks since system boot"
@@ -324,7 +324,7 @@ msgstr "Posli v teku"
#: sysdeps/names/loadavg.c:41
msgid "Number of Tasks"
msgstr "©tevilo Poslov"
msgstr "©tevilo poslov"
#: sysdeps/names/loadavg.c:42 sysdeps/names/loadavg.c:50
msgid "Last PID"
@@ -344,23 +344,23 @@ msgstr "Skupno
#: sysdeps/names/mem.c:41
msgid "Total Memory"
msgstr "Celoten Pomnilnik"
msgstr "Celoten pomnilnik"
#: sysdeps/names/mem.c:42
msgid "Used Memory"
msgstr "Pomnilnik v Uporabi"
msgstr "Pomnilnik v uporabi"
#: sysdeps/names/mem.c:43
msgid "Free Memory"
msgstr "Prost Pomnilnik"
msgstr "Prost pomnilnik"
#: sysdeps/names/mem.c:44
msgid "Shared Memory"
msgstr "Deljen Pomnilnik"
msgstr "Deljen pomnilnik"
#: sysdeps/names/mem.c:45
msgid "Buffers"
msgstr "Medpomnilniki"
msgstr "Izravnalniki"
#: sysdeps/names/mem.c:46
msgid "Cached"
@@ -388,7 +388,7 @@ msgstr "Deljenega pomnilnika v kB"
#: sysdeps/names/mem.c:57
msgid "Size of buffers kB"
msgstr "Velikost medpomnilnikov"
msgstr "Velikost izravnalnikov"
#: sysdeps/names/mem.c:58
msgid "Size of cached memory in kB"
@@ -677,7 +677,7 @@ msgstr "Limit velikosti v fizi
#: sysdeps/names/procmem.c:53
msgid "Total # of pages of memory"
msgstr "Skupno ¹tevilo strani v spominu"
msgstr "Skupno ¹tevilo strani v pomnilniku"
#: sysdeps/names/procmem.c:54
msgid "Number of pages of virtual memory"
@@ -747,11 +747,11 @@ msgstr "Velikost text v fizi
#: sysdeps/names/procsegment.c:49
msgid "Shared-Lib resident set size"
msgstr "Velikost Deljenih knji¾nic v fiziènem pomnilniku"
msgstr "Velikost deljenih knji¾nic v fiziènem pomnilniku"
#: sysdeps/names/procsegment.c:50
msgid "Data resident set size"
msgstr "Velikost Podatkov v fiziènem pomnilniku"
msgstr "Velikost podatkov v fiziènem pomnilniku"
#: sysdeps/names/procsegment.c:51
msgid "Stack resident set size"
@@ -975,23 +975,23 @@ msgstr "Prioriteta"
#: sysdeps/names/procuid.c:63
msgid "User ID"
msgstr "Uporabnikov ID"
msgstr "ID uporabnika"
#: sysdeps/names/procuid.c:64
msgid "Effective User ID"
msgstr "Efektivni Uporabnikov ID"
msgstr "ID efektivnega uporabnika"
#: sysdeps/names/procuid.c:65
msgid "Group ID"
msgstr "ID Skupine"
msgstr "ID skupine"
#: sysdeps/names/procuid.c:66
msgid "Effective Group ID"
msgstr "Efektivni ID Skupine"
msgstr "ID Efektivne skupine"
#: sysdeps/names/procuid.c:67
msgid "Process ID"
msgstr "ID Procesa"
msgstr "ID procesa"
#: sysdeps/names/procuid.c:68
msgid "PID of parent process"
@@ -999,11 +999,11 @@ msgstr "PID roditeljskega procesa"
#: sysdeps/names/procuid.c:69
msgid "Process group ID"
msgstr "Skupinski ID procesa"
msgstr "ID skupine procesov"
#: sysdeps/names/procuid.c:70
msgid "Session ID"
msgstr "ID Seje"
msgstr "ID seje"
#: sysdeps/names/procuid.c:71
msgid "Full device number of controlling terminal"
@@ -1011,7 +1011,7 @@ msgstr "Polno ime naprave kontrolenga terminala"
#: sysdeps/names/procuid.c:72
msgid "Terminal process group ID"
msgstr "Skupinski ID terminalskega procesa"
msgstr "ID skupine terminalskega procesa"
#: sysdeps/names/procuid.c:73
msgid "Kernel scheduling priority"
@@ -1115,7 +1115,7 @@ msgstr "Lastnosti stre
#: sysdeps/names/sysdeps.c:50 sysdeps/names/sysdeps.c:77
msgid "CPU Usage"
msgstr "Uporaba procesor"
msgstr "Uporaba procesorja"
#: sysdeps/names/sysdeps.c:51 sysdeps/names/sysdeps.c:78
msgid "Memory Usage"
@@ -1473,16 +1473,16 @@ msgstr "Uporabni
#~ msgstr "Skupine"
#~ msgid "Saved User ID"
#~ msgstr "Shranjen ID Uporabnika"
#~ msgstr "Shranjen ID uporabnika"
#~ msgid "Saved Group ID"
#~ msgstr "Shranjen ID Skupine"
#~ msgstr "Shranjen ID skupine"
#~ msgid "Filesystem User ID"
#~ msgstr "Uporabni¹ki ID Datoteènega Sistema"
#~ msgstr "Uporabni¹ki ID datoteènega sistema"
#~ msgid "Filesystem Group ID"
#~ msgstr "Skupinski ID Datoteènega Sistema"
#~ msgstr "Skupinski ID datoteènega sistema"
#~ msgid "Number of additional process groups"
#~ msgstr "©tevilo dodatnih skupin procesov"
@@ -1494,13 +1494,13 @@ msgstr "Uporabni
#~ msgstr "Velikost Kazalca"
#~ msgid "Process CWD"
#~ msgstr "Procesov trenutni delavni imenik"
#~ msgstr "Procesov trenutni delovni imenik"
#~ msgid "Pointer Size on the Server (in bits)"
#~ msgstr "Velikost kazalca na stre¾niku (v bitih)"
#~ msgid "Current working directory of the process"
#~ msgstr "Trenutni delavni imenik procesa"
#~ msgstr "Trenutni delovni imenik procesa"
#~ msgid "Boot time"
#~ msgstr "Èas zagona"

View File

@@ -1 +0,0 @@
timestamp

1345
po/tr.po Normal file

File diff suppressed because it is too large Load Diff

556
po/uk.po

File diff suppressed because it is too large Load Diff

1322
po/zh_TW.po Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
Makefile.in
Makefile
libgtop_daemon
libgtop_server
libgtop_daemon2
libgtop_server2
server.conf
.libs
.deps

View File

@@ -14,43 +14,43 @@
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@ -D_BSD \
INCLUDES = $(LIBGTOP_CFLAGS) @INCLUDES@ -D_BSD \
-DLIBGTOP_COMPILE_SYSTEM=\"`uname -s`\" \
-DLIBGTOP_COMPILE_RELEASE=\"`uname -r`\" \
-DLIBGTOP_COMPILE_MACHINE=\"`uname -m`\"
if NEED_LIBGTOP
suid_sysdeps = $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps_suid.la
suid_common = $(top_builddir)/sysdeps/common/libgtop_suid_common.la
suid_sysdeps = $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps_suid-2.0.la
suid_common = $(top_builddir)/sysdeps/common/libgtop_suid_common-2.0.la
else
suid_sysdeps =
suid_common =
endif
bin_PROGRAMS = libgtop_daemon @server_programs@
bin_PROGRAMS = libgtop_daemon2 @server_programs@
EXTRA_PROGRAMS = libgtop_server
EXTRA_PROGRAMS = libgtop_server2
libgtop_daemon_SOURCES = gnuserv.c slave.c main.c io.c version.c \
libgtop_daemon2_SOURCES = gnuserv.c slave.c main.c io.c version.c \
daemon.h server_config.h
libgtop_daemon_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
libgtop_daemon2_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@sysdeps_suid_lib@ \
$(suid_sysdeps) $(suid_common)\
$(GLIB_LIBS)\
$(LIBGTOP_LIBS)\
@LIBSUPPORT@ @INTLLIBS@ @libs_xauth@
if ENABLE_STATIC
libgtop_daemon_LDFLAGS = -static
libgtop_daemon2_LDFLAGS = -static
endif
libgtop_server_SOURCES = server.c slave.c io.c version.c daemon.h
libgtop_server_LDADD = $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps_suid.la \
$(top_builddir)/sysdeps/common/libgtop_suid_common.la
libgtop_server2_SOURCES = server.c slave.c io.c version.c daemon.h
libgtop_server2_LDADD = $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps_suid-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_suid_common-2.0.la
if ENABLE_STATIC
libgtop_server_LDFLAGS = -static
libgtop_server2_LDFLAGS = -static
endif
EXTRA_DIST = server_config.h.in server_config.pl

View File

@@ -93,7 +93,7 @@ syslog_message (int priority, char *format, ...)
vsnprintf (buffer, BUFSIZ-1, format, ap);
va_end (ap);
syslog (priority, buffer);
syslog (priority, "%s", buffer);
}
void
@@ -108,7 +108,7 @@ syslog_io_message (int priority, char *format, ...)
va_end (ap);
snprintf (buffer2, BUFSIZ-1, "%s: %s", buffer, strerror (errno));
syslog (priority, buffer2);
syslog (priority, "%s", buffer2);
}
/*

View File

@@ -1,15 +1,15 @@
bin_PROGRAMS = mkinodedb file_by_inode
bin_PROGRAMS = mkinodedb2 file_by_inode2
INCLUDES = @INCLUDES@
mkinodedb_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
mkinodedb2_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
file_by_inode_LDADD = $(top_builddir)/lib/libgtop.la \
$(top_builddir)/sysdeps/common/libgtop_common.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps.la \
file_by_inode2_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
$(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
$(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
@LIBSUPPORT@ @INTLLIBS@
EXTRA_DIST = README.inodedb

View File

@@ -1,8 +1,8 @@
if GUILE
guile_SUBDIRS = guile
else
## if GUILE
## guile_SUBDIRS = guile
## else
guile_SUBDIRS =
endif
## endif
SUBDIRS = @sysdeps_dir@ common names $(guile_SUBDIRS)

View File

@@ -12,17 +12,17 @@ endif
CFLAGS = @CFLAGS@ $(inodedb_DEFS)
lib_LTLIBRARIES = libgtop_common.la libgtop_suid_common.la
lib_LTLIBRARIES = libgtop_common-2.0.la libgtop_suid_common-2.0.la
libgtop_common_la_SOURCES = xmalloc.c error.c gnuslib.c \
libgtop_common_2_0_la_SOURCES = xmalloc.c error.c gnuslib.c \
fsusage.c fsusage.h mountlist.c mountlist.h \
$(inodedb_SRCLIST)
libgtop_common_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_common_la_LIBADD = $(LIBGTOP_EXTRA_LIBS)
libgtop_common_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_common_2_0_la_LIBADD = $(LIBGTOP_EXTRA_LIBS)
libgtop_suid_common_la_SOURCES = xmalloc.c error.c sysdeps_suid.c
libgtop_suid_common_2_0_la_SOURCES = xmalloc.c error.c sysdeps_suid.c
libgtop_suid_common_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_suid_common_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
EXTRA_DIST = inodedb.c

View File

@@ -1,3 +1,16 @@
2001-10-17 Abel Cheung <maddog@linux.org.hk>
* Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
2001-02-27 Martin Baulig <baulig@suse.de>
* netload.c: Comment out the `subnet' field on BSDI; this should
make it compile. Bug #13345.
* shm_limits.c, msg_limits.c, sem_limits.c: Applied a patch
from Rolf Grossmann (grossman@securitas.net) for FreeBSD 4.2.
Fixes #51334.
2001-02-14 Martin Baulig <baulig@suse.de>
* proctime.c (glibtop_get_proc_time_p): Make things work on

View File

@@ -2,21 +2,22 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
lib_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_la_SOURCES = nosuid.c siglist.c
libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \
procsegment.c procargs.c procmap.c netload.c \
ppp.c
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
include_HEADERS = glibtop_server.h glibtop_machine.h \
libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h \
glibtop_suid.h
libgtopincludedir = $(includedir)/libgtop-2.0

View File

@@ -46,7 +46,7 @@ glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
/* #define KERNEL to get declaration of `struct msginfo'. */
#if (defined __FreeBSD__) || (defined __bsdi__)
#if (defined(__FreeBSD__) && (__FreeBSD_version < 410000)) || (defined __bsdi__)
#define KERNEL 1
#else
#define _KERNEL 1

View File

@@ -41,7 +41,9 @@
static const unsigned long _glibtop_sysdeps_netload =
(1L << GLIBTOP_NETLOAD_IF_FLAGS) +
(1L << GLIBTOP_NETLOAD_MTU) +
#if !defined(__bsdi__)
(1L << GLIBTOP_NETLOAD_SUBNET) +
#endif
(1L << GLIBTOP_NETLOAD_ADDRESS) +
(1L << GLIBTOP_NETLOAD_PACKETS_IN) +
(1L << GLIBTOP_NETLOAD_PACKETS_OUT) +
@@ -172,7 +174,10 @@ glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
if (ifnet.if_flags & IFF_MULTICAST)
buf->if_flags |= GLIBTOP_IF_FLAGS_MULTICAST;
#if !defined(__bsdi__)
/* Commenting out to "fix" #13345. */
buf->subnet = htonl (ifaddr.in.ia_subnet);
#endif
buf->address = sin->sin_addr.s_addr;
buf->mtu = ifnet.if_mtu;

View File

@@ -46,7 +46,7 @@ glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
/* #define KERNEL to get declaration of `struct seminfo'. */
#if defined(__FreeBSD__) || defined(__bsdi__)
#if (defined(__FreeBSD__) && (__FreeBSD_version < 410000)) || defined(__bsdi__)
#define KERNEL 1
#else
#define _KERNEL 1

View File

@@ -46,7 +46,7 @@ glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
/* #define KERNEL to get declaration of `struct shminfo'. */
#if defined(__FreeBSD__) || defined(__bsdi__)
#if (defined(__FreeBSD__) && (__FreeBSD_version < 410000)) || defined(__bsdi__)
#define KERNEL 1
#else
#define _KERNEL 1

View File

@@ -6,11 +6,11 @@ INCLUDES = @INCLUDES@
BUILT_SOURCES = guile.c guile.x
lib_LTLIBRARIES = libgtop_guile.la
lib_LTLIBRARIES = libgtop_guile-2.0.la
libgtop_guile_la_SOURCES = $(BUILT_SOURCES)
libgtop_guile_2_0_la_SOURCES = $(BUILT_SOURCES)
libgtop_guile_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_guile_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
Makefile: $(BUILT_SOURCES)

View File

@@ -2,13 +2,13 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_guile_names.la
lib_LTLIBRARIES = libgtop_guile_names-2.0.la
BUILT_SOURCES = guile-names.c guile-names.x
libgtop_guile_names_la_SOURCES = $(BUILT_SOURCES)
libgtop_guile_names_2_0_la_SOURCES = $(BUILT_SOURCES)
libgtop_guile_names_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_guile_names_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
Makefile: $(BUILT_SOURCES)

View File

@@ -1,3 +1,7 @@
2001-10-17 Abel Cheung <maddog@linux.org.hk>
* Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
1998-10-26 Martin Baulig <martin@home-of-linux.org>
* netload.c: New file. Currently empty.

View File

@@ -2,18 +2,19 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la
lib_LTLIBRARIES = libgtop_sysdeps-2.0.la
libgtop_sysdeps_la_SOURCES = open.c close.c kernel.s cpu.c mem.c swap.c \
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c kernel.s cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \
procsegment.c siglist.c procargs.c procmap.c \
netload.c ppp.c
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
include_HEADERS = glibtop_server.h
libgtopinclude_HEADERS = glibtop_server.h
libgtopincludedir = $(includedir)/libgtop-2.0
noinst_HEADERS = kernel.h

View File

@@ -1,3 +1,7 @@
2001-10-17 Abel Cheung <maddog@linux.org.hk>
* Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
2001-02-13 Martin Baulig <baulig@suse.de>
Fix bug #14076.

View File

@@ -2,16 +2,17 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la
lib_LTLIBRARIES = libgtop_sysdeps-2.0.la
libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \
procsegment.c procargs.c procmap.c siglist.c \
sysinfo.c netload.c ppp.c
libgtop_sysdeps_la_LIBADD = @GLIB_LIBS@
libgtop_sysdeps_2_0_la_LIBADD = @GLIB_LIBS@
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
include_HEADERS = glibtop_server.h glibtop_machine.h
libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
libgtopincludedir = $(includedir)/libgtop-2.0

View File

@@ -2,9 +2,9 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_names.la
lib_LTLIBRARIES = libgtop_names-2.0.la
libgtop_names_la_SOURCES = cpu.c mem.c swap.c uptime.c loadavg.c \
libgtop_names_2_0_la_SOURCES = cpu.c mem.c swap.c uptime.c loadavg.c \
shm_limits.c msg_limits.c sem_limits.c \
proclist.c sysdeps.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c \
@@ -12,5 +12,5 @@ libgtop_names_la_SOURCES = cpu.c mem.c swap.c uptime.c loadavg.c \
mountlist.c procargs.c procmap.c netload.c \
ppp.c
libgtop_names_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_names_2_0_la_LDFLAGS = $(LT_VERSION_INFO)

View File

@@ -1,3 +1,7 @@
2001-10-17 Abel Cheung <maddog@linux.org.hk>
* Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
1999-05-11 Martin Baulig <martin@home-of-linux.org>
* procstate.c: Fixed implementation of the `state' field; added

View File

@@ -2,21 +2,22 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
lib_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c ppp.c
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_la_LIBADD = -lmach
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LIBADD = -lmach
libgtop_sysdeps_suid_la_SOURCES = open_suid.c close_suid.c proclist.c \
libgtop_sysdeps_suid_2_0_la_SOURCES = open_suid.c close_suid.c proclist.c \
procstate.c procuid.c proctime.c procmem.c \
procsignal.c prockernel.c procsegment.c \
procmap.c procargs.c netload.c
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_la_LIBADD = -lmach
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_2_0_la_LIBADD = -lmach
include_HEADERS = glibtop_server.h glibtop_machine.h
libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
libgtopincludedir = $(includedir)/libgtop-2.0
noinst_HEADERS = glibtop_suid.h

View File

@@ -1,3 +1,15 @@
2001-10-17 Abel Cheung <maddog@linux.org.hk>
* Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
2001-02-18 Martin Baulig <baulig@suse.de>
Applied a patch from Laszlo PETER <Laszlo.Peter@ireland.sun.com>
for Solaris 8.
* msg_limits.c: `struct msginfo' no longer has msgmap and msgssz.
* sem_limits.c: `struct seminfo' no longer has a semmap field.
1999-10-17 Martin Baulig <martin@home-of-linux.org>
* Makefile.am (libgtop_sysdeps_la_LIBADD): Added `@DL_LIB@'.

View File

@@ -2,25 +2,27 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
lib_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_la_SOURCES = open.c close.c siglist.c cpu.c mem.c \
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c \
safeio.c swap.c uptime.c loadavg.c \
proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c \
prockernel.c procsegment.c procargs.c \
procmap.c netload.c ppp.c procdata.c
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_la_LIBADD = @DL_LIB@
libgtop_sysdeps_2_0_la_LIBADD = @DL_LIB@
libgtop_sysdeps_suid_la_SOURCES = open_suid.c close_suid.c \
libgtop_sysdeps_suid_2_0_la_SOURCES = open_suid.c close_suid.c \
shm_limits.c msg_limits.c sem_limits.c
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
include_HEADERS = glibtop_server.h glibtop_machine.h
libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
libgtopincludedir = $(includedir)/libgtop-2.0
noinst_HEADERS = glibtop_private.h glibtop_suid.h safeio.h

View File

@@ -29,9 +29,11 @@
static struct nlist nlst[] = { {"msginfo"}, {NULL} };
static const unsigned long _glibtop_sysdeps_msg_limits =
(1L << GLIBTOP_IPC_MSGPOOL) + (1L << GLIBTOP_IPC_MSGMAP) +
(1L << GLIBTOP_IPC_MSGMAX) + (1L << GLIBTOP_IPC_MSGMNB) +
(1L << GLIBTOP_IPC_MSGMNI) + (1L << GLIBTOP_IPC_MSGSSZ) +
#if GLIBTOP_SOLARIS_RELEASE <= 570
(1L << GLIBTOP_IPC_MSGMAP) + (1L << GLIBTOP_IPC_MSGSSZ) +
#endif
(1L << GLIBTOP_IPC_MSGPOOL) + (1L << GLIBTOP_IPC_MSGMAX) +
(1L << GLIBTOP_IPC_MSGMNB) + (1L << GLIBTOP_IPC_MSGMNI) +
(1L << GLIBTOP_IPC_MSGTQL);
/* Init function. */
@@ -63,11 +65,15 @@ glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
sizeof(struct msginfo)) != sizeof(struct msginfo))
return;
#if GLIBTOP_SOLARIS_RELEASE <= 570
/* These fields don't exist anymore in Solaris 8.
* Thanks to Laszlo PETER <Laszlo.Peter@ireland.sun.com>. */
buf->msgmap = minfo.msgmap;
buf->msgssz = minfo.msgssz;
#endif
buf->msgmax = minfo.msgmax;
buf->msgmnb = minfo.msgmnb;
buf->msgmni = minfo.msgmni;
buf->msgssz = minfo.msgssz;
buf->msgtql = minfo.msgtql;
buf->msgpool = minfo.msgmni * minfo.msgmnb >> 10;
buf->flags = _glibtop_sysdeps_msg_limits;

View File

@@ -29,11 +29,14 @@
static struct nlist nlst[] = { {"seminfo"}, {NULL} };
static const unsigned long _glibtop_sysdeps_sem_limits =
(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
#if GLIBTOP_SOLARIS_RELEASE <= 570
(1L << GLIBTOP_IPC_SEMMAP) +
#endif
(1L << GLIBTOP_IPC_SEMMNI) + (1L << GLIBTOP_IPC_SEMMNS) +
(1L << GLIBTOP_IPC_SEMMNU) + (1L << GLIBTOP_IPC_SEMMSL) +
(1L << GLIBTOP_IPC_SEMOPM) + (1L << GLIBTOP_IPC_SEMUME) +
(1L << GLIBTOP_IPC_SEMUSZ) + (1L << GLIBTOP_IPC_SEMVMX) +
(1L << GLIBTOP_IPC_SEMAEM);
/* Init function. */
@@ -63,7 +66,12 @@ glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
if(kvm_read(kd, nlst[0].n_value, (void *)&sinfo,
sizeof(struct seminfo)) != sizeof(struct seminfo))
return;
#if GLIBTOP_SOLARIS_RELEASE <= 570
/* This field don't exist anymore in Solaris 8.
* Thanks to Laszlo PETER <Laszlo.Peter@ireland.sun.com>. */
buf->semmap = sinfo.semmap;
#endif
buf->semmni = sinfo.semmni;
buf->semmns = sinfo.semmns;
buf->semmnu = sinfo.semmnu;

View File

@@ -1,3 +1,7 @@
2001-10-17 Abel Cheung <maddog@linux.org.hk>
* Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
1998-10-26 Martin Baulig <martin@home-of-linux.org>
* netload.c: New file.

View File

@@ -2,16 +2,16 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la
lib_LTLIBRARIES = libgtop_sysdeps-2.0.la
libgtop_sysdeps_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \
procsegment.c procargs.c procmap.c netload.c \
ppp.c
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
include_HEADERS = glibtop_server.h
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtopinclude_HEADERS = glibtop_server.h
libgtopincludedir = $(includedir)/libgtop-2.0

View File

@@ -1,3 +1,7 @@
2001-10-17 Abel Cheung <maddog@linux.org.hk>
* Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
1998-10-26 Martin Baulig <martin@home-of-linux.org>
* netload.c: New file.

View File

@@ -2,21 +2,22 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
lib_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_la_SOURCES = nosuid.c siglist.c
libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \
procsegment.c procargs.c procmap.c netload.c \
ppp.c
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
include_HEADERS = glibtop_server.h glibtop_machine.h
libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
libgtopincludedir = $(includedir)/libgtop-2.0
noinst_HEADERS = glibtop_suid.h

View File

@@ -1,3 +1,7 @@
2001-10-17 Abel Cheung <maddog@linux.org.hk>
* Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
1998-10-25 Martin Baulig <martin@home-of-linux.org>
* ppp.c: New file.

View File

@@ -2,20 +2,21 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
lib_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_la_SOURCES = nosuid.c siglist.c
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_la_LIBADD = -lkvm
libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LIBADD = -lkvm
libgtop_sysdeps_suid_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \
procsegment.c ppp.c
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_la_LIBADD = -lkvm
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_2_0_la_LIBADD = -lkvm
include_HEADERS = glibtop_server.h glibtop_machine.h
libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
libgtopincludedir = $(includedir)/libgtop-2.0
noinst_HEADERS = glibtop_suid.h