Compare commits

...

23 Commits

Author SHA1 Message Date
Benoît Dejean
d4ee5eb884 Updated so people can find the ChangeLogs.
* README: Updated so people can find the ChangeLogs.
2005-06-05 11:51:03 +00:00
Benoît Dejean
872a4180e4 Fixed compilation on mips. Closes #304570.
* siglist.c: Fixed compilation on mips. Closes #304570.
2005-05-25 22:28:42 +00:00
Jörgen Scheibengruber
e8351bae05 Added tmpfs to ignore list.
* mountlist.c: (ignore_mount_entry): Added tmpfs to ignore list.
2005-04-29 09:50:09 +00:00
Benoît Dejean
adb38dd2a3 2.10.2 post release bump.
* configure.in: 2.10.2 post release bump.

	* include/glibtop/Makefile.am:
	* include/glibtop/parameter.h:
	* lib/init.c: Re-install open.h to please GTop (libgtop perl wrapper).
2005-04-27 14:50:24 +00:00
Benoît Dejean
755d5fe5f5 Released 2.10.1.
* NEWS: Released 2.10.1.
2005-04-10 16:10:59 +00:00
Benoît Dejean
d1891b11ef Fixed gcc-4.0 warnings.
* glibtop_private.h: Fixed gcc-4.0 warnings.
2005-04-01 20:06:35 +00:00
Adi Attar
765a919305 Added Xhosa translation. Added "xh" to ALL_LINGUAS.
2005-04-01  Adi Attar  <aattar@cvs.gnome.org>

	* xh.po: Added Xhosa translation.
	* configure.in: Added "xh" to ALL_LINGUAS.
2005-04-01 09:23:50 +00:00
Steven Michael Murphy
ad2f74dbc3 Added new Language, Kinyarwanda (rw), to this package 2005-04-01 01:22:29 +00:00
Benoît Dejean
b017d60c83 Fixed.
* libgtop-2.0.pc.in: Fixed.
2005-03-31 12:05:52 +00:00
Benoît Dejean
29a991160c Fixed warning.
* lib/read_data.c: (glibtop_read_data_l): Fixed warning.
2005-03-29 13:18:15 +00:00
Benoît Dejean
59fd67c7e0 Removed a g_return_if_fail.
* fsusage.c: (get_partition): Removed a g_return_if_fail.
2005-03-29 13:16:58 +00:00
Benoît Dejean
bbc10e3790 Fixed behaviour when locale is not C s/strtod/g_ascii_strod/. (strtod
* loadavg.c: (glibtop_get_loadavg_s):
	* uptime.c: (glibtop_get_uptime_s): Fixed behaviour when locale is not C
	s/strtod/g_ascii_strod/. (strtod behaviour is locale specific, which is bad
	because linux /proc is always C.
2005-03-27 14:30:30 +00:00
Benoît Dejean
f4f88ff224 s/strerror/g_strerror.
* lib/error.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
s/strerror/g_strerror.
2005-03-25 13:26:24 +00:00
Benoît Dejean
fffccf3309 s/strerror/g_strerror.
* gnuserv.c: (syslog_io_message): s/strerror/g_strerror.
2005-03-25 13:25:41 +00:00
Benoît Dejean
3c0e03ee89 s/strerror/g_strerror/.
* open.c: (_glibtop_getkval): s/strerror/g_strerror/.
2005-03-25 13:25:01 +00:00
Benoît Dejean
fa9216f771 s/strerror/g_strerror/g.
* error.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
	* error_suid.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
	s/strerror/g_strerror/g.
2005-03-25 13:24:14 +00:00
Benoît Dejean
83a9bef192 s/strerror/g_strerror/.
* netload.c: (get_ipv6): s/strerror/g_strerror/.
2005-03-25 13:23:24 +00:00
Benoît Dejean
ca4dc56342 Updated.
* siglist.c: Updated.
2005-03-25 12:52:12 +00:00
Priit Laes
a97ee0a513 Translation updated by Ivar Smolin.
2005-03-19  Priit Laes  <plaes@cvs.gnome.org>

	* et.po: Translation updated by Ivar Smolin.
2005-03-19 08:35:47 +00:00
Adam Weinberger
41a723fde4 Updated Canadian English translation.
* en_CA.po: Updated Canadian English translation.
2005-03-17 05:25:52 +00:00
Baris Cicek
f673d2ea37 Updated Turkish Translation
* tr.po: Updated Turkish Translation
2005-03-12 23:34:22 +00:00
Benoît Dejean
cae488a4ee Post release version bump.
* configure.in: Post release version bump.
2005-03-11 15:06:12 +00:00
Benoît Dejean
ad79ab9540 Added mqueue to ignore list.
* mountlist.c: (ignore_mount_entry): Added mqueue to ignore list.
2005-03-11 14:54:11 +00:00
31 changed files with 1684 additions and 1289 deletions

View File

@@ -1,3 +1,44 @@
2005-06-05 Benoît Dejean <TazForEver@dlfp.org>
* README: Updated so people can find the ChangeLogs.
2005-04-27 Benoît Dejean <TazForEver@dlfp.org>
* configure.in: 2.10.2 post release bump.
* include/glibtop/Makefile.am:
* include/glibtop/parameter.h:
* lib/init.c: Re-install open.h to please GTop (libgtop perl wrapper).
2005-04-10 Benoît Dejean <TazForEver@dlfp.org>
* NEWS: Released 2.10.1.
2005-04-01 Adi Attar <aattar@cvs.gnome.org>
* configure.in: Added "xh" to ALL_LINGUAS.
2005-03-31 Steve Murphy <murf@e-tools.com>
* configure.in: Added "rw" to ALL_LINGUAS.
2005-03-31 Benoît Dejean <TazForEver@dlfp.org>
* libgtop-2.0.pc.in: Fixed.
2005-03-29 Benoît Dejean <TazForEver@dlfp.org>
* lib/read_data.c: (glibtop_read_data_l): Fixed warning.
2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
* lib/error.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
s/strerror/g_strerror.
2005-03-11 Benoît Dejean <TazForEver@dlfp.org>
* configure.in: Post release version bump.
2005-03-07 Benoît Dejean <TazForEver@dlfp.org>
* NEWS:

8
NEWS
View File

@@ -1,3 +1,11 @@
April 10, 2005: Overview of changes from 2.10.0 to 2.10.1
=========================================================
* Updated i18n.
* Little cleanup and fixed gcc-4.0 compilation.
* linux: fixed loadavg and uptime if locale != C.
Updated siglist.
* Tighter libgtop-2.0.pc.
Mars 7, 2005: Overview of Changes from 2.9.92 to 2.10.0
=======================================================
* Updated i18n.

16
README
View File

@@ -1,8 +1,20 @@
$Id$
LATEST NEWS:
===========
Please look also in the file 'NEWS' for latest news.
Martin
ChangeLogs:
==========
LibGTop has many ChangeLogs files. The following files are the the
most important :
- ChangeLog is the main ChangeLog.
- sysdeps/<arch>/ChangeLog is the ChangeLog for arch specific changes.
- sysdeps/common/ChangeLog is the ChangeLog for common changes (shared
implementation between archs).
Benoît

View File

@@ -8,7 +8,7 @@ AC_CANONICAL_SYSTEM
LIBGTOP_MAJOR_VERSION=2
LIBGTOP_MINOR_VERSION=10
LIBGTOP_MICRO_VERSION=0
LIBGTOP_MICRO_VERSION=2
LIBGTOP_VERSION=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION.$LIBGTOP_MICRO_VERSION
AM_INIT_AUTOMAKE(libgtop, $LIBGTOP_VERSION)
@@ -254,7 +254,7 @@ AC_TYPE_SIGNAL
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(getcwd gettimeofday getwd putenv strdup strtoul uname)
ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id it ja ko lt lv mi mk ml mn ms nb ne nl nn no or pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta tr uk vi zh_CN zh_TW"
ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id it ja ko lt lv mi mk ml mn ms nb ne nl nn no or pa pl pt pt_BR ro ru rw sk sl sq sr sr@Latn sv ta tr uk vi xh zh_CN zh_TW"
GETTEXT_PACKAGE=libgtop-2.0
AC_SUBST(GETTEXT_PACKAGE)

View File

@@ -8,6 +8,6 @@ glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
procsignal.h union.h gnuserv.h \
parameter.h mountlist.h fsusage.h procmap.h signal.h \
inodedb.h sysinfo.h ppp.h procargs.h netload.h \
netlist.h procopenfiles.h
netlist.h procopenfiles.h open.h
noinst_HEADERS = error.h write.h open.h read_data.h read.h
noinst_HEADERS = error.h write.h read_data.h read.h

View File

@@ -23,7 +23,6 @@
#define __GLIBTOP_PARAMETER_H__
#include <glibtop.h>
#include <glibtop/open.h>
G_BEGIN_DECLS

View File

@@ -23,8 +23,13 @@
Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include <glibtop/error.h>
#include <glib/gstrfuncs.h>
#include <errno.h>
#define DEFAULT_NAME "LibGTop-Server"
/* Prints error message and exits. */
@@ -56,7 +61,7 @@ glibtop_error_io_vr (glibtop_server *server, char *format, int error, va_list ar
{
print_server_name (server);
vfprintf (stderr, format, args);
fprintf (stderr, ": %s\n", strerror (error));
fprintf (stderr, ": %s\n", g_strerror (error));
#ifdef LIBGTOP_ENABLE_DEBUG
abort ();
@@ -82,7 +87,7 @@ glibtop_warn_io_vr (glibtop_server *server, char *format, int error, va_list arg
{
print_server_name (server);
vfprintf (stderr, format, args);
fprintf (stderr, ": %s\n", strerror (error));
fprintf (stderr, ": %s\n", g_strerror (error));
#ifdef LIBGTOP_FATAL_WARNINGS
abort ();

View File

@@ -24,6 +24,7 @@
#include <glibtop.h>
#include <glibtop/error.h>
#include <glibtop/sysdeps.h>
#include <glibtop/open.h>
#include <glibtop/parameter.h>
#ifndef DEFAULT_PORT

View File

@@ -71,7 +71,8 @@ glibtop_read_data_l (glibtop *server)
glibtop_error_io_r (server,
ngettext ("read %lu byte of data",
"read %lu bytes of data",
(unsigned long) size));
(unsigned long) size),
(unsigned long) size);
return ptr;
}

View File

@@ -7,7 +7,7 @@ Name: libgtop
Description: Portable System Access Library
Requires: glib-2.0
Version: @VERSION@
Libs: -L${libdir} @LIBGTOP_LIBS@ @LIBGTOP_EXTRA_LIBS@ -lgtop-2.0
Libs: -L${libdir} -lgtop-2.0
Cflags: -I${includedir}/libgtop-2.0

View File

@@ -1,3 +1,23 @@
2005-04-01 Adi Attar <aattar@cvs.gnome.org>
* xh.po: Added Xhosa translation.
2005-03-31 Steve Murphy <murf@e-tools.com>
* rw.po: Added Kinyarwanda translation.
2005-03-19 Priit Laes <plaes@cvs.gnome.org>
* et.po: Translation updated by Ivar Smolin.
2005-03-17 Adam Weinberger <adamw@gnome.org>
* en_CA.po: Updated Canadian English translation.
2005-03-12 Baris Cicek <baris@teamforce.name.tr>
* tr.po: Updated Turkish Translation
2005-03-07 Dan Damian <dand@gnome.ro>
* ro.po: Updated Romanian translation by

View File

@@ -11,7 +11,7 @@ msgstr ""
"POT-Creation-Date: 2004-12-29 03:12-0500\n"
"PO-Revision-Date: 2004-12-29 15:51-0400\n"
"Last-Translator: Adam Weinberger <adamw@gnome.org>\n"
"Language-Team: English/Canada <adamw@FreeBSD.org>\n"
"Language-Team: Canadian English <adamw@gnome.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

View File

@@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: libgtop\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-02-08 15:28+0100\n"
"PO-Revision-Date: 2005-02-22 11:37+0200\n"
"PO-Revision-Date: 2005-03-09 10:47+0200\n"
"Last-Translator: Ivar Smolin <okul@linux.ee>\n"
"Language-Team: Estonian <gnome-et@linux.ee>\n"
"MIME-Version: 1.0\n"
@@ -52,11 +52,11 @@ msgstr "SILUMINE"
#: src/daemon/gnuserv.c:463
msgid "Enable verbose output"
msgstr ""
msgstr "Teaberohke väljundi lubamine"
#: src/daemon/gnuserv.c:463
msgid "VERBOSE"
msgstr ""
msgstr "LISATEAVE"
#: src/daemon/gnuserv.c:465
msgid "Don't fork into background"
@@ -85,7 +85,7 @@ msgstr ""
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
msgid "Hangup"
msgstr ""
msgstr "Toru hargilepanek"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
msgid "Interrupt"
@@ -109,7 +109,7 @@ msgstr "Katkestamine"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
msgid "EMT error"
msgstr ""
msgstr "EMT viga"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
msgid "Floating-point exception"
@@ -145,7 +145,7 @@ msgstr "Lõpetamine"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
msgid "Urgent condition on socket"
msgstr ""
msgstr "Sokli edasilükkamatu seisund"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
msgid "Stop"

233
po/rw.po Normal file
View File

@@ -0,0 +1,233 @@
# translation of libgtop to Kinyarwanda.
# Copyright (C) 2005 Free Software Foundation, Inc.
# This file is distributed under the same license as the libgtop package.
# Steve Murphy <murf@e-tools.com>, 2005
# Steve performed initial rough translation from compendium built from translations provided by the following translators:
# Philibert Ndandali <ndandali@yahoo.fr>, 2005.
# Viateur MUGENZI <muvia1@yahoo.fr>, 2005.
# Noëlla Mupole <s24211045@tuks.co.za>, 2005.
# Carole Karema <karemacarole@hotmail.com>, 2005.
# JEAN BAPTISTE NGENDAHAYO <ngenda_denis@yahoo.co.uk>, 2005.
# Augustin KIBERWA <akiberwa@yahoo.co.uk>, 2005.
# Donatien NSENGIYUMVA <ndonatienuk@yahoo.co.uk>, 2005..
#
msgid ""
msgstr ""
"Project-Id-Version: libgtop 2.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-03-31 18:21-0700\n"
"PO-Revision-Date: 2005-03-28 19:35-0700\n"
"Last-Translator: Steve Murphy <murf@e-tools.com>\n"
"Language-Team: Kinyarwanda <translation-team-rw@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: lib/read.c:65
#, fuzzy, c-format
msgid "read %d byte"
msgid_plural "read %d bytes"
msgstr[0] "Gusoma Bayite"
#: lib/read_data.c:53
#, fuzzy
msgid "read data size"
msgstr "Gusoma Ibyatanzwe Ingano"
#: lib/read_data.c:72
#, fuzzy, c-format
msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data"
msgstr[0] "Gusoma Bayite Bya Ibyatanzwe"
#: lib/write.c:52
#, fuzzy, c-format
msgid "wrote %d byte"
msgid_plural "wrote %d bytes"
msgstr[0] "Bayite"
#: src/daemon/gnuserv.c:460
msgid "Enable debugging"
msgstr ""
# Debug menu items
#: src/daemon/gnuserv.c:460
#, fuzzy
msgid "DEBUG"
msgstr "Kosora amakosa"
#: src/daemon/gnuserv.c:462
#, fuzzy
msgid "Enable verbose output"
msgstr "Ibisohoka"
#: src/daemon/gnuserv.c:462
msgid "VERBOSE"
msgstr ""
#: src/daemon/gnuserv.c:464
#, fuzzy
msgid "Don't fork into background"
msgstr "Mbuganyuma"
#: src/daemon/gnuserv.c:464
msgid "NO-DAEMON"
msgstr ""
#: src/daemon/gnuserv.c:466
#, fuzzy
msgid "Invoked from inetd"
msgstr "Bivuye"
#: src/daemon/gnuserv.c:466
msgid "INETD"
msgstr ""
#: src/daemon/gnuserv.c:500
#, fuzzy, c-format
msgid ""
"Error on option %s: %s.\n"
"Run '%s --help' to see a full list of available command line options.\n"
msgstr "ku Ihitamo Kuri a Urutonde Bya Bihari Komandi: Umurongo Amahitamo"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
msgid "Hangup"
msgstr ""
# 3225
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
msgid "Interrupt"
msgstr "Hagarikira aho"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
msgid "Quit"
msgstr "Kuvamo"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
msgid "Illegal instruction"
msgstr ""
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
msgid "Trace trap"
msgstr ""
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
msgid "Abort"
msgstr "Ntibyakunze"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
#, fuzzy
msgid "EMT error"
msgstr "Ikosa"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
#, fuzzy
msgid "Floating-point exception"
msgstr "Akadomo Irengayobora(-)"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
msgid "Kill"
msgstr ""
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
#, fuzzy
msgid "Bus error"
msgstr "Ikosa"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
msgid "Segmentation violation"
msgstr ""
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
#, fuzzy
msgid "Bad argument to system call"
msgstr "Kuri Sisitemu"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
msgid "Broken pipe"
msgstr ""
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
msgid "Alarm clock"
msgstr ""
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
msgid "Termination"
msgstr ""
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
#, fuzzy
msgid "Urgent condition on socket"
msgstr "Ibisabwa ku"
# basctl/source\basicide\basidesh.src:RID_BASICIDE_OBJECTBAR.SID_BASICSTOP.text
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
msgid "Stop"
msgstr "Guhagarara"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
#, fuzzy
msgid "Keyboard stop"
msgstr "Guhagarara"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
msgid "Continue"
msgstr "Gukomeza"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
#, fuzzy
msgid "Child status has changed"
msgstr "Imimerere Byahinduwe"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
#, fuzzy
msgid "Background read from tty"
msgstr "Gusoma Bivuye"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
#, fuzzy
msgid "Background write to tty"
msgstr "Kuri"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
#, fuzzy
msgid "I/O now possible"
msgstr "NONEAHA"
#: 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
#, fuzzy
msgid "File size limit exceeded"
msgstr "Idosiye Ingano"
#: 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
#, fuzzy
msgid "Window size change"
msgstr "Ingano Guhindura>>"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
#, fuzzy
msgid "Information request"
msgstr "Kubaza..."
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
#, fuzzy
msgid "User defined signal 1"
msgstr "1."
#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
#, fuzzy
msgid "User defined signal 2"
msgstr "2."

2155
po/tr.po

File diff suppressed because it is too large Load Diff

209
po/xh.po Normal file
View File

@@ -0,0 +1,209 @@
# Xhosa translation of libgtop
# Copyright (C) 2005 Canonical Ltd.
# This file is distributed under the same license as the libgtop package.
# Translation by Canonical Ltd <translations@canonical.com> with thanks to
# Translation World CC in South Africa, 2005.
#
msgid ""
msgstr ""
"Project-Id-Version: libgtop\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-04-01 11:20+0200\n"
"PO-Revision-Date: 2005-03-30 22:54+0200\n"
"Last-Translator: Canonical Ltd <translations@canonical.com>\n"
"Language-Team: Xhosa <xh-translate@ubuntu.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n!=1;\n"
#: ../lib/read.c:65
#, c-format
msgid "read %d byte"
msgid_plural "read %d bytes"
msgstr[0] "funda %d ye byte"
msgstr[1] "funda %d yee-byte"
#: ../lib/read_data.c:53
msgid "read data size"
msgstr "funda ubungakanani bee-data"
#: ../lib/read_data.c:72
#, c-format
msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data"
msgstr[0] "funda %lu byte ye-data"
msgstr[1] "funda %lu ii-byte ze-data"
#: ../lib/write.c:52
#, c-format
msgid "wrote %d byte"
msgid_plural "wrote %d bytes"
msgstr[0] "ibhale %d ye byte"
msgstr[1] "ibhale %d yee-byte"
#: ../src/daemon/gnuserv.c:460
msgid "Enable debugging"
msgstr "Yenza ibe nako ukulungisa isiphene kwinkqubo"
#: ../src/daemon/gnuserv.c:460
msgid "DEBUG"
msgstr "LUNGISA ISIPHENE KWINKQUBO"
#: ../src/daemon/gnuserv.c:462
msgid "Enable verbose output"
msgstr "Yenza ukuba kubekho iziphumo ezingumlembelele"
#: ../src/daemon/gnuserv.c:462
msgid "VERBOSE"
msgstr "UMLEMBELELE"
#: ../src/daemon/gnuserv.c:464
msgid "Don't fork into background"
msgstr "Musa ukujika-jikisa kokungasemva"
#: ../src/daemon/gnuserv.c:464
msgid "NO-DAEMON"
msgstr "i-NO-DAEMON"
#: ../src/daemon/gnuserv.c:466
msgid "Invoked from inetd"
msgstr "Ibizwe isuswa kwi inetd"
#: ../src/daemon/gnuserv.c:466
msgid "INETD"
msgstr "i-INETD"
#: ../src/daemon/gnuserv.c:500
#, c-format
msgid ""
"Error on option %s: %s.\n"
"Run '%s --help' to see a full list of available command line options.\n"
msgstr ""
"Impazamo kokungakhethwa kuko i %s: %s.\n"
"Phumeza i '%s --help' ukwenzela ukuba ubone uluhlu oluzeleyo lwezinto "
"ekungakhethwa kuzo ezifumanekayo zomgca womyalelo.\n"
#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
msgid "Hangup"
msgstr "Beka umnxeba"
#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
msgid "Interrupt"
msgstr "Phazamisa"
#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
msgid "Quit"
msgstr "Phuma"
#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
msgid "Illegal instruction"
msgstr "Umyalelo ongekho semthethweni"
#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
msgid "Trace trap"
msgstr "Khuphela umjelo wenkqubo"
#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
msgid "Abort"
msgstr "Yeka"
#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
msgid "EMT error"
msgstr "Impazamo ye EMT"
#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
msgid "Floating-point exception"
msgstr "Incam-etshintsha-tshintshayo ekhethekileyo"
#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
msgid "Kill"
msgstr "Bulala"
#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
msgid "Bus error"
msgstr "Impazamo yebhasi"
#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
msgid "Segmentation violation"
msgstr "Ukwaphulwa kwenkqubo"
#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
msgid "Bad argument to system call"
msgstr "Isiphumezi-miyalelo esingalunganga kubizo lwenkqubo"
#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
msgid "Broken pipe"
msgstr "Umbhobho wothungelwano owophukileyo"
#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
msgid "Alarm clock"
msgstr "Iwotshi enkulu yokuvusa"
#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
msgid "Termination"
msgstr "Ukuphelisa"
#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
msgid "Urgent condition on socket"
msgstr "Imeko engxamisekileyo kwisokhethi"
#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
msgid "Stop"
msgstr "Yima"
#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
msgid "Keyboard stop"
msgstr "Ukuma kwe-keyboard"
#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
msgid "Continue"
msgstr "Qhubeka"
#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
msgid "Child status has changed"
msgstr "Ubume benkqubo engumntwana butshintshile"
#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
msgid "Background read from tty"
msgstr "Okungasemva kufundwe kwi-tty"
#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
msgid "Background write to tty"
msgstr "Ukukhuphela ulwazi lokungasemva kwi-tty"
#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
msgid "I/O now possible"
msgstr "i-I/O ingenzeka ngoku"
#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
msgid "CPU limit exceeded"
msgstr "Umda we CPU ugqithisiwe"
#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
msgid "File size limit exceeded"
msgstr "Umda wobungakanani befayili ugqithisiwe"
#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
msgid "Virtual alarm clock"
msgstr "Iwotshi enkulu yokuvusa eyelelanisiweyo"
#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
msgid "Profiling alarm clock"
msgstr "Iwotshi enkulu yokuvusa yenkangeleko"
#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
msgid "Window size change"
msgstr "Utshintsho lobungakanani befestile"
#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
msgid "Information request"
msgstr "Isicelo senkcazelo"
#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
msgid "User defined signal 1"
msgstr "Umqondiso ochazwa ngumsebenzi woku 1"
#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
msgid "User defined signal 2"
msgstr "Umqondiso ochazwa ngumsebenzi wesi 2"

View File

@@ -1,3 +1,7 @@
2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
* gnuserv.c: (syslog_io_message): s/strerror/g_strerror.
2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
* daemon.h:

View File

@@ -37,6 +37,7 @@
#include <glibtop/close.h>
#include <glibtop/command.h>
#include <glib/gstrfuncs.h>
#include <glibtop/parameter.h>
@@ -108,7 +109,7 @@ syslog_io_message (int priority, const char *format, ...)
vsnprintf (buffer, BUFSIZ-1, format, ap);
va_end (ap);
snprintf (buffer2, BUFSIZ-1, "%s: %s", buffer, strerror (errno));
snprintf (buffer2, BUFSIZ-1, "%s: %s", buffer, g_strerror (errno));
syslog (priority, "%s", buffer2);
}

View File

@@ -1,3 +1,17 @@
2005-04-26 Jörgen Scheibengruber <mfcn@gmx.de>
* mountlist.c: (ignore_mount_entry): Added tmpfs to ignore list.
2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
* error.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
* error_suid.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
s/strerror/g_strerror/g.
2005-03-11 Benoît Dejean <TazForEver@dlfp.org>
* mountlist.c: (ignore_mount_entry): Added mqueue to ignore list.
2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: * Add support for file system read and write counting

View File

@@ -21,6 +21,11 @@
Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include <glib/gstrfuncs.h>
#include <errno.h>
#include <glibtop/error.h>
#define DEFAULT_NAME "LibGTop-Server"
@@ -54,7 +59,7 @@ glibtop_error_io_vr (glibtop *server, const char *format, int error, va_list arg
{
print_server_name (server);
vfprintf (stderr, format, args);
fprintf (stderr, ": %s\n", strerror (error));
fprintf (stderr, ": %s\n", g_strerror (error));
#ifdef LIBGTOP_ENABLE_DEBUG
abort ();
@@ -80,7 +85,7 @@ glibtop_warn_io_vr (glibtop *server, const char *format, int error, va_list args
{
print_server_name (server);
vfprintf (stderr, format, args);
fprintf (stderr, ": %s\n", strerror (error));
fprintf (stderr, ": %s\n", g_strerror (error));
#ifdef LIBGTOP_FATAL_WARNINGS
abort ();

View File

@@ -23,6 +23,11 @@
Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include <glib/gstrfuncs.h>
#include <errno.h>
#include <glibtop/error.h>
#define DEFAULT_NAME "LibGTop-Server"
@@ -56,7 +61,7 @@ glibtop_error_io_vr (glibtop_server *server, char *format, int error, va_list ar
{
print_server_name (server);
vfprintf (stderr, format, args);
fprintf (stderr, ": %s\n", strerror (error));
fprintf (stderr, ": %s\n", g_strerror (error));
#ifdef LIBGTOP_ENABLE_DEBUG
abort ();
@@ -82,7 +87,7 @@ glibtop_warn_io_vr (glibtop_server *server, char *format, int error, va_list arg
{
print_server_name (server);
vfprintf (stderr, format, args);
fprintf (stderr, ": %s\n", strerror (error));
fprintf (stderr, ": %s\n", g_strerror (error));
#ifdef LIBGTOP_FATAL_WARNINGS
abort ();

View File

@@ -542,12 +542,14 @@ static gboolean ignore_mount_entry(const struct mount_entry *me)
"binfmt_misc",
"devpts",
"mntfs",
"mqueue",
"none",
"openpromfs",
"proc",
"procfs",
"supermount",
"sysfs",
"tmpfs",
"unknown",
"usbdevfs",
"usbfs"

View File

@@ -1,3 +1,30 @@
2005-05-26 Benoît Dejean <TazForEver@dlfp.org>
* siglist.c: Fixed compilation on mips. Closes #304570.
2005-04-01 Benoît Dejean <TazForEver@dlfp.org>
* glibtop_private.h: Fixed gcc-4.0 warnings.
2005-03-29 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: (get_partition): Removed a g_return_if_fail.
2005-03-27 Benoît Dejean <TazForEver@dlfp.org>
* loadavg.c: (glibtop_get_loadavg_s):
* uptime.c: (glibtop_get_uptime_s): Fixed behaviour when locale is not C
s/strtod/g_ascii_strod/. (strtod behaviour is locale specific, which is bad
because linux /proc is always C.)
2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
* netload.c: (get_ipv6): s/strerror/g_strerror/
2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
* siglist.c: Updated.
2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: Fixed G_GNUC attribute usage.

View File

@@ -38,7 +38,8 @@ get_partition(const char *mountpoint)
if(stat(mountpoint, &statb) == -1)
return NULL;
g_return_val_if_fail((partitions = fopen("/proc/partitions", "r")), NULL);
if((partitions = fopen("/proc/partitions", "r")) == NULL)
return NULL;
while(fgets(line, sizeof line, partitions))
{

View File

@@ -40,8 +40,8 @@ next_token(const char *p)
return (char*) p;
}
char * G_GNUC_INTERNAL
skip_token (const char *p);
char *
skip_token (const char *p) G_GNUC_INTERNAL;
static inline char *
skip_multiple_token (const char *p, size_t count)
@@ -61,8 +61,8 @@ skip_line (const char *p)
}
unsigned long long G_GNUC_INTERNAL
get_scaled(const char *buffer, const char *key);
unsigned long long
get_scaled(const char *buffer, const char *key) G_GNUC_INTERNAL;
/* aborts on error */

View File

@@ -58,9 +58,9 @@ glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
file_to_buffer(server, buffer, FILENAME);
buf->loadavg [0] = strtod (buffer, &p);
buf->loadavg [1] = strtod (p, &p);
buf->loadavg [2] = strtod (p, &p);
buf->loadavg [0] = g_ascii_strtod (buffer, &p);
buf->loadavg [1] = g_ascii_strtod (p, &p);
buf->loadavg [2] = g_ascii_strtod (p, &p);
buf->flags = _glibtop_sysdeps_loadavg;

View File

@@ -21,6 +21,8 @@
Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/error.h>
#include <glibtop/netload.h>
@@ -131,7 +133,7 @@ static void get_ipv6(glibtop *server, glibtop_netload *buf,
if(getifaddrs (&ifa0) != 0)
{
glibtop_warn_r(server, "getifaddrs failed : %s", strerror(errno));
glibtop_warn_r(server, "getifaddrs failed : %s", g_strerror(errno));
return;
}

View File

@@ -21,40 +21,124 @@
Boston, MA 02111-1307, USA.
*/
#include <glibtop.h>
#include <glibtop/signal.h>
#include <signal.h>
#if 0 /* comment */
perl -nle 'print "{$1,\t\"$1\",\t\"$2\"}," if m|^#define\s*(SIG[A-Z0-9]+).*?/\*\s*(.*?)\s*\*/|'
< /usr/include/bits/signum.h
#endif
const glibtop_signame glibtop_sys_siglist [] =
{ { 1, "SIGHUP", NULL }, /* Hangup (POSIX). */
{ 2, "SIGINT", NULL }, /* Interrupt (ANSI). */
{ 3, "SIGQUIT", NULL }, /* Quit (POSIX). */
{ 4, "SIGILL", NULL }, /* Illegal instruction (ANSI). */
{ 5, "SIGTRAP", NULL }, /* Trace trap (POSIX). */
{ 6, "SIGABRT", NULL }, /* Abort (ANSI). */
{ 7, "SIGBUS", NULL }, /* BUS error (4.2 BSD). */
{ 8, "SIGFPE", NULL }, /* Floating-point exception (ANSI). */
{ 9, "SIGKILL", NULL }, /* Kill, unblockable (POSIX). */
{ 10, "SIGUSR1", NULL }, /* User-defined signal 1 (POSIX). */
{ 11, "SIGSEGV", NULL }, /* Segmentation violation (ANSI). */
{ 12, "SIGUSR2", NULL }, /* User-defined signal 2 (POSIX). */
{ 13, "SIGPIPE", NULL }, /* Broken pipe (POSIX). */
{ 14, "SIGALRM", NULL }, /* Alarm clock (POSIX). */
{ 15, "SIGTERM", NULL }, /* Termination (ANSI). */
{ 16, "SIGSTKFLT", NULL }, /* ??? */
{ 17, "SIGCHLD", NULL }, /* Child status has changed (POSIX). */
{ 18, "SIGCONT", NULL }, /* Continue (POSIX). */
{ 19, "SIGSTOP", NULL }, /* Stop, unblockable (POSIX). */
{ 20, "SIGTSTP", NULL }, /* Keyboard stop (POSIX). */
{ 21, "SIGTTIN", NULL }, /* Background read from tty (POSIX). */
{ 22, "SIGTTOU", NULL }, /* Background write to tty (POSIX). */
{ 23, "SIGURG", NULL }, /* Urgent condition on socket (4.2 BSD). */
{ 24, "SIGXCPU", NULL }, /* CPU limit exceeded (4.2 BSD). */
{ 25, "SIGXFSZ", NULL }, /* File size limit exceeded (4.2 BSD). */
{ 26, "SIGVTALRM", NULL }, /* Virtual alarm clock (4.2 BSD). */
{ 27, "SIGPROF", NULL }, /* Profiling alarm clock (4.2 BSD). */
{ 28, "SIGWINCH", NULL }, /* Window size change (4.3 BSD, Sun). */
{ 29, "SIGIO", NULL }, /* I/O now possible (4.2 BSD). */
{ 30, "SIGPWR", NULL }, /* Power failure restart (System V). */
{ 31, "SIGUNUSED", NULL },
{ 0, NULL, NULL },
{
#ifdef SIGHUP
{SIGHUP, "SIGHUP", "Hangup (POSIX)."},
#endif
#ifdef SIGINT
{SIGINT, "SIGINT", "Interrupt (ANSI)."},
#endif
#ifdef SIGQUIT
{SIGQUIT, "SIGQUIT", "Quit (POSIX)."},
#endif
#ifdef SIGILL
{SIGILL, "SIGILL", "Illegal instruction (ANSI)."},
#endif
#ifdef SIGTRAP
{SIGTRAP, "SIGTRAP", "Trace trap (POSIX)."},
#endif
#ifdef SIGABRT
{SIGABRT, "SIGABRT", "Abort (ANSI)."},
#endif
#ifdef SIGIOT
{SIGIOT, "SIGIOT", "IOT trap (4.2 BSD)."},
#endif
#ifdef SIGBUS
{SIGBUS, "SIGBUS", "BUS error (4.2 BSD)."},
#endif
#ifdef SIGFPE
{SIGFPE, "SIGFPE", "Floating-point exception (ANSI)."},
#endif
#ifdef SIGKILL
{SIGKILL, "SIGKILL", "Kill, unblockable (POSIX)."},
#endif
#ifdef SIGUSR1
{SIGUSR1, "SIGUSR1", "User-defined signal 1 (POSIX)."},
#endif
#ifdef SIGSEGV
{SIGSEGV, "SIGSEGV", "Segmentation violation (ANSI)."},
#endif
#ifdef SIGUSR2
{SIGUSR2, "SIGUSR2", "User-defined signal 2 (POSIX)."},
#endif
#ifdef SIGPIPE
{SIGPIPE, "SIGPIPE", "Broken pipe (POSIX)."},
#endif
#ifdef SIGALRM
{SIGALRM, "SIGALRM", "Alarm clock (POSIX)."},
#endif
#ifdef SIGTERM
{SIGTERM, "SIGTERM", "Termination (ANSI)."},
#endif
#ifdef SIGSTKFLT
{SIGSTKFLT, "SIGSTKFLT", "Stack fault."},
#endif
#ifdef SIGCLD
{SIGCLD, "SIGCLD", "Same as SIGCHLD (System V)."},
#endif
#ifdef SIGCHLD
{SIGCHLD, "SIGCHLD", "Child status has changed (POSIX)."},
#endif
#ifdef SIGCONT
{SIGCONT, "SIGCONT", "Continue (POSIX)."},
#endif
#ifdef SIGSTOP
{SIGSTOP, "SIGSTOP", "Stop, unblockable (POSIX)."},
#endif
#ifdef SIGTSTP
{SIGTSTP, "SIGTSTP", "Keyboard stop (POSIX)."},
#endif
#ifdef SIGTTIN
{SIGTTIN, "SIGTTIN", "Background read from tty (POSIX)."},
#endif
#ifdef SIGTTOU
{SIGTTOU, "SIGTTOU", "Background write to tty (POSIX)."},
#endif
#ifdef SIGURG
{SIGURG, "SIGURG", "Urgent condition on socket (4.2 BSD)."},
#endif
#ifdef SIGXCPU
{SIGXCPU, "SIGXCPU", "CPU limit exceeded (4.2 BSD)."},
#endif
#ifdef SIGXFSZ
{SIGXFSZ, "SIGXFSZ", "File size limit exceeded (4.2 BSD)."},
#endif
#ifdef SIGVTALRM
{SIGVTALRM, "SIGVTALRM", "Virtual alarm clock (4.2 BSD)."},
#endif
#ifdef SIGPROF
{SIGPROF, "SIGPROF", "Profiling alarm clock (4.2 BSD)."},
#endif
#ifdef SIGWINCH
{SIGWINCH, "SIGWINCH", "Window size change (4.3 BSD, Sun)."},
#endif
#ifdef SIGPOLL
{SIGPOLL, "SIGPOLL", "Pollable event occurred (System V)."},
#endif
#ifdef SIGIO
{SIGIO, "SIGIO", "I/O now possible (4.2 BSD)."},
#endif
#ifdef SIGPWR
{SIGPWR, "SIGPWR", "Power failure restart (System V)."},
#endif
#ifdef SIGSYS
{SIGSYS, "SIGSYS", "Bad system call."},
#endif
#ifdef SIGUNUSED
{SIGUNUSED, "SIGUNUSED", ""},
#endif
{0, NULL, NULL}
};

View File

@@ -55,8 +55,8 @@ glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
file_to_buffer(server, buffer, FILENAME);
buf->uptime = strtod (buffer, &p);
buf->idletime = strtod (p, &p);
buf->uptime = g_ascii_strtod (buffer, &p);
buf->idletime = g_ascii_strtod (p, &p);
buf->boot_time = (guint64) time(NULL) - (guint64) buf->uptime;
buf->flags = _glibtop_sysdeps_uptime;

View File

@@ -1,3 +1,7 @@
2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
* open.c: (_glibtop_getkval): s/strerror/g_strerror/.
2004-05-25 Benoît Dejean <tazforever@dlfp.org>
* uptime.c: (glibtop_get_uptime_p): Added boot_time.

View File

@@ -21,6 +21,10 @@
Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include <glib/gstrfuncs.h>
#include <errno.h>
#include <glibtop.h>
#include <glibtop/open.h>
@@ -257,7 +261,7 @@ _glibtop_getkval (void *void_server, unsigned long offset, int *ptr,
if (*refstr == '!') return 0;
glibtop_error_r (server, "kvm_read(%s): %s",
refstr, strerror (errno));
refstr, g_strerror (errno));
}
return 1;