Compare commits

...

31 Commits

Author SHA1 Message Date
Martin Baulig
35b6acfc22 Updated this a bit. 2000-02-16 15:41:37 +00:00
Martin Baulig
0830a0b8a7 Released LibGTop 1.0.7 "Copenhagen".
2000-02-15  Martin Baulig  <martin@home-of-linux.org>

	Released LibGTop 1.0.7 "Copenhagen".
2000-02-15 11:09:36 +00:00
Martin Baulig
f4be080d63 *** empty log message *** 2000-02-15 11:07:33 +00:00
Martin Baulig
a599e04eb6 *** empty log message *** 2000-02-14 16:41:14 +00:00
Martin Baulig
0dec9a7b70 First version of a debian/ directory for LibGTop 1.0.x. 2000-02-14 14:54:13 +00:00
Martin Baulig
75958ce2ab Make sure we close all open files. 2000-02-14 14:34:33 +00:00
Martin Baulig
20bbc17f6b 1.0.7 again :) 2000-02-13 22:39:54 +00:00
Martin Baulig
19ffa1419a Only #include <osreldate.h> on FreeBSD. 2000-02-13 21:31:39 +00:00
Martin Baulig
1e568f294e **** Merged from HEAD ****
2000-02-13  Martin Baulig  <martin@home-of-linux.org>

	* *.c: kvm_nlist () returns -1 on error, but a positive return value
	does not necessarily mean failure. Fixes #3302 which was reported by
	Matthias Scheler some time ago.
2000-02-13 15:47:59 +00:00
Martin Baulig
7752a312e9 Set correct buf->size' and buf->flags' fields when `max_length' was
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* procargs.c (glibtop_get_proc_args_s): Set correct `buf->size' and
	`buf->flags' fields when `max_length' was given. Fixes #5183.
2000-01-21 23:27:08 +00:00
Martin Baulig
23c7449898 **** Merged from HEAD ****
2000-01-20  Martin Baulig  <martin@home-of-linux.org>

	* fsusage.c (adjust_blocks): Use `u_int64_t' arguments and
	return value to avoid long int overflows on machines with large
	disks.

	* fsusage.h (struct fs_usage): Use `u_int64_t' here as well.
2000-01-20 21:54:28 +00:00
Martin Baulig
64b3db2dc0 **** Merged from Hardangervidda ****
1999-11-28  Martin Baulig  <martin@home-of-linux.org>

	* gnuserv.c (setup_table): Don't dump core when the table of
	permitted host names contains a NULL pointer.
1999-11-28 16:43:00 +00:00
Martin Baulig
e94b4882b6 **** Merged from Hardangervidda ****
1999-11-28  Martin Baulig  <martin@home-of-linux.org>

	* procstate.c (glibtop_get_procstate_s): Stat "/proc/<pid>" instead
	of "/proc/<pid>/state" to get `uid' and `gid'. Thanks to Jason Becker
	for pointing out that GTop reported wrong uid's.
1999-11-28 11:57:11 +00:00
Martin Baulig
1e629c9a86 **** Merged from HEAD ****
Fix bug #2909; I made some little mistake when applying a patch here.
1999-10-20 14:46:32 +00:00
Martin Baulig
6b6e1261f1 **** Merged from HEAD ****
1999-10-19  Martin Baulig  <martin@home-of-linux.org>

	* uptime.c (glibtop_get_uptime_s): Don't cast uptime and idletime
	to float as suggested by John Kodis.
1999-10-19 00:16:29 +00:00
Martin Baulig
bbc872138b Set version number to 1.0.7 binary age 6, interface age 6.
1999-10-19  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION: Set version number to 1.0.7 binary age 6,
	interface age 6.
1999-10-19 00:04:38 +00:00
Martin Baulig
3555a6ca0c Released LibGTop 1.0.6 "October LibGTop".
1999-10-18  Martin Baulig  <martin@home-of-linux.org>

	Released LibGTop 1.0.6 "October LibGTop".
1999-10-18 20:03:58 +00:00
Martin Baulig
e5928d0b13 Let's call it "October LibGTop" ... :) 1999-10-18 20:02:36 +00:00
Martin Baulig
5bb7e07e95 One should not touch release notes of released versions ... but
this was really neccessary to avoid some confusion.
1999-10-18 19:51:30 +00:00
Martin Baulig
043f4a498f *** empty log message *** 1999-10-18 19:49:56 +00:00
Martin Baulig
94297b8460 Added release notes for LibGTop 1.0.6. 1999-10-18 19:49:38 +00:00
Martin Baulig
0f5b941b15 Removed obsolete file.
1999-10-18  Martin Baulig  <martin@home-of-linux.org>

	* NEWS.old: Removed obsolete file.
1999-10-18 19:47:12 +00:00
Martin Baulig
df6d645afd Removed obsolete file.
1999-10-18  Martin Baulig  <martin@home-of-linux.org>

	* TODO: Removed obsolete file.
1999-10-18 19:35:39 +00:00
Martin Baulig
9ac47c7839 We start maintaining a NEWS file now :)
1999-10-18  Martin Baulig  <martin@home-of-linux.org>

	* NEWS: We start maintaining a NEWS file now :)
1999-10-18 19:34:20 +00:00
Martin Baulig
8d734d1296 This is an ordinary branch now. 1999-10-18 18:57:39 +00:00
Martin Baulig
7fa43bba5d C-u 1 texinfo-multiple-files-update 1999-10-18 18:54:50 +00:00
Martin Baulig
e2e01a9405 Remove internals.texi from the stable branch. 1999-10-18 18:49:28 +00:00
Martin Baulig
5530697ab8 **** Merged from HEAD ****
1999-10-16  Martin Baulig  <martin@home-of-linux.org>

	Applied all patches from the FreeBSD 3.3 ports collection.

	* swap.c: Only #include <rlist.h> for __FreeBSD_version < 400005.

	* prockernel.c: Make it compile on FreeBSD / alpha.

	* procsignal.c: Some fixes for FreeBSD-current.
1999-10-16 18:31:43 +00:00
Martin Baulig
95f279d1a7 Set version number to 1.0.6 binary age 5, interface age 5.
1999-10-16  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION: Set version number to 1.0.6 binary age 5,
	interface age 5.
1999-10-16 18:03:12 +00:00
Martin Baulig
1904a463e2 **** Merged from HEAD ****
1999-10-16  Martin Baulig  <martin@home-of-linux.org>

	* procstate.c (glibtop_get_proc_state_p): Don't use the
	`GLIBTOP_PROCESS_*' constants for process states for
	LibGTop 1.0.x.
1999-10-16 18:01:39 +00:00
Jesus Bravo Alvarez
7ce1f9e9d7 Added Galician translation 1999-10-09 21:41:12 +00:00
71 changed files with 4119 additions and 571 deletions

View File

@@ -32,3 +32,5 @@ ABOUT-NLS
libgtop.spec
libgtop-0.99.*.tar.gz
libgtop-0.99.*
*-debstamp
libgtop-1.*.*.tar.gz

View File

@@ -1,3 +1,35 @@
2000-02-15 Martin Baulig <martin@home-of-linux.org>
Released LibGTop 1.0.7 "Copenhagen".
1999-10-19 Martin Baulig <martin@home-of-linux.org>
* LIBGTOP-VERSION: Set version number to 1.0.7 binary age 6,
interface age 6.
1999-10-18 Martin Baulig <martin@home-of-linux.org>
Released LibGTop 1.0.6 "October LibGTop".
1999-10-18 Martin Baulig <martin@home-of-linux.org>
* NEWS.old: Removed obsolete file.
* RELNOTES-1.0.x: Added release notes for LibGTop 1.0.6.
* TODO: Removed obsolete file.
* NEWS: We start maintaining a NEWS file now :)
1999-10-16 Martin Baulig <martin@home-of-linux.org>
* LIBGTOP-VERSION: Set version number to 1.0.6 binary age 5,
interface age 5.
1999-10-09 Jesus Bravo Alvarez <jba@pobox.com>
* configure.in (ALL_LINGUAS): Added Galician (gl)
1999-09-29 Martin Baulig <martin@home-of-linux.org>
Released LibGTop 1.0.5.

View File

@@ -8,10 +8,10 @@
#
LIBGTOP_MAJOR_VERSION=1
LIBGTOP_MINOR_VERSION=0
LIBGTOP_MICRO_VERSION=5
LIBGTOP_MICRO_VERSION=7
LIBGTOP_INTERFACE_AGE=4
LIBGTOP_BINARY_AGE=4
LIBGTOP_INTERFACE_AGE=6
LIBGTOP_BINARY_AGE=6
# Increase each time you change the client/server protocol.
LIBGTOP_SERVER_VERSION=5

View File

@@ -17,7 +17,8 @@ include_HEADERS = glibtop.h
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 libgtop-sysdeps.m4 README NEWS.old libgtop-mirror.sh
RELNOTES-1.0 RELNOTES-1.0.x libgtop-sysdeps.m4 README \
libgtop-mirror.sh
dist-hook:
cp libgtop.spec $(distdir)

22
NEWS
View File

@@ -0,0 +1,22 @@
February 15, 2000:
=================
* Released LibGTop 1.0.7 "Copenhagen":
- this is a bug fix release for the GUADEC CD-ROM;
it contains fixes in both the Linux and *BSD sysdeps
directory.
October 18, 1999:
================
* Released LibGTop 1.0.6 "October LibGTop":
- compilation fixes for FreeBSD.
- updated reference manual.
September 29, 1999:
==================
* Released LibGTop 1.0.5.

244
NEWS.old
View File

@@ -1,244 +0,0 @@
$Id$
Jun/01/1998
===========
* We have some new ``suffix rules'':
'__l' is a function defined in the client part;
'__s' is a function defined in the sysdeps part and
'__p' is a function that needs special priviledges.
'__r' is mapped either on '__p' or on '__s'.
the function without suffix is mapped on '__l'.
* We now decide at runtime whether or not using the server
is required for a particular function. All user programs
now call the '__l' function defined in '-lgtop' (in the lib
subdir). These functions either use 'glibtop_call__l' to
call the server or call the '__r' function.
* A function in the sysdeps directory now has the '__s' suffix
if it do not need any priviledges (and thus can be called directly
from client code) and the '__p' suffix otherwise (when it has to
be called from the server).
* If you call one of these functions:
-> use the '__p' suffix to be sure to get the SUID-safe one
(used in the server).
-> use the '__s' suffix to be sure to get a function that
doesn't need any priviledges.
-> use the '__r' suffix otherwise (it is mapped either on the
'__p' or on the '__s' one).
Only use the '__p' and '__s' functions in a 'GLIBTOP_SUID_<feature>'
conditional, otherwise you'll get undefined symbols !
* The server is now started from 'glibtop_init__r', but only when
it's really needed; for instance on DEC OSF/1 you only need it
for the proc* features - if you program only fetches the CPU usage,
now server will be started.
* Sorry, at the moment everything is a little bit unstable, I'm doing
heavy changes. I've just some great ideas which still need some work:
-> I want to have a SUID server that only implements those features
that need to be SUID; everything else uses the sysdeps code directly.
-> If a program only uses stuff that do not need the server, the
server will not be started at all.
-> I'm working on some kind of proxy server that can be used on a remote
host; in feature one can then use the MDI stuff from ghex in gtop to
have notebook pages displaying processes from different hosts.
* Well it is as much unstable that it only works under Linux at the moment.
1998-06-01 Martin Baulig <martin@home-of-linux.org>
* sysdeps/common/sysdeps.c: now using '__r' functions,
they are #defined either as the '__p' or the '__s' ones.
* sysdeps/linux/*.c: changed call of 'glibtop_init__r',
it now takes two additional arguments.
* examples/{first.c, second.c}: now using 'glibtop_init'
instead of 'glibtop_init__r'.
* include/glibtop/sysdeps.h: added 'dummy' member so
'GLIBTOP_SYSDEPS_<feature>' now start with 1.
* include/glibtop/*.h: we now #define 'glibtop_get_<feature>'
as 'glibtop_get_<feature>__l' and 'glibtop_get_<feature>__r'
either as the '__p' or the '__s' function.
* lib/*.c: removed #if's - we now decide at runtime
whether to use the server or to call the appropriate
function for the sysdeps directory.
1998-05-28 Martin Baulig <baulig@merkur.uni-trier.de>
* src/server/main.c: we now use the '__p' functions,
but only if the appropriate 'GLIBTOP_SUID_<feature>'
has a non-zero value.
* configure.in (@machine_incs@): always use
`-I$(top_srcdir)/sysdeps/@sysdeps_dir@'; it's no
longer conditional.
* examples/Makefile.am: removed the '_linux' examples.
* sysdeps/linux/*.c: renamed all functions implementing
features to '__s'.
* lib/*.c: renamed all functions implementing features
to '__l'; we only emit code for those functions if the
corresponding 'GLIBTOP_SUID_<feature>' has a positive value.
* include/glibtop/*.h: added some new function suffixes:
'__l' is a function defined in the client part;
'__s' is a function defined in the sysdeps part and
'__p' is a function that needs special priviledges.
'__r' is mapped either on '__l' or on '__s'.
* sysdeps/linux/glibtop_server.h: New file -
defines system dependent constants 'GLIBTOP_SUID_<feature>'
being either 'GLIBTOP_SYSDEPS_<feature>'+1 depending upon
whether or not this feature requires using the server.
* lib/sysdeps.c: removed that file; it is no longer
needed.
May/21/1998
===========
* doc/gnome-hackers.sgml: This is a short intro on how to use libgtop
in the GNOME project. It covers especially the use of its 'configure'
script and the automatically generated 'gtopConf.sh'.
May/20/1998
===========
* 'gtopConf.sh' now defines 'GTOP_LIBS' and 'GTOP_INCS' in a manner
that they contain everything that is needed to link some program with
libgtop. It will use '-lgtop' only if the server is really needed and
'-lgtop_sysdeps' otherwise;
* 'gtopConf.sh' additionally defines 'GTOP_GUILE_LIBS' and 'GTOP_GUILE_INCS'
containing everything that is needed to link some program both with
libgtop and its guile interface. They are identically to 'GTOP_LIBS'
and 'GTOP_INCS' if building the guile interface is disabled or guile
cannot be found on the system.
* 'configure' takes additional arguments '--enable-libgtop-server' and
'--disable-libgtop-server' to use the server even when it's not needed
or to disable it's use where it's needed.
* 'configure' takes an argument '--without-libgtop-guile' to disable
guile support.
* 'configure takes an argument '--without-libgtop-names' to remove
'-lgtop_names' (and '-lgtop_guile_names' when we have guile) from
'GTOP_LIBS'; in this case these libraries are not even built.
May/19/1998
===========
* Libgtop is now in the GNOME CVS Repository.
May/17/1998
===========
* we have now 'const char *glibtop_types_* []' consisting
of the C types of the corresponding files of '_glibtop_*'.
* added guile function '(glibtop-types-*)' and '(glibtop-descriptions-*)'.
May/10/1998
===========
* Port to DEC OSF1 3.0 has been made:
cpu (total, user, nice, sys, idle)
mem (total, used, free)
loadavg (loadavg)
uptime (uptime)
msg_limits (map, max, mnb, mni, tql)
sem_limits (mni, msl, opm, vmx, aem)
shm_limits (max, min, mni, seg)
The following need the server to be SUID root:
proclist (total, number, size)
procdata (cmd, state, uid, pid, ppid, pgrp, tty, k_flags,
session, tpgid, sigignore, sigcatch, signal, nice,
priority, resident, rss, vsize, utime, stime,
cutime, cstime, trs, drs)
May/07/1998
===========
* 'flags' member of sysdeps/linux/procdata.c is now
'unsigned long flags [2]'.
* When we give glibtop_get_procdata () a pid of zero, only
the flags are returned.
* We now use static constants instead of #defines for sysdeps flags.
May/03/1998
===========
* VPATH-Build now working; sometimes it's necessary to copy
$(top_srcdir)/po/cat-id-tbl.c to $(top_builddir)/po.
* The library has been tested on the following systems:
- i686-pc-linux-gnu
- sparc-sun-sunos4.1.1
- alpha-dec-osf1 (that's DEC OSF1 3.0 and 3.2)
* Compilation has been tested on the following systems (I have no root
access there and cannot test the library because of this):
- sparc-sun-solaris2
- i386-bsdi
* Does no longer require Gnome.
* Guile-Parts are compiled only if guile can be found.
* Some of the executables are statically linked to copy them more easily
between machines.
May/02/1998
===========
* Global changes to the interfaces, all functions except glibtop_open()
and glibtop_close() that took a server argument have now a '__r' suffix;
the original name is now a macro that uses glibtop_global_server.
Apr/10/1998
===========
Added new directory sysdeps/guile/names. It is the guile interface
to the gtop_names library found in sysdeps/names. Changed
GLIBTOP_DESCRIPTIONS to GLIBTOP_NAMES and added GLIBTOP_GUILE_NAMES
to the header files.
Apr/09/1998
===========
Added new directories guile and names to sysdeps. In names are
some string constants about the data stored in the structures.
guile is a guile interface for the library. It is used in
examples/third (which has been completely rewritten).
The header files define things from names when GLIBTOP_DESCRIPTIONS
if defined and/or from guile when HAVE_GUILE is defined.
Apr/08/1998
===========
Added guile wrapper for the library (see examples/third).

View File

@@ -87,7 +87,7 @@ LibGTop is currently used in various places in the GNOME Project,
for instance in some of the applets in gnome-core and - of cause -
this ultra-cool application called GTop ...
Although LibGTop is not specific to GNOME and under LGPL license, I
Although LibGTop is not specific to GNOME and under GPL license, I
spent most my time during the last months to work in the GNOME project
so this is the primary use for LibGTop (and currently the only one).

172
RELNOTES-1.0.x Normal file
View File

@@ -0,0 +1,172 @@
RELEASE NOTES FOR LIBGTOP 1.0.7
===============================
OVERVIEW
--------
LibGTop is a library that read information about processes and the
running systems. This information include:
General System Information:
cpu - CPU Usage
mem - Memory Usage
swap - Swap Usage (including paging activity)
loadavg - Load average (including nr_running, nr_tasks, last_pid)
uptime - Uptime and Idle time, can be calculated from CPU usage
SYS V IPC Limits:
shm_limits - Shared Memory Limits
msg_limits - Message Queue Limits
sem_limits - Semaphore Set Limits
Network:
netload - Network load
ppp - PPP statistics
Process List:
proclist - List of processes
Process information:
proc_state - cmd, state, uid, gid
proc_uid - uid,euid,gid,egid,pid,ppid,pgrp
session,tty,tpgid,priority,nice
proc_mem - size,vsize,resident,share,rss,rss_rlim
proc_time - start_time,rtime,utime,stime,cutime,cstime
timeout,it_real_value,frequency
proc_signal - signal,blocked,sigignore,sigcatch
proc_kernel - k_flags,min_flt,maj_flt,cmin_flt,cmaj_flt
kstk_esp,kstk_eip,nwchan,wchan
proc_segment - text_rss,shlib_rss,data_rss,stack_rss,dirty_size
start_code,end_code,start_stack
Process maps:
proc_args - Command line arguments
proc_map - Process map (/proc/<pid>/maps under Linux)
File system usage:
mountlist - List of currently mounted filesystems
fsusage - File system usage
PORTABILITY:
-----------
LibGTop is designed to be as portable as possible. None of the
functions and retrieved information should be specific to a specific
operating system. So you only need to port the system dependent part
of the library to a new system and all application programs can then
use libgtop on this new system.
CLIENT/SERVER MODEL:
-------------------
Some systems like DEC OSF/1 or BSD require special privileges for the
calling process to fetch the required information (SUID root/SGID
kmem). To solve this problem, I designed a client/server model which
makes a call to a SUID/SGID server which fetches the required
information whenever it is required. This server is only called for
features that really require privileges, otherwise the sysdeps code
is called directory (every user can get the CPU usage on DEC OSF/1,
but only root can get information about processes other than the
current one).
There is also some kind of daemon which can be used to fetch
information from remote systems (still experimental). This daemon
normally runs as nobody and calls the SUID/SGID itself when needed.
LIBGTOP AND GNOME:
-----------------
Although LibGTop is part of the GNOME desktop environment, its main
interface is totally independent from any particular desktop environment,
so you can also use it as a standalone library in any piece of GPLed
software which makes it also a valuable part of the GNU project.
LibGTop is currently used in various places in the GNOME Project,
for instance in some of the applets in gnome-core and - of cause -
this ultra-cool application called GTop ...
However, you need to give the configure.in script the `--without-gnome'
parameter when you want to use LibGTop without GNOME (this is because,
if you want to use it with GNOME, you need to compile it after the main
GNOME libraries and I wanted to avoid getting unnecessary bug reports
about this).
LIBGTOP AND GNOME - PART II:
---------------------------
LibGTop was tested with FreeBSD 3.0 but it should also work with
FreeBSD 2.2.7, NetBSD and OpenBSD.
Unfortunately, I don't have the power and disk space to install all
possible operating systems out there on my machine and test things myself,
so I depend on people telling me whether it works and sending me bug
reports and patches if not.
However, I consider FreeBSD, NetBSD and OpenBSD as supported systems for
LibGTop and whenever I get bug reports I will do my best to fix them as
quickly as possible.
PLATFORM SPECIFIC NOTES FOR LINUX:
==================================
[I am speaking of the Linux kernel here.]
Under Linux, LibGTop should work without problems and read everything
from /proc.
LibGTop 0.25 also had an experimental kernel interface to read this
information directly from the kernel with a system call - but I have
currently dropped support for this as I am too busy with GNOME
development to keep current with kernel hacking.
PLATFORM SPECIFIC NOTES FOR SOLARIS:
====================================
The development branch of LibGTop (the 1.1.x series) has a first version
of the Solaris port which works at least on Solaris 7.
If you are on a Solaris system and want to give it a try, just fetch the
latest 1.1.x tarball from ftp://ftp.home-of-linux.org/pub/libgtop/1.1/
and try it out.
PLATFORM SPECIFIC NOTES FOR BSD:
=================================
There are a few caveats:
* You need to manually make the `$(prefix)/bin/libgtop_server' SGID to
kmem after installation and mount the /proc file system of FreeBSD
(/proc/<pid>/mem is used within kvm_uread ()).
* To get the filenames of the process maps displayed in GTop, you need
to configure with the `--with-libgtop-inodedb' option (you need GDBM
for this to work).
You have then to create an inode database which is used to look up
filenames. This is done using the `mkinodedb' program which comes
along with libgtop.
See the file src/inodedb/README for details:
The `mkinodedb' program which is build in this directory takes two
command line arguments: the full pathname of the database to be
created and the name of a configuration file consisting of directory
and file names each on a line by itself - see `/etc/ld.so.conf' for
an example.
Putting a directory name in this file means all regular files found
in this directory are included in the database, but it will not
recursively descend into subdirectories (for instance, we want
everything in `/usr/lib' but not every single file in `/usr/lib/sgml').
You can also use filenames to include a single file.
Have fun,
Martin <martin@home-of-linux.org>

46
TODO
View File

@@ -1,46 +0,0 @@
This is LibGTop 0.99.2,
a feature-freezed version of LibGTop for GNOME 1.0.
You need to use the latest version of LibGTop from CVS for Gnome, it will
no longer work with older releases.
Martin
--------------------------------------------------------------------------
NOTE: LibGTop is already feature-freezed for GNOME 1.0, so only bug fixes
are ok, no API changes !
Sysdeps directory 'linux':
==========================
* Add implementation for `ppp' with modems.
Sysdeps directory 'freebsd':
============================
* FreeBSD 3.0: It works fine on this system, so please make sure not
to break it here.
* FreeBSD 2.2: Make sure it still works here.
* NetBSD/OpenBSD: Support was added on Dec 6, but we need to check
whether all data are valid.
Sysdeps directories 'kernel', 'osf1' and 'sun4':
================================================
* You need to use the `--enable-hacker-mode' parameter to configure
to build this directories.
--------------------------------------------------------------------------
Everything except sysdeps directories:
======================================
* Ready for Gnome 1.0. [ALREADY FEATURE FREEZED]
January 5, 1999
Martin

View File

@@ -238,7 +238,7 @@ 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="da de es es_DO es_GT es_HN es_MX es_PA es_PE es_SV fi fr ja ko nl no pl sv"
ALL_LINGUAS="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 sv"
AM_GNOME_GETTEXT
AC_PATH_XTRA

9
debian/.cvsignore vendored Normal file
View File

@@ -0,0 +1,9 @@
control
rules
build
tmp
*.postinst
*.debhelper
*.files
files
substvars

9
debian/README.Debian vendored Normal file
View File

@@ -0,0 +1,9 @@
LibGTop CVS snapshots for Debian
--------------------------------
This is a debian package made from a stable release of LibGTop, but it
should be considered "unofficial" since I'm not a Debian Maintainer.
Martin Baulig <martin@home-of-linux.org>, Wed, 16 Feb 2000 16:40:50 +0100

121
debian/changelog vendored Normal file
View File

@@ -0,0 +1,121 @@
libgtop (1.0.7-1) unstable; urgency=low
* New upstream source (1.0.7 "Copenhagen" release)
* Non-maintainer upload; since I'm not a Debian maintainer, this is some
kind of "unofficial" debian package for LibGTop 1.0.7 - but I think it
can be considered stable and working.
-- Martin Baulig <martin@home-of-linux.org> Wed, 16 Feb 2000 16:40:50 +0100
libgtop (1.0.6-1) unstable; urgency=low
* New upstream source
-- Ian Lynagh (wibble) <igloo@debian.org> Wed, 20 Oct 1999 16:16:27 +0100
libgtop (1.0.4.5pre1-1) frozen unstable; urgency=low
* New upstream source (1.0.5 pre release)
* Maintainer e-mail address changed to igloo@debian.org
-- Ian Lynagh (wibble) <igloo@debian.org> Thu, 30 Sep 1999 22:37:33 +0100
libgtop (1.0.4-1) frozen unstable; urgency=low
* New upstream source
* Removed nasty sed stuff from the rules in favour of make install prefix=...
* Added .la files to libgtop-dev
* Added info to the copyright file
* Wrote simple man page for libgtop-config.
* Recompiled with later debhelper so docs go to /usr/share/doc as per FHS
* changed infodir to /usr/share/info
-- Ian Lynagh (wibble) <igloo@debian.org> Mon, 20 Sep 1999 00:06:16 +0100
libgtop (1.0.1-2) frozen unstable; urgency=low
* Didn't actually use wildcards in libgtop-dev.files because tar complained
* Set section names properly
-- Ian Lynagh <ian@lynagh.demon.co.uk> Sun, 7 Mar 1999 00:53:50 +0000
libgtop (1.0.1-1) frozen unstable; urgency=low
* SONAME changed back to 1. Fun fun fun.
* Added RELNOTES-1.0 to debian/libgtop1.docs and debian/rules
* Changed libgtop1.README.Debian to at least make sense
* Used wildcards in libgtop-dev.files
-- Ian Lynagh <ian@lynagh.demon.co.uk> Sun, 7 Mar 1999 00:53:50 +0000
libgtop (1.0.1-0.1) unstable; urgency=low
* Non-maintainer upload for GNOME 1.0
-- Jules Bean <jules@debian.org> Thu, 4 Mar 1999 22:34:12 +0000
libgtop (0.99.2-0.2) unstable; urgency=low
* Oops, forgot some files.
-- Jim Pick <jim@jimpick.com> Sun, 24 Jan 1999 02:12:24 -0800
libgtop (0.99.2-0.1) unstable; urgency=low
* Non-maintainer upload.
* New upstream source.
* SONAME is now 0 again. Hmmm.
-- Jim Pick <jim@jimpick.com> Sat, 23 Jan 1999 20:21:38 -0800
libgtop (0.26.2-4) frozen unstable; urgency=low
* Upstream changelog installed as changelog
* debian/shlibs.local removed in favour of the LD_LIBRARY_PATH line
-- Ian Lynagh <ian@lynagh.demon.co.uk> Thu, 26 Nov 1998 17:20:24 +0000
libgtop (0.26.2-3.1) frozen unstable; urgency=low
* Non-maintainer upload.
* Upload to frozen, corrects Bug #29110, Bug #29111, which were
already fixed.
* Noticed that guile option is no longer being used, so I removed
the dependency.
* Added changelog (to fix lintian error).
* Changed control file to use macro substitutions. This is a much
less error-prone way of building dependencies than doing them by
hand.
* Added -V option to dh_makeshlibs to put version number on shlibs
file.
* Added shlibs.local file with null entry for "libgtop 1" (and
others) so libgtop1 doesn't declare a relationship on itself.
-- Jim Pick <jim@jimpick.com> Wed, 25 Nov 1998 12:03:12 -0800
libgtop (0.26.2-3) frozen unstable; urgency=low
* libgtop0 changed to libgtop1
* Added an #ifndef strstr around the prototype of strstr in
sysdeps/common/mountlist.c as this is a macro under glibc 2.1.
-- Ian Lynagh <ian@lynagh.demon.co.uk> Sun, 8 Nov 1998 12:06:09 +0000
libgtop (0.26.2-2) frozen unstable; urgency=low
* Fixes minor bugs in debian/rules
-- Ian Lynagh <ian@lynagh.demon.co.uk> Fri, 16 Oct 1998 05:30:16 +0200
libgtop (0.26.2-1) unstable; urgency=low
* New upstream version
* Non-maintainer release
-- Martin Schulze <joey@finlandia.infodrom.north.de> Fri, 16 Oct 1998 05:30:16 +0200
libgtop (0.26.0-1) unstable; urgency=low
* Initial Release.
-- Jim Pick <jim@jimpick.com> Thu, 24 Sep 1998 18:42:48 -0700
Local variables:
mode: debian-changelog
End:

33
debian/control.in vendored Normal file
View File

@@ -0,0 +1,33 @@
Source: libgtop@SUFFIX@
Maintainer: Martin Baulig <martin@home-of-linux.org>
Section: libs
Priority: optional
Standards-Version: 3.0.0
Package: libgtop1@SUFFIX@
Architecture: any
Section: libs
Depends: ${shlibs:Depends}
Description: Portable system access library (part of Gnome)
Gnome is the "GNU Network Object Model Environment"
.
It is a project to build a complete, user-friendly desktop based
entirely on free software.
.
This package contains the gtop libraries which read information about
processes and the running systems.
Package: libgtop-dev@SUFFIX@
Architecture: any
Section: devel
Depends: libgtop1@SUFFIX@ (= ${Source-Version})
Description: Dev libraries for the portable system access library (part of Gnome)
Gnome is the "GNU Network Object Model Environment"
.
It is a project to build a complete, user-friendly desktop based
entirely on free software.
.
This package contains the include files and static library for the
gtop libraries which read information about processes and the running
systems.

109
debian/debconfigure vendored Executable file
View File

@@ -0,0 +1,109 @@
#! /bin/sh
#
# debconfigure
#
# A script to generate a debian/rules file, with options.
#
# By Jim Pick <jim@jimpick.com>, GPL'd of course.
# Adjusted for LibGTop by Martin Baulig <martin@home-of-linux.org>
#
if [ ! -r rules.in ]; then
echo "Please run the debconfigure script in the debian directory" 1>&2
exit 1
fi
debtype='official'
prefix='/usr'
gnomeprefix='/usr'
localstatedir='/var/lib'
pkgsuffix=''
for dc_option
do
case "$dc_option" in
-*=*) dc_optarg=`echo "$dc_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) dc_optarg= ;;
esac
case "$dc_option" in
--clean)
rm -f control rules *~ core *files *menu *substvars *.postinst *.debhelper
exit ;;
--prefix=*)
prefix="$dc_optarg" ;;
--localstatedir=*)
prefix="$dc_optarg" ;;
--pkgsuffix=*)
pkgsuffix="$dc_optarg" ;;
--gnome-prefix=*)
gnomeprefix="$dc_optarg" ;;
--debtype=*)
debtype="$dc_optarg" ;;
*)
cat <<EOF 1>&2
Usage: debconfigure [options]
Options: [defaults in brackets after descriptions]
--help print this message
--clean remove generated files
--prefix=PREFIX install files under under PREFIX dir [/usr]
--gnome-prefix=PREFIX look for GNOME under PREFIX dir [/usr]
--localstatedir=DIR directory for things like game scores [/var/lib]
--pkgsuffix=SUFFIX append SUFFIX onto package names []
--debtype=DEBTYPE enable macros with the name of DEBTYPE [official]
EOF
exit ;;
esac
done
# Strip leading slash
prefix=`expr $prefix : '/\(.*\)'`
gnomeprefix=`expr $gnomeprefix : '/\(.*\)'`
localstatedir=`expr $localstatedir : '/\(.*\)'`
for infile in `ls control.in rules.in`
do
tofile=`expr $infile : '\(.*\)\.in'`
cat $infile | \
sed "s,@SUFFIX@,$pkgsuffix,g" | \
sed "s,@PREFIX@,$prefix,g" | \
sed "s,@GNOMEPREFIX@,$gnomeprefix,g" | \
sed "s,@LOCALSTATEDIR@,$localstatedir,g" | \
sed "s,%$debtype>,," | sed '/^%/d' > $tofile
done
chmod +x rules
for filesfile in `ls *.files.in`
do
tofile=`expr $filesfile : '\(.*\)\.files\.in'`
tofile=`echo $tofile$pkgsuffix.files`
cat $filesfile | \
sed "s,@SUFFIX@,$pkgsuffix,g" | \
sed "s,@PREFIX@,$prefix,g" | \
sed "s,@GNOMEPREFIX@,$gnomeprefix,g" | \
sed "s,@LOCALSTATEDIR@,$localstatedir,g" | \
sed "s,%$debtype>,," | sed '/^%/d' > $tofile
done
for postinst in libgtop1$pkgsuffix
do
cat > $postinst.postinst <<EOF
#! /bin/sh
set -e
ldconfig
#DEBHELPER#
EOF
done

34
debian/libgtop-config.1 vendored Normal file
View File

@@ -0,0 +1,34 @@
.TH GTOP l "15 September 1999"
.SH NAME
\fBlibgtop-config\fP \- libgtop libraries and component information retrieval.
.SH SYNTAX
.B libgtop-config
.RI [ --version ]
.RI [ --config ]
.RI [ --features-def-file ]
.SH DESCRIPTION
.B libgtop-config
is used to retrieve information from installed libraries in the system.
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.
.LP
.SH OPTIONS
.TP
.B \-\-version
.PD
Prints the version of libgtop that you're using.
.TP
.B \-\-config
.PD
Prints the location of libgtopConf.sh.
.TP
.B \-\-version
.PD
Prints the location of libgtop-features.def.
.SH BUGS
None known
.SH AUTHORS
Martin Baulig (martin@home-of-linux.org)
.TP
Josh Sled (jsled@scam.XCF.Berkeley.EDU)

24
debian/libgtop-dev.files.in vendored Normal file
View File

@@ -0,0 +1,24 @@
@PREFIX@/lib/libgtop.a
@PREFIX@/lib/libgtop_common.a
@PREFIX@/lib/libgtop_names.a
@PREFIX@/lib/libgtop_suid_common.a
@PREFIX@/lib/libgtop_sysdeps.a
@PREFIX@/lib/libgtop.la
@PREFIX@/lib/libgtop_common.la
@PREFIX@/lib/libgtop_names.la
@PREFIX@/lib/libgtop_suid_common.la
@PREFIX@/lib/libgtop_sysdeps.la
@PREFIX@/lib/libgtopConf.sh
@PREFIX@/lib/libgtop.so
@PREFIX@/lib/libgtop_common.so
@PREFIX@/lib/libgtop_names.so
@PREFIX@/lib/libgtop_suid_common.so
@PREFIX@/lib/libgtop_sysdeps.so
@PREFIX@/lib/libgtop-features.def
@PREFIX@/lib/libgtop/include/*.h
@PREFIX@/include/glibtop/*.h
@PREFIX@/include/glibtop.h
@PREFIX@/include/glibtop_server.h
@PREFIX@/include/glibtop_machine.h
@PREFIX@/info/libgtop.info
@PREFIX@/bin/libgtop-config

5
debian/libgtop1.README.Debian vendored Normal file
View File

@@ -0,0 +1,5 @@
The Debian package of libgtop, a GNOME library.
--
Martin Baulig <martin@home-of-linux.org>

12
debian/libgtop1.copyright vendored Normal file
View File

@@ -0,0 +1,12 @@
libgtop is released under the GPL.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in /usr/share/common-licenses/GPL
Original authors: Martin Baulig <martin@home-of-linux.org>
Drazen Kacar <dave@srce.hr>
Originally Debianised by Jim Pick <jim@jimpick.com>
Then re-Debianised in October 1998 by Martin Schulze
<joey@finlandia.infodrom.north.de> before being taken over by Ian Lynagh
<ian@lynagh.demon.co.uk> in November 1998.

5
debian/libgtop1.docs vendored Normal file
View File

@@ -0,0 +1,5 @@
RELNOTES-0.25
RELNOTES-1.0.x
NEWS
AUTHORS
debian/changelog

4
debian/libgtop1.files.in vendored Normal file
View File

@@ -0,0 +1,4 @@
@PREFIX@/lib/libgtop*.so.[0-9].[0-9][0-9].[0-9]
@PREFIX@/lib/libgtop*.so.[0-9].[0-9].[0-9]
@PREFIX@/lib/libgtop*.so.[0-9]
@PREFIX@/share/locale/*/*/libgtop.mo

115
debian/rules.in vendored Executable file
View File

@@ -0,0 +1,115 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
i=$(shell pwd)/debian/tmp
b=$(shell pwd)/debian/build
configure: configure.in
@echo "--- Making configure script and configuring"
chmod +x autogen.sh
./autogen.sh --prefix=/@PREFIX@ --with-gnome=/@GNOMEPREFIX@ \
--localstatedir=/@LOCALSTATEDIR@
Makefile: configure
@echo "--- Configuring"
./configure --prefix=/@PREFIX@ --with-gnome=/@GNOMEPREFIX@ \
--localstatedir=/@LOCALSTATEDIR@
build: configure Makefile build-debstamp
build-debstamp:
@echo "--- Compiling"
dh_testdir
$(MAKE) all
touch build-debstamp
clean: Makefile
@echo "--- Cleaning"
dh_testdir
dh_clean
-rm -rf static shared
-rm -f build-debstamp install-debstamp
-make -k distclean
-rm -f `find . -name "*~"`
-rm -f `find . -name "*\.la"`
-rm -rf `find . -name "\.deps"`
-rm -rf `find . -name "\.libs"`
-rm -rf `find . -name "*\.rej"`
-rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
-rm -f debian/*substvars
install: build install-debstamp
install-debstamp:
@echo "--- Installing"
dh_testdir
dh_testroot
rm -rf $(b)
$(MAKE) install prefix=$(i)/@PREFIX@ exec_prefix=$(i)/@PREFIX@ \
localstatedir=$(i)/@LOCALSTATEDIR@
touch install-debstamp
install-save: install
rm -rf $(i).saved
cp -a $(i) $(i).saved
install-saved:
rm -rf $(i)
cp -a $(i).saved $(i)
rm -rf $(b)
touch install-debstamp
binary-indep: build install
binary-arch: build install \
libgtop1@SUFFIX@ \
libgtop-dev@SUFFIX@
#
# libgtop1@SUFFIX@
#
libgtop1@SUFFIX@: install
@echo "--- Building: $@"
dh_installdocs -p$@ -P$(b)/$@ README NEWS AUTHORS
dh_installchangelogs -p$@ -P$(b)/$@ ChangeLog
dh_movefiles -p$@ -P$(b)/$@
dh_strip -p$@ -P$(b)/$@
dh_compress -p$@ -P$(b)/$@
dh_fixperms -p$@ -P$(b)/$@
dh_installdeb -p$@ -P$(b)/$@
dh_shlibdeps -p$@ -P$(b)/$@
dh_gencontrol -p$@ -P$(b)/$@
dh_makeshlibs -p$@ -P$(b)/$@ -V
dh_md5sums -p$@ -P$(b)/$@
dh_builddeb -p$@ -P$(b)/$@
#
# libgtop-dev
#
libgtop-dev@SUFFIX@: install
@echo "--- Building: $@"
mkdir -p $(b)/$@/usr/doc
cd $(b)/$@/usr/doc; ln -s libgtop1@SUFFIX@ $@
dh_movefiles -p$@ -P$(b)/$@
dh_strip -p$@ -P$(b)/$@
dh_compress -p$@ -P$(b)/$@
dh_fixperms -p$@ -P$(b)/$@
dh_installdeb -p$@ -P$(b)/$@
dh_shlibdeps -p$@ -P$(b)/$@
dh_gencontrol -p$@ -P$(b)/$@
dh_makeshlibs -p$@ -P$(b)/$@ -V
dh_undocumented -p$@ -P$(b)/$@ \
libgtop-config.1
dh_md5sums -p$@ -P$(b)/$@
dh_builddeb -p$@ -P$(b)/$@
binary: binary-indep binary-arch
.PHONY: binary clean binary-indep binary-arch build install install-save install-saved

122
doc/about.texi Normal file
View File

@@ -0,0 +1,122 @@
@node About, White Paper, Top, Top
@chapter About LibGTop
LibGTop is a library to get system specific data such as CPU and Memory Usage
and information about running Processes.
On Systems like Solaris or Digital Unix where you need special privileges to
get those data, it uses a setuid/setgid server to do so.
Even if LibGTop is a part of the GNOME desktop environment
(@uref{http://www.gnome.org}), the main interface of LibGTop is totally
independent from any particular desktop environment, so you can also use it
as a standalone library in any piece of GPLed software.
@menu
* Availability:: Where to get LibGTop
* Supported Platforms:: Supported Platforms
* Mailing List:: Helping with LibGTop development
* Thanks:: People who contributed to LibGTop
@end menu
@node Availability, Supported Platforms, About, About
@section Availability
The master source of LibGTop is the GNOME CVS tree
(see @uref{http://www.gnome.org} for details), but you can also get the
latest release tarballs from
@display
@uref{ftp://ftp.gnome.org/pub/GNOME/sources/libgtop/}
@end display
@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.
@node Supported Platforms, Mailing List, Availability, About
@section Supported Platforms
The stable branch currently supports the following platforms:
@itemize @bullet
@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.
Note: I'm speaking of the Linux kernel here, not the GNU/Linux operating system.
@item FreeBSD, NetBSD and OpenBSD
LibGTop was tested under FreeBSD 2.2.6 and 3.0, NetBSD 1.3.2 and OpenBSD 2.4.
Support for NetBSD 1.4 was added in LibGTop 1.0.2.
@end itemize
The platforms listed above are known to be stable and working. However, if
you're using the latest development version, you can use it on the following
platforms as well:
@itemize @bullet
@item BSD/OS
There is a port for BSD/OS (aka BSDI) 2.x and 3.x from Timur Bakeyev which
should also work with 4.x. This isn't tested very well, but it should be
working.
@item Digital Unix
There is some basic support for Digital Unix (formerly DEC OSF/1) V3.2C, but
this may still be a bit unstable. I'm currently working on this port as time
permits so it should be fully supported soon.
@item Solaris
The Solaris port currently works on Solaris 7 and maybe also on other releases.
Thanks a lot to Drazen Kacar and everyone who helped working on this port. They
have really done excellent work here and I'm pretty sure that this port will be
fully functional on most Solaris versions in near future.
@end itemize
@node Mailing List, Thanks, Supported Platforms, About
@section Mailing List
There is a @email{libgtop-devel-list@@egroups.com} mailing list for people who
want to help with the development of LibGTop.
It is meant as a low-traffic, but high content-list where we can discuss
technical details such as adding new sysdeps ports etc.
Especially, I'd like to see people with a deeper knowledge of operating systems
internals joining my list so we can discuss technical details of the sysdeps
code.
It is *not* for users that want to know how to compile LibGTop etc.
You can subscribe to this mailing list and view the mailing list archives
on the LibGTop Page at @uref{http://www.home-of-linux.org/gnome/libgtop}.
@node Thanks, , Mailing List, About
@section Thanks
At the place I'd like to thank the following people who contributed to
LibGTop (listed in chronological order):
@itemize @bullet
@item Sebastian Wilhelmi who had the initial idea of LibGTop and helped
me a lot in the early beginning.
@item Josh Sled for the initial FreeBSD port.
@item Jeremy Lea for his BSD patches.
@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 All people sending me patches, having good ideas, ...
@item Everyone I have forgotten in this list ...
@end itemize

68
doc/main.texi Normal file
View File

@@ -0,0 +1,68 @@
@node Top, About, (dir), (dir)
@menu
* About:: About LibGTop
* White Paper:: LibGTop White Paper
* Reference Manual:: LibGTop Reference Manual
--- The Detailed Node Listing ---
About LibGTop
* Availability:: Where to get LibGTop
* Supported Platforms:: Supported Platforms
* Mailing List:: Helping with LibGTop development
* Thanks:: People who contributed to LibGTop
LibGTop White Paper
* Introduction:: Introduction
* Overview:: Overview
Overview
* Interface Design:: Things that need to be considered
* Server Implementation:: The LibGTop "server"
LibGTop Reference Manual
* System Dependent:: System Dependent Functions.
* Common Functions:: Common Functions.
* Library Functions:: Library Functions.
System Dependent Functions
* glibtop_cpu:: CPU Usage.
* glibtop_mem:: Memory Usage.
* glibtop_swap:: Swap Usage.
* glibtop_uptime:: System Uptime.
* glibtop_loadavg:: Load Average.
* glibtop_proclist:: Process List.
* glibtop_proc_state:: Process State.
* glibtop_proc_uid:: Process UID and TTY Information.
* glibtop_proc_mem:: Process Memory Information.
* glibtop_proc_time:: Process Time Information.
* glibtop_proc_signal:: Process Signal Information.
* glibtop_proc_kernel:: Process Kernel Data Information.
* glibtop_proc_segment:: Process Segment Information.
* glibtop_proc_args:: Process Arguments.
* glibtop_proc_map:: Process Memory Maps.
* glibtop_netload:: Network Load.
* glibtop_ppp:: PPP Usage.
Common Functions
* glibtop_mountlist:: Mount List.
* glibtop_fsusage:: File System Usage.
Library Functions
* glibtop_init:: Server Initialization.
* glibtop_sysdeps:: Server Sysdeps.
* Library Parameters:: Library Parameters.
@end menu
@include about.texi
@include white-paper.texi
@include reference.texi

1807
doc/reference.texi Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,7 @@
1999-10-09 Jesus Bravo Alvarez <jba@pobox.com>
* gl.po: Added Galician translation.
1999-09-29 Kenneth ll<6C>phaane Christiansen <kenneth@ripen.dk>
* da.po: Updated.

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop 0.99.3\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-09-28 22:43+02:00\n"
"Last-Translator: Kenneth Christiansen <kenneth@ripen.dk>\n"
"Language-Team: Dansk/Danish <da@li.org>\n"
@@ -1263,47 +1263,47 @@ msgid "write %d bytes"
msgstr "skriv %d byte"
# src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr "Sl<53> aflusning til"
# src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "DEBUG"
# src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr "Sl<53> meddelsom udskrift til"
# src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr "VERBOSE"
# src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "Forgren ikke til baggrund"
# src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr "NO-DAEMON"
# src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr "Kaldt fra inetd"
# src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr "INETD"
# src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-07-11 12:44+02:00\n"
"Last-Translator: Martin Baulig <martin@home-of-linux.org>\n"
"Language-Team: Martin Baulig <martin@home-of-linux.org>\n"
@@ -1044,39 +1044,39 @@ msgstr "%d Datenbytes gelesen"
msgid "write %d bytes"
msgstr "schreibe %d bytes"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr "Fehlerdiagnose einschalten"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "DIAGNOSE"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr "Gespr<70>chige Ausgabe einschalten"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr "GESPRAECHIG"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "Nicht in den Hintergrund abforken"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr "KEIN-D<>MON"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr "Durch inetd aufgerufen"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr "INETD"
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop 1.1.1\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
@@ -1037,39 +1037,39 @@ msgstr "le
msgid "write %d bytes"
msgstr "escritos %d bytes"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr "Activar depuraci<63>n"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "DEPURACI<43>N"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr "Activa salida detallada"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr "DETALLADO"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "No abrir un proceso de fondo"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr "NO-DAEMON"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr "Invocado desde inetd"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr "INETD"
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop cvs\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
@@ -1010,39 +1010,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop cvs\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
@@ -1010,39 +1010,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop cvs\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
@@ -1010,39 +1010,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop cvs\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
@@ -1010,39 +1010,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop cvs\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
@@ -1010,39 +1010,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop cvs\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
@@ -1010,39 +1010,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop cvs\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
@@ -1010,39 +1010,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-08-01 18:09-0400\n"
"Last-Translator: Unknown :-(\n"
"Language-Team: \n"
@@ -1023,39 +1023,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "<22>l<EFBFBD> forkkaa taustalle"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr "K<>ynnistetty inetd-prosssista"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-07-27 18:24+0200\n"
"Last-Translator: Vincent Renardias <vincent@ldsol.com>\n"
"Language-Team: GNOME French Team <gnomefr@gnomefr.traduc.org>\n"
@@ -1040,39 +1040,39 @@ msgstr "lecture de %d octets de donn
msgid "write %d bytes"
msgstr "<22>criture de %d octets"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr "Active le debuggage"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "DEBUG"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr "Active la sortie bavarde"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr "BAVARD"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "Ne pas lancer en t<>che de fond"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr "NON-DEMON"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr "Invoqu<71> <20><>partir de inetd"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr "INETD"
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

1085
po/gl.po Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1998-12-11 06:53+09:00\n"
"Last-Translator: Eiichiro ITANI <emu@ceres.dti.ne.jp>\n"
"Language-Team: <gnome@lists.hypercore.co.jp>\n"
@@ -1024,39 +1024,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop 1.0.2\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-03-30 10:40:01+0900\n"
"Last-Translator: Sung-Hyun Nam <namsh@lgic.co.kr>\n"
"Language-Team: Korean <ko@li.org>\n"
@@ -1024,39 +1024,39 @@ msgstr ""
msgid "write %d bytes"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-09-18 00:24+0200\n"
"Last-Translator: Gert Dewit <Gert.Dewit@sos.be>\n"
"Language-Team: nl <nl@li.org>\n"
@@ -1001,39 +1001,39 @@ msgstr "lees %d bytes"
msgid "write %d bytes"
msgstr "schrijf %d bytes"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr ""
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "DEBUG"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr ""
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr "VERBOSE"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr ""
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr ""
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr "INETD"
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop 0.99.3\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-07-11 14:25+0200\n"
"Last-Translator: Kjartan Maraas <kmaraas@online.no>\n"
"Language-Team: Norwegian <no@li.org>\n"
@@ -1023,39 +1023,39 @@ msgstr "les data %d bytes"
msgid "write %d bytes"
msgstr "skriv %d bytes"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr "Sl<53> p<> avlusing"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "DEBUG"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr "Sl<53> p<> utfyllende utskrift"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr "VERBOSE"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "Ikke forgren til bakgrunnen"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr "NO-DAEMON"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr "Kalt fra inetd"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr "INETD"
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-09-17 04:26+0200\n"
"Last-Translator: GNOME PL Team\n"
"Language-Team: Polish <gnomepl@pandora.info.bielsko.pl>\n"
@@ -1004,39 +1004,39 @@ msgstr "odczytaj %d bajt
msgid "write %d bytes"
msgstr "zapisz %d bajt<6A>w"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr "Uaktywnij <20>ledzenie"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "<22>LEDZENIE"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr "Uaktywnij rozwlek<65>e komunikaty"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr "ROZWLEK<45>Y"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "Nie przechod<6F> w t<>o"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr "NIE-DEMON"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr "Wywo<77>any przez inetd"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr "INETD"
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop 1.0.3\n"
"POT-Creation-Date: 1999-09-29 01:00+0200\n"
"POT-Creation-Date: 2000-02-14 15:46+0100\n"
"PO-Revision-Date: 1999-09-16 23:36+0200\n"
"Last-Translator: Tomas <20>gren <stric@ing.umu.se>\n"
"Language-Team: Swedish <sv@li.org>\n"
@@ -1025,39 +1025,39 @@ msgstr "l
msgid "write %d bytes"
msgstr "skrev %d tecken"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "Enable debugging"
msgstr "Aktivera fels<6C>kning"
#: src/daemon/gnuserv.c:446
#: src/daemon/gnuserv.c:448
msgid "DEBUG"
msgstr "DEBUG"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "Enable verbose output"
msgstr "Aktivera utf<74>rlig utskrift"
#: src/daemon/gnuserv.c:448
#: src/daemon/gnuserv.c:450
msgid "VERBOSE"
msgstr "VERBOSE"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "Don't fork into background"
msgstr "Starta ej bakgrunds-gren"
#: src/daemon/gnuserv.c:450
#: src/daemon/gnuserv.c:452
msgid "NO-DAEMON"
msgstr "NO-DAEMON"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "Invoked from inetd"
msgstr "Startad fr<66>n inetd"
#: src/daemon/gnuserv.c:452
#: src/daemon/gnuserv.c:454
msgid "INETD"
msgstr "INETD"
#: src/daemon/gnuserv.c:486
#: src/daemon/gnuserv.c:488
#, c-format
msgid ""
"Error on option %s: %s.\n"

View File

@@ -1,3 +1,8 @@
1999-11-28 Martin Baulig <martin@home-of-linux.org>
* gnuserv.c (setup_table): Don't dump core when the table of
permitted host names contains a NULL pointer.
1999-07-29 Martin Baulig <martin@home-of-linux.org>
* Makefile.am: Link the `libgtop_daemon' and the `libgtop_server'

View File

@@ -297,6 +297,8 @@ setup_table (void)
/* Resolv host names from permitted_host_names []. */
for (i = 0; i < HOST_TABLE_ENTRIES; i++) {
if (!permitted_host_names [i])
continue;
if (enable_debug)
syslog_message (LOG_DEBUG, "Resolving %s ...",
permitted_host_names [i]);

8
sysdeps/common/ChangeLog Normal file
View File

@@ -0,0 +1,8 @@
2000-01-20 Martin Baulig <martin@home-of-linux.org>
* fsusage.c (adjust_blocks): Use `u_int64_t' arguments and
return value to avoid long int overflows on machines with large
disks.
* fsusage.h (struct fs_usage): Use `u_int64_t' here as well.

View File

@@ -75,9 +75,9 @@ int safe_read ();
BLOCKS FROMSIZE-byte blocks, rounding away from zero.
TOSIZE must be positive. Return -1 if FROMSIZE is not positive. */
static long
static u_int64_t
adjust_blocks (blocks, fromsize, tosize)
long blocks;
u_int64_t blocks;
int fromsize, tosize;
{
if (tosize <= 0)
@@ -88,9 +88,9 @@ adjust_blocks (blocks, fromsize, tosize)
if (fromsize == tosize) /* e.g., from 512 to 512 */
return blocks;
else if (fromsize > tosize) /* e.g., from 2048 to 512 */
return blocks * (fromsize / tosize);
return blocks * (u_int64_t)(fromsize / tosize);
else /* e.g., from 256 to 512 */
return (blocks + (blocks < 0 ? -1 : 1)) / (tosize / fromsize);
return (blocks + (blocks < 0 ? -1 : 1)) / (u_int64_t)(tosize / fromsize);
}
/* Fill in the fields of FSP with information about space usage for
@@ -107,7 +107,7 @@ get_fs_usage (path, disk, fsp)
struct fs_usage *fsp;
{
#ifdef STAT_STATFS3_OSF1
# define CONVERT_BLOCKS(B) adjust_blocks ((B), fsd.f_fsize, 512)
# define CONVERT_BLOCKS(B) adjust_blocks ((u_int64_t)(B), fsd.f_fsize, 512)
struct statfs fsd;
@@ -117,7 +117,7 @@ get_fs_usage (path, disk, fsp)
#endif /* STAT_STATFS3_OSF1 */
#ifdef STAT_STATFS2_FS_DATA /* Ultrix */
# define CONVERT_BLOCKS(B) adjust_blocks ((B), 1024, 512)
# define CONVERT_BLOCKS(B) adjust_blocks ((u_int64_t)(B), 1024, 512)
struct fs_data fsd;
@@ -136,7 +136,7 @@ get_fs_usage (path, disk, fsp)
# define SUPERBOFF (SUPERB * 512)
# endif
# define CONVERT_BLOCKS(B) \
adjust_blocks ((B), (fsd.s_type == Fs2b ? 1024 : 512), 512)
adjust_blocks ((u_int64_t)(B), (fsd.s_type == Fs2b ? 1024 : 512), 512)
struct filsys fsd;
int fd;
@@ -166,7 +166,7 @@ get_fs_usage (path, disk, fsp)
#endif /* STAT_READ_FILSYS */
#ifdef STAT_STATFS2_BSIZE /* 4.3BSD, SunOS 4, HP-UX, AIX */
# define CONVERT_BLOCKS(B) adjust_blocks ((B), fsd.f_bsize, 512)
# define CONVERT_BLOCKS(B) adjust_blocks ((u_int64_t)(B), fsd.f_bsize, 512)
struct statfs fsd;
@@ -191,7 +191,7 @@ get_fs_usage (path, disk, fsp)
#endif /* STAT_STATFS2_BSIZE */
#ifdef STAT_STATFS2_FSIZE /* 4.4BSD */
# define CONVERT_BLOCKS(B) adjust_blocks ((B), fsd.f_fsize, 512)
# define CONVERT_BLOCKS(B) adjust_blocks ((u_int64_t)(B), fsd.f_fsize, 512)
struct statfs fsd;
@@ -202,7 +202,7 @@ get_fs_usage (path, disk, fsp)
#ifdef STAT_STATFS4 /* SVR3, Dynix, Irix, AIX */
# if _AIX || defined(_CRAY)
# define CONVERT_BLOCKS(B) adjust_blocks ((B), fsd.f_bsize, 512)
# define CONVERT_BLOCKS(B) adjust_blocks ((u_int64_t)(B), fsd.f_bsize, 512)
# ifdef _CRAY
# define f_bavail f_bfree
# endif
@@ -227,7 +227,7 @@ get_fs_usage (path, disk, fsp)
#ifdef STAT_STATVFS /* SVR4 */
# define CONVERT_BLOCKS(B) \
adjust_blocks ((B), fsd.f_frsize ? fsd.f_frsize : fsd.f_bsize, 512)
adjust_blocks ((u_int64_t)(B), fsd.f_frsize ? fsd.f_frsize : fsd.f_bsize, 512)
struct statvfs fsd;
@@ -289,6 +289,7 @@ glibtop_get_fsusage_s (glibtop *server, glibtop_fsusage *buf,
glibtop_init_r (&server, 0, 0);
memset (buf, 0, sizeof (glibtop_fsusage));
memset (&fsp, 0, sizeof (struct fs_usage));
if (get_fs_usage (disk, disk, &fsp))
return;

View File

@@ -18,10 +18,10 @@
/* Space usage statistics for a filesystem. Blocks are 512-byte. */
struct fs_usage
{
long fsu_blocks; /* Total blocks. */
long fsu_bfree; /* Free blocks available to superuser. */
long fsu_bavail; /* Free blocks available to non-superuser. */
long fsu_files; /* Total file nodes. */
long fsu_ffree; /* Free file nodes. */
u_int64_t fsu_blocks; /* Total blocks. */
u_int64_t fsu_bfree; /* Free blocks available to superuser. */
u_int64_t fsu_bavail; /* Free blocks available to non-superuser. */
u_int64_t fsu_files; /* Total file nodes. */
u_int64_t fsu_ffree; /* Free file nodes. */
};

View File

@@ -1,3 +1,25 @@
2000-02-13 Martin Baulig <martin@home-of-linux.org>
* *.c: kvm_nlist () returns -1 on error, but a positive return value
does not necessarily mean failure. Fixes #3302 which was reported by
Matthias Scheler some time ago.
1999-10-16 Martin Baulig <martin@home-of-linux.org>
Applied all patches from the FreeBSD 3.3 ports collection.
* swap.c: Only #include <rlist.h> for __FreeBSD_version < 400005.
* prockernel.c: Make it compile on FreeBSD / alpha.
* procsignal.c: Some fixes for FreeBSD-current.
1999-10-16 Martin Baulig <martin@home-of-linux.org>
* procstate.c (glibtop_get_proc_state_p): Don't use the
`GLIBTOP_PROCESS_*' constants for process states for
LibGTop 1.0.x.
1999-07-29 Martin Baulig <martin@home-of-linux.org>
* proctime.c (glibtop_get_proc_time_p): Fix bug reported by

View File

@@ -51,7 +51,7 @@ static int mib [] = { CTL_KERN, KERN_CLOCKRATE };
void
glibtop_init_cpu_p (glibtop *server)
{
if (kvm_nlist (server->machine.kd, nlst) != 0) {
if (kvm_nlist (server->machine.kd, nlst) < 0) {
glibtop_warn_io_r (server, "kvm_nlist (cpu)");
return;
}

View File

@@ -92,7 +92,7 @@ glibtop_init_mem_p (glibtop *server)
{
register int pagesize;
if (kvm_nlist (server->machine.kd, nlst) != 0) {
if (kvm_nlist (server->machine.kd, nlst) < 0) {
glibtop_warn_io_r (server, "kvm_nlist (mem)");
return;
}

View File

@@ -76,7 +76,7 @@ static struct nlist nlst [] = {
void
glibtop_init_msg_limits_p (glibtop *server)
{
if (kvm_nlist (server->machine.kd, nlst) != 0) {
if (kvm_nlist (server->machine.kd, nlst) < 0) {
glibtop_warn_io_r (server, "kvm_nlist (msg_limits)");
return;
}

View File

@@ -67,7 +67,7 @@ glibtop_init_netload_p (glibtop *server)
{
server->sysdeps.netload = _glibtop_sysdeps_netload;
if (kvm_nlist (server->machine.kd, nlst) != 0)
if (kvm_nlist (server->machine.kd, nlst) < 0)
glibtop_error_io_r (server, "kvm_nlist");
}

View File

@@ -82,7 +82,7 @@ glibtop_init_ppp_p (glibtop *server)
#endif
#endif /* HAVE_I4B */
if (kvm_nlist (server->machine.kd, nlst) != 0)
if (kvm_nlist (server->machine.kd, nlst) < 0)
glibtop_error_io_r (server, "kvm_nlist");
}

View File

@@ -34,10 +34,10 @@
#if (!defined __OpenBSD__) && (!defined __bsdi__)
#include <sys/user.h>
#endif
#ifndef __bsdi__
#if !defined(__bsdi__) && !(defined(__FreeBSD__) && defined(__alpha__))
#include <machine/pcb.h>
#endif
#ifdef __FreeBSD__
#if defined(__FreeBSD__) && !defined(__alpha__)
#include <machine/tss.h>
#endif
@@ -155,6 +155,7 @@ glibtop_get_proc_kernel_p (glibtop *server,
(char *) &pcb, sizeof (pcb)) == sizeof (pcb))
{
#ifdef __FreeBSD__
#ifndef __alpha__
#if (__FreeBSD_version >= 300003)
buf->kstk_esp = (u_int64_t) pcb.pcb_esp;
buf->kstk_eip = (u_int64_t) pcb.pcb_eip;
@@ -162,6 +163,9 @@ glibtop_get_proc_kernel_p (glibtop *server,
buf->kstk_esp = (u_int64_t) pcb.pcb_ksp;
buf->kstk_eip = (u_int64_t) pcb.pcb_pc;
#endif
#else
/*xxx FreeBSD/Alpha? */
#endif
#else
buf->kstk_esp = (u_int64_t) pcb.pcb_tss.tss_esp0;
#ifdef __bsdi__

View File

@@ -27,6 +27,10 @@
#include <glibtop_suid.h>
#ifdef __FreeBSD__
#include <osreldate.h>
#endif
static const unsigned long _glibtop_sysdeps_proc_signal =
(1L << GLIBTOP_PROC_SIGNAL_SIGNAL) +
(1L << GLIBTOP_PROC_SIGNAL_BLOCKED) +
@@ -66,7 +70,7 @@ glibtop_get_proc_signal_p (glibtop *server,
/* signal: mask of pending signals.
* pinfo [0].kp_proc.p_siglist
*/
#if defined(__NetBSD__) && (NSIG > 32)
#if (defined(__NetBSD__) && (NSIG > 32)) || (__FreeBSD_version >= 400011)
buf->signal [0] = pinfo [0].kp_proc.p_siglist.__bits[0];
#else
buf->signal [0] = pinfo [0].kp_proc.p_siglist;
@@ -75,7 +79,7 @@ glibtop_get_proc_signal_p (glibtop *server,
/* blocked: mask of blocked signals.
* pinfo [0].kp_proc.p_sigmask
*/
#if defined(__NetBSD__) && (NSIG > 32)
#if (defined(__NetBSD__) && (NSIG > 32)) || (__FreeBSD_version >= 400011)
buf->blocked [0] = pinfo [0].kp_proc.p_sigmask.__bits[0];
#else
buf->blocked [0] = pinfo [0].kp_proc.p_sigmask;
@@ -84,7 +88,7 @@ glibtop_get_proc_signal_p (glibtop *server,
/* sigignore: mask of ignored signals.
* pinfo [0].kp_proc.p_sigignore
*/
#if defined(__NetBSD__) && (NSIG > 32)
#if (defined(__NetBSD__) && (NSIG > 32)) || (__FreeBSD_version >= 400011)
buf->sigignore [0] = pinfo [0].kp_proc.p_sigignore.__bits[0];
#else
buf->sigignore [0] = pinfo [0].kp_proc.p_sigignore;
@@ -93,7 +97,7 @@ glibtop_get_proc_signal_p (glibtop *server,
/* sigcatch: mask of caught signals.
* pinfo [0].kp_proc.p_sigcatch
*/
#if defined(__NetBSD__) && (NSIG > 32)
#if (defined(__NetBSD__) && (NSIG > 32)) || (__FreeBSD_version >= 400011)
buf->sigcatch [0] = pinfo [0].kp_proc.p_sigcatch.__bits[0];
#else
buf->sigcatch [0] = pinfo [0].kp_proc.p_sigcatch;

View File

@@ -91,6 +91,7 @@ glibtop_get_proc_state_p (glibtop *server,
buf->flags = _glibtop_sysdeps_proc_state |
_glibtop_sysdeps_proc_state_new;
#if LIBGTOP_VERSION_CODE >= 1001000
switch (pinfo [0].kp_proc.p_stat) {
case SIDL:
buf->state = 0;
@@ -110,6 +111,27 @@ glibtop_get_proc_state_p (glibtop *server,
default:
return;
}
#else
switch (pinfo [0].kp_proc.p_stat) {
case SIDL:
buf->state = 'S';
break;
case SRUN:
buf->state = 'R';
break;
case SSLEEP:
buf->state = 'S';
break;
case SSTOP:
buf->state = 'T';
break;
case SZOMB:
buf->state = 'Z';
break;
default:
return;
}
#endif
buf->flags |= (1L << GLIBTOP_PROC_STATE_STATE);
}

View File

@@ -78,7 +78,7 @@ static struct nlist nlst [] = {
void
glibtop_init_sem_limits_p (glibtop *server)
{
if (kvm_nlist (server->machine.kd, nlst) != 0) {
if (kvm_nlist (server->machine.kd, nlst) < 0) {
glibtop_warn_io_r (server, "kvm_nlist (sem_limits)");
return;
}

View File

@@ -76,7 +76,7 @@ static struct nlist nlst [] = {
void
glibtop_init_shm_limits_p (glibtop *server)
{
if (kvm_nlist (server->machine.kd, nlst) != 0) {
if (kvm_nlist (server->machine.kd, nlst) < 0) {
glibtop_warn_io_r (server, "kvm_nlist (shm_limits)");
return;
}

View File

@@ -40,8 +40,10 @@ static const unsigned long _glibtop_sysdeps_swap =
#ifdef __bsdi__
#include <vm/swap_pager.h>
#else
#if __FreeBSD_version < 400005
#include <sys/rlist.h>
#endif
#endif
#include <sys/vmmeter.h>
/* nlist structure for kernel access */
@@ -95,7 +97,7 @@ glibtop_init_swap_p (glibtop *server)
{
#if defined(__FreeBSD__) || defined(__bsdi__)
#if __FreeBSD__ < 4 || defined(__bsdi__)
if (kvm_nlist (server->machine.kd, nlst) != 0) {
if (kvm_nlist (server->machine.kd, nlst) < 0) {
glibtop_warn_io_r (server, "kvm_nlist (swap)");
return;
}
@@ -110,7 +112,7 @@ glibtop_init_swap_p (glibtop *server)
#endif
#if !(defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000))
if (kvm_nlist (server->machine.kd, nlst2) != 0) {
if (kvm_nlist (server->machine.kd, nlst2) < 0) {
glibtop_warn_io_r (server, "kvm_nlist (cnt)");
return;
}

View File

@@ -1,3 +1,19 @@
2000-01-22 Martin Baulig <martin@home-of-linux.org>
* procargs.c (glibtop_get_proc_args_s): Set correct `buf->size' and
`buf->flags' fields when `max_length' was given. Fixes #5183.
1999-11-28 Martin Baulig <martin@home-of-linux.org>
* procstate.c (glibtop_get_procstate_s): Stat "/proc/<pid>" instead
of "/proc/<pid>/state" to get `uid' and `gid'. Thanks to Jason Becker
for pointing out that GTop reported wrong uid's.
1999-10-19 Martin Baulig <martin@home-of-linux.org>
* uptime.c (glibtop_get_uptime_s): Don't cast uptime and idletime
to float as suggested by John Kodis.
1999-07-29 Martin Baulig <martin@home-of-linux.org>
* proctime.c (glibtop_get_proctime_s): Don't provide `rtime'

View File

@@ -69,10 +69,11 @@ proc_file_to_buffer (char *buffer, const char *fmt, pid_t pid)
if (fd < 0) return -1;
len = read (fd, buffer, BUFSIZ-1);
if (len < 0) return -1;
close (fd);
if (len < 0)
return -1;
buffer [len] = '\0';
return 0;

View File

@@ -1,19 +0,0 @@
# libsysdeps.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.0h
# The name that we can dlopen(3).
dlname=''
# Names of this library.
library_names='libsysdeps.so.0.0.0 libsysdeps.so.0 libsysdeps.so'
# The name of the static archive.
old_library='libsysdeps.a'
# Version information for libsysdeps.
current=0
age=0
revision=0
# Directory that this library needs to be installed in:
libdir='/usr/local/lib'

View File

@@ -290,7 +290,10 @@ glibtop_get_netload_s (glibtop *server, glibtop_netload *buf,
}
/* Should never happen. */
if (fields < 2) return;
if (fields < 2) {
fclose (f);
return;
}
fields--;
while (fgets (buffer, BUFSIZ-1, f)) {

View File

@@ -60,17 +60,25 @@ glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
retval = glibtop_malloc_r (server, max_len+1);
len = read (cmdline, retval, max_len);
close (cmdline);
if (len < 0) {
glibtop_free_r (server, retval);
return NULL;
}
*(retval+len) = 0;
buf->size = len;
buf->flags = _glibtop_sysdeps_proc_args;
return retval;
}
while (1) {
len = read (cmdline, buffer, BUFSIZ-1);
if (len < 0) {
close (cmdline);
glibtop_free_r (server, retval);
return NULL;
}

View File

@@ -59,7 +59,7 @@ glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf, pid_t pid)
* values; NEVER set their flags values if this
* is not the case !!! */
sprintf (buffer, "/proc/%d/stat", pid);
sprintf (buffer, "/proc/%d", pid);
if (stat (buffer, &statb))
return;
@@ -72,6 +72,8 @@ glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf, pid_t pid)
buf->flags = _glibtop_sysdeps_proc_state_uid;
sprintf (buffer, "/proc/%d", pid);
/* Now we read the remaining fields. */
if (proc_stat_to_buffer (buffer, pid))

View File

@@ -62,8 +62,8 @@ glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
buffer [len] = '\0';
buf->uptime = (float) strtod (buffer, &p);
buf->idletime = (float) strtod (p, &p);
buf->uptime = strtod (buffer, &p);
buf->idletime = strtod (p, &p);
buf->flags = _glibtop_sysdeps_uptime;
}

View File

@@ -1,19 +0,0 @@
# libsysdeps.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.0h
# The name that we can dlopen(3).
dlname=''
# Names of this library.
library_names='libsysdeps.so.0.0.0 libsysdeps.so.0 libsysdeps.so'
# The name of the static archive.
old_library='libsysdeps.a'
# Version information for libsysdeps.
current=0
age=0
revision=0
# Directory that this library needs to be installed in:
libdir='/usr/local/lib'

View File

@@ -1,19 +0,0 @@
# libsysdeps.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.0h
# The name that we can dlopen(3).
dlname=''
# Names of this library.
library_names='libsysdeps.so.0.0.0 libsysdeps.so.0 libsysdeps.so'
# The name of the static archive.
old_library='libsysdeps.a'
# Version information for libsysdeps.
current=0
age=0
revision=0
# Directory that this library needs to be installed in:
libdir='/usr/local/lib'