Compare commits

..

9 Commits

Author SHA1 Message Date
Ben
34b6ff80e1 Fixup netload run test. 2021-03-19 14:18:25 +00:00
Benoît Dejean
315f713abf blah. 2021-03-18 22:40:35 +01:00
Benoît Dejean
2d2f578eb6 Trying stuff. 2021-03-18 22:10:30 +01:00
Benoît Dejean
e0c8252b57 Do it! 2021-03-18 21:25:57 +01:00
Benoît Dejean
9e93833313 Add missing stages. 2021-03-18 21:04:11 +01:00
Benoît Dejean
8b75fd18c5 Split stages for install/distcheck. 2021-03-18 21:02:28 +01:00
Ben
e0e0e472a8 Fix CI/CD test needs. 2021-03-18 19:53:28 +00:00
Ben
dae9910b9c CI/CD test obviously needs the build. 2021-03-18 19:51:36 +00:00
Benoît Dejean
55ed1b7375 Add all examples/* to test CI/CD. 2021-03-18 20:34:02 +01:00
103 changed files with 672 additions and 2602 deletions

2
.gitignore vendored
View File

@@ -58,7 +58,6 @@ doc/texinfo.tex
doc/version.texi doc/version.texi
examples/affinity examples/affinity
examples/df examples/df
examples/disk
examples/diskio examples/diskio
examples/first examples/first
examples/free examples/free
@@ -75,7 +74,6 @@ examples/smp
examples/sysdeps examples/sysdeps
examples/timings examples/timings
examples/wd examples/wd
examples/sysinfo
gtk-doc.make gtk-doc.make
install-sh install-sh
lib/GTop-2.0.gir lib/GTop-2.0.gir

View File

@@ -1,28 +1,8 @@
stages: stages:
- build - build
- abi - deploy
- package
variables: - test
FEDORA_DEPENDENCIES:
gettext-devel
gobject-introspection-devel
gtk-doc
util-linux
texinfo-tex
FEDORA_DEPENDENCIES_ABI_CHECK:
libabigail
intltool
LAST_ABI_BREAK: "d4ac1eda0752d559db8737773d6894aadc700ce3"
UBUNTU_DEPENDENCIES:
automake
autopoint
gettext
gtk-doc-tools
libgirepository1.0-dev
libtool
make
texinfo
texlive
build-fedora: build-fedora:
image: fedora:latest image: fedora:latest
@@ -31,39 +11,50 @@ build-fedora:
- tags - tags
before_script: before_script:
- dnf update -y --nogpgcheck - dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $FEDORA_DEPENDENCIES - dnf -y install --nogpgcheck
gawk gettext-devel glib2-devel gobject-introspection-devel gtk-doc perl
texinfo texinfo-tex
script: script:
- mkdir _build - ./autogen.sh --disable-dependency-tracking
- cd _build
- ../autogen.sh --disable-dependency-tracking
- make - make
- make install
- make distcheck
abi-fedora: deploy-install:
image: fedora:latest stage: deploy
stage: abi extends: build-fedora
needs: script:
- build-fedora - ./autogen.sh --disable-dependency-tracking
before_script: - make install
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $FEDORA_DEPENDENCIES $FEDORA_DEPENDENCIES_ABI_CHECK package-distcheck:
script: stage: package
- curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash extends: build-fedora
- check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD) script:
- ./autogen.sh --disable-dependency-tracking
- make distcheck
test-examples:
stage: test
extends: build-fedora
script:
- ./autogen.sh --disable-dependency-tracking
- make
- ./examples/affinity
- ./examples/df
- ./examples/diskio
- ./examples/first
- ./examples/free
- ./examples/mountlist
- ./examples/netlist
- ./examples/netload lo
- ./examples/openfiles
- ./examples/pprint
- ./examples/procargs
- ./examples/proclist
- ./examples/procmap
- ./examples/second
- ./examples/smp
- ./examples/sysdeps
- ./examples/timings
- ./examples/wd
build-ubuntu:
image: ubuntu:latest
stage: build
except:
- tags
before_script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y $UBUNTU_DEPENDENCIES
script:
- mkdir _build
- cd _build
- ../autogen.sh
- make
- make install
- make distcheck

34
NEWS
View File

@@ -1,37 +1,3 @@
16 February 2024: Overview of changes in 2.41.3
================================================
* Fixed daemon buffer overflow #72
* Updated translations
15 October 2023: Overview of changes in 2.41.2
================================================
* Solaris
- Fix build #47
* Linux
- Change disk example read/write unit to bytes
- Fixed potential Buffer overflow when reading disk stats
- Changed disk read/write unit to bytes in example
* CI
- Fixed CI by adding missing dependency
10 January 2023 : Overview of changes in 2.41.1
================================================
* FreeBSD
- Build fixes
- Support FreeBSD 13.0-CURRENT >= 1300062 vm_map_entry
* OpenBSD
- Build fixes
* Linux
- skip loop and rom devices
* Allow building with gettext >= 0.20
* Updated translations
* CI build setup
11 March 2019: Overview of changes in 2.40.0 11 March 2019: Overview of changes in 2.40.0
================================================ ================================================

View File

@@ -263,7 +263,8 @@ AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo,
[ [
ok= ok=
if test $ac_cv_func_getmntinfo = yes; then if test $ac_cv_func_getmntinfo = yes; then
AC_EGREP_HEADER(getmntinfo, sys/mount.h, ok=yes) AC_EGREP_HEADER(f_type;, sys/mount.h,
ok=yes)
fi fi
test -n "$ok" \ test -n "$ok" \
&& fu_cv_sys_mounted_getmntinfo=yes \ && fu_cv_sys_mounted_getmntinfo=yes \

View File

@@ -1,33 +1,5 @@
#!/bin/sh #!/bin/sh
# Run this to generate all the initial makefiles, etc. # Run this to generate all the initial makefiles, etc.
RED='\033[0;31m'
NC='\033[0m' # No Color
case "$(uname -s)" in
Linux)
if ! [ -x "$(command -v lsblk)" ]; then
echo '' >&2
echo -e "${RED}*** ERROR:${NC} lsblk cannot be found. Try installing util-linux or util-linux-ng ${RED}***${NC}" >&2
echo '' >&2
exit 1
fi
if ! [ -x "$(command -v sed)" ]; then
echo '' >&2
echo -e "${RED}*** ERROR:${NC} sed cannot be found. ***" >&2
echo '' >&2
exit 1
fi
if ! [ -x "$(command -v tr)" ]; then
echo '' >&2
echo -e "${RED}*** ERROR:${NC} tr cannot be found. ***" >&2
echo '' >&2
exit 1
fi
;;
*)
;;
esac
test -n "$srcdir" || srcdir=$(dirname "$0") test -n "$srcdir" || srcdir=$(dirname "$0")
test -n "$srcdir" || srcdir=. test -n "$srcdir" || srcdir=.

View File

@@ -3,21 +3,21 @@ dnl Configure script for the Gnome library
dnl dnl
m4_define([libgtop_major_version], [2]) m4_define([libgtop_major_version], [2])
m4_define([libgtop_minor_version], [41]) m4_define([libgtop_minor_version], [40])
m4_define([libgtop_micro_version], [3]) m4_define([libgtop_micro_version], [0])
m4_define([libgtop_version], [libgtop_major_version.libgtop_minor_version.libgtop_micro_version]) m4_define([libgtop_version], [libgtop_major_version.libgtop_minor_version.libgtop_micro_version])
dnl increment if the interface has additions, changes, removals. dnl increment if the interface has additions, changes, removals.
m4_define([libgtop_current], [12]) m4_define([libgtop_current], [11])
dnl increment any time the source changes; set to dnl increment any time the source changes; set to
dnl 0 if you increment CURRENT dnl 0 if you increment CURRENT
m4_define([libgtop_revision], [0]) m4_define([libgtop_revision], [1])
dnl increment if any interfaces have been added; set to 0 dnl increment if any interfaces have been added; set to 0
dnl if any interfaces have been removed. removal has dnl if any interfaces have been removed. removal has
dnl precedence over adding, so set to 0 if both happened. dnl precedence over adding, so set to 0 if both happened.
m4_define([libgtop_age], [1]) m4_define([libgtop_age], [0])
# Increase each time you change the client/server protocol. # Increase each time you change the client/server protocol.
m4_define([libgtop_server_version], [5]) m4_define([libgtop_server_version], [5])
@@ -27,7 +27,7 @@ m4_define([libgtop_version_code], [m4_eval(libgtop_major_version * 1000000 + lib
AC_PREREQ(2.62) AC_PREREQ(2.62)
AC_INIT([libgtop], [libgtop_version], AC_INIT([libgtop], [libgtop_version],
[https://gitlab.gnome.org/GNOME/libgtop/-/issues/]) [http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop])
AC_CONFIG_SRCDIR(copyright.txt) AC_CONFIG_SRCDIR(copyright.txt)
AC_CONFIG_HEADERS(config.h) AC_CONFIG_HEADERS(config.h)
@@ -71,16 +71,6 @@ dnl Most people should have a working perl interpreter on their system
AC_CHECK_PROGS(PERL, perl5 perl) AC_CHECK_PROGS(PERL, perl5 perl)
test -z "$PERL" && AC_MSG_ERROR([You need to have a working perl interpreter.]) test -z "$PERL" && AC_MSG_ERROR([You need to have a working perl interpreter.])
case "${host_os}" in
linux*)
AC_CHECK_TOOL(LSBLK,lsblk)
AC_CHECK_TOOL(SED,sed)
AC_CHECK_TOOL(TR,tr)
;;
*)
;;
esac
AC_CHECK_TOOL(CC,gcc) AC_CHECK_TOOL(CC,gcc)
AC_CHECK_TOOL(RANLIB,ranlib) AC_CHECK_TOOL(RANLIB,ranlib)
AC_CHECK_TOOL(AS,as) AC_CHECK_TOOL(AS,as)
@@ -120,12 +110,10 @@ AC_TYPE_OFF_T
AC_TYPE_PID_T AC_TYPE_PID_T
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_STRUCT_ST_RDEV AC_STRUCT_ST_RDEV
AC_HEADER_TIME
AC_STRUCT_TM AC_STRUCT_TM
AC_TYPE_UID_T AC_TYPE_UID_T
dnl Check sys/time.h
AC_CHECK_HEADERS([sys/time.h])
dnl For SunOS dnl For SunOS
AC_CHECK_TYPE(ssize_t, int) AC_CHECK_TYPE(ssize_t, int)
AC_CHECK_HEADERS(memory.h) AC_CHECK_HEADERS(memory.h)
@@ -284,8 +272,8 @@ AC_ARG_ENABLE(fatal-warnings,
[Define to enable fatal warnings])) [Define to enable fatal warnings]))
dnl These definitions are expanded in make. dnl These definitions are expanded in make.
LIBGTOP_LIBS='-L=$(libdir)' LIBGTOP_LIBS='-L$(libdir)'
LIBGTOP_INCS='-I=$(includedir)/libgtop-2.0' LIBGTOP_INCS='-I$(includedir)/libgtop-2.0'
if test x$libgtop_have_sysinfo = xyes ; then if test x$libgtop_have_sysinfo = xyes ; then
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO" LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO"
@@ -297,8 +285,8 @@ libgtop_save_prefix="$prefix"
libgtop_save_exec_prefix="$exec_prefix" libgtop_save_exec_prefix="$exec_prefix"
test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=$prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix
LIBGTOP_BINDIR=`eval echo "${libexecdir}"` LIBGTOP_BINDIR=`eval echo "${bindir}"`
LIBGTOP_SERVER=`eval echo "${libexecdir}/libgtop_server2"` LIBGTOP_SERVER=`eval echo "${bindir}/libgtop_server2"`
prefix="$libgtop_save_prefix" prefix="$libgtop_save_prefix"
exec_prefix="$libgtop_save_exec_prefix" exec_prefix="$libgtop_save_exec_prefix"

View File

@@ -49,7 +49,6 @@ System Dependent Functions
* glibtop_proc_map:: Process Memory Maps. * glibtop_proc_map:: Process Memory Maps.
* glibtop_netload:: Network Load. * glibtop_netload:: Network Load.
* glibtop_ppp:: PPP Usage. * glibtop_ppp:: PPP Usage.
* glibtop_disk:: DISK Usage.
Common Functions Common Functions

View File

@@ -28,7 +28,6 @@
* glibtop_proc_map:: Process Memory Maps. * glibtop_proc_map:: Process Memory Maps.
* glibtop_netload:: Network Load. * glibtop_netload:: Network Load.
* glibtop_ppp:: PPP Usage. * glibtop_ppp:: PPP Usage.
* glibtop_disk:: DISK Usage.
@end menu @end menu
@node glibtop_cpu, glibtop_mem, System Dependent, System Dependent @node glibtop_cpu, glibtop_mem, System Dependent, System Dependent
@@ -1344,7 +1343,7 @@ enum @{
@end example @end example
@page @page
@node glibtop_ppp, glibtop_disk, glibtop_netload, System Dependent @node glibtop_ppp, , glibtop_netload, System Dependent
@subsection PPP Statistics @subsection PPP Statistics
Library function @code{glibtop_get_ppp}: Library function @code{glibtop_get_ppp}:
@@ -1404,62 +1403,6 @@ We're currently offline.
We're currently online. We're currently online.
@end table @end table
@page
@node glibtop_disk, , glibtop_ppp, System Dependent
@subsection DISK Usage
Library function @code{glibtop_get_disk}:
@example
@cartouche
void glibtop_get_disk (glibtop_disk *buf);
void glibtop_get_disk_l (glibtop *server, glibtop_disk *buf);
@end cartouche
@end example
Declaration of @code{glibtop_disk} in @file{<glibtop/disk.h>}:
@example
@cartouche
typedef struct _glibtop_disk glibtop_disk;
struct _glibtop_disk
@{
xdisk_sectors_read [GLIBTOP_NDISK],
xdisk_time_read [GLIBTOP_NDISK],
xdisk_sectors_write [GLIBTOP_NDISK],
xdisk_time_write [GLIBTOP_NDISK],
@};
@end cartouche
@end example
All DISK reads and writes are measured by @dfn{sectors} which are normally 512 bytes each.
All disk time are measured in milliseconds which is 1/1000th of a second.
@table @code
@item xdisk_sectors_read
Number of sectors read since system boot.
@item xdisk_time_read
Number of milliseconds spent reading since system boot.
@item xdisk_sectors_write
Number of sectors written since system boot.
@item xdisk_time_write
Number of milliseconds spent writing since system boot.
@end table
The @samp{xdisk_} are values from arrays of @code{GLIBTOP_NDISK} (defined in
@file{<glibtop/disk.h>}) elements and contain one value for each DISK
in the system.
Please note that all of the disk values are absolute values measured in
certain units since system boot. To get bandwidth values (bytes/s), you need to call @code{glibtop_disk}, save the
result, wait some time and then call it again and divide the differences of
the two values by the time spent reading or writing.
@page @page
@node Common Functions, Library Functions, System Dependent, Reference Manual @node Common Functions, Library Functions, System Dependent, Reference Manual
@section Common Functions @section Common Functions

View File

@@ -29,7 +29,6 @@ glibtop_close_p
GLIBTOP_CMND_QUIT GLIBTOP_CMND_QUIT
GLIBTOP_CMND_SYSDEPS GLIBTOP_CMND_SYSDEPS
GLIBTOP_CMND_CPU GLIBTOP_CMND_CPU
GLIBTOP_CMND_DISK
GLIBTOP_CMND_MEM GLIBTOP_CMND_MEM
GLIBTOP_CMND_SWAP GLIBTOP_CMND_SWAP
GLIBTOP_CMND_UPTIME GLIBTOP_CMND_UPTIME
@@ -679,25 +678,6 @@ glibtop_init_cpu_s
glibtop_get_cpu_s glibtop_get_cpu_s
</SECTION> </SECTION>
<INCLUDE>glibtop/disk.h</INCLUDE>
<SECTION>
<FILE>disk</FILE>
LIBTOP_XDISK_SECTORS_READ
GLIBTOP_XDISK_TIME_READ
GLIBTOP_XDISK_SECTORS_WRITE
GLIBTOP_XDISK_TIME_WRITE
GLIBTOP_MAX_DISK
GLIBTOP_NDISK
glibtop_disk
glibtop_get_disk
glibtop_get_disk_r
glibtop_get_disk_l
glibtop_init_disk_p
glibtop_get_disk_p
glibtop_init_disk_s
glibtop_get_disk_s
</SECTION>
<INCLUDE>glibtop/swap.h</INCLUDE> <INCLUDE>glibtop/swap.h</INCLUDE>
<SECTION> <SECTION>
<FILE>swap</FILE> <FILE>swap</FILE>

View File

@@ -11,7 +11,7 @@ AM_LDFLAGS = $(LIBGTOP_EXTRA_LIBS)
noinst_PROGRAMS = first second pprint procargs df netlist \ noinst_PROGRAMS = first second pprint procargs df netlist \
mountlist procmap netload sysdeps timings \ mountlist procmap netload sysdeps timings \
openfiles smp proclist free wd affinity disk diskio sysinfo openfiles smp proclist free wd affinity diskio
first_SOURCES = first.c first_SOURCES = first.c
first_LDADD = $(top_builddir)/lib/libgtop-2.0.la first_LDADD = $(top_builddir)/lib/libgtop-2.0.la
@@ -34,9 +34,6 @@ mountlist_LDADD = $(top_builddir)/lib/libgtop-2.0.la
smp_SOURCES = smp.c smp_SOURCES = smp.c
smp_LDADD = $(top_builddir)/lib/libgtop-2.0.la -lm smp_LDADD = $(top_builddir)/lib/libgtop-2.0.la -lm
disk_SOURCES = disk.c
disk_LDADD = $(top_builddir)/lib/libgtop-2.0.la -lm
timings_SOURCES = timings.c timings_SOURCES = timings.c
timings_LDADD = $(top_builddir)/lib/libgtop-2.0.la timings_LDADD = $(top_builddir)/lib/libgtop-2.0.la
@@ -70,6 +67,3 @@ affinity_LDADD = $(top_builddir)/lib/libgtop-2.0.la
diskio_SOURCES = diskio.c diskio_SOURCES = diskio.c
diskio_LDADD = $(top_builddir)/lib/libgtop-2.0.la diskio_LDADD = $(top_builddir)/lib/libgtop-2.0.la
sysinfo_SOURCES = sysinfo.c
sysinfo_LDADD = $(top_builddir)/lib/libgtop-2.0.la

View File

@@ -1,65 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <locale.h>
#include <libintl.h>
#include <math.h>
#include <stdio.h>
#include <glibtop.h>
#include <glibtop/disk.h>
int
main (int argc, char *argv [])
{
glibtop_disk disk;
char separator [BUFSIZ];
int ndisk, i;
glibtop_init();
glibtop_get_disk (&disk);
ndisk = glibtop_global_server->ndisk ? glibtop_global_server->ndisk : 1;
memset (separator, '-', 91);
separator [92] = '\0';
printf("\n\n");
printf ("ELAPSE ");
printf ("Read (b) Time Read (ms) Write (b) Time Write (ms)\n");
printf ("%s\n", separator);
for (i = 0; i < ndisk; i++) {
printf ("DISK %3d : %15lu %15lu %15lu %15lu\n", i,
(unsigned long) disk.xdisk_sectors_read [i] * 512,
(unsigned long) disk.xdisk_time_read [i],
(unsigned long) disk.xdisk_sectors_write [i] * 512,
(unsigned long) disk.xdisk_time_write [i]);
}
printf ("%s\n\n\n", separator);
exit (0);
}

View File

@@ -66,7 +66,7 @@ main (int argc, char *argv [])
glibtop_netload netload; glibtop_netload netload;
unsigned method, count, port; unsigned method, count, port;
struct in_addr addr, subnet; struct in_addr addr, subnet;
char address_string[INET_ADDRSTRLEN], subnet_string[INET_ADDRSTRLEN]; char *address_string, *subnet_string;
char address6_string[INET6_ADDRSTRLEN], prefix6_string[INET6_ADDRSTRLEN]; char address6_string[INET6_ADDRSTRLEN], prefix6_string[INET6_ADDRSTRLEN];
char *hwaddress_string; char *hwaddress_string;
char buffer [BUFSIZ]; char buffer [BUFSIZ];
@@ -105,8 +105,9 @@ main (int argc, char *argv [])
addr.s_addr = netload.address; addr.s_addr = netload.address;
subnet.s_addr = netload.subnet; subnet.s_addr = netload.subnet;
inet_ntop (AF_INET, &addr, address_string, INET_ADDRSTRLEN); address_string = g_strdup (inet_ntoa (addr));
inet_ntop (AF_INET, &subnet, subnet_string, INET_ADDRSTRLEN); subnet_string = g_strdup (inet_ntoa (subnet));
inet_ntop (AF_INET6, netload.address6, address6_string, INET6_ADDRSTRLEN); inet_ntop (AF_INET6, netload.address6, address6_string, INET6_ADDRSTRLEN);
inet_ntop (AF_INET6, netload.prefix6, prefix6_string, INET6_ADDRSTRLEN); inet_ntop (AF_INET6, netload.prefix6, prefix6_string, INET6_ADDRSTRLEN);
@@ -152,6 +153,9 @@ main (int argc, char *argv [])
hwaddress_string); hwaddress_string);
g_free (address_string);
g_free (subnet_string);
glibtop_close (); glibtop_close ();
exit (0); exit (0);

View File

@@ -1,48 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by Dr. James Dominic P. Guana <jdpguana@histark.com>, August 2021.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <locale.h>
#include <libintl.h>
#include <math.h>
#include <stdio.h>
#include <glibtop.h>
#include <glibtop/sysinfo.h>
int
main (int argc, char *argv [])
{
char *model;
const glibtop_sysinfo * sysinfo;
glibtop_init();
sysinfo = glibtop_get_sysinfo ();
model = g_hash_table_lookup (sysinfo->cpuinfo [1].values, "model name");
printf ("\nProcessor Model: %s\n", g_strdup (model));
printf ("Number of Cores: %lu\n\n", sysinfo->ncpu);
glibtop_close ();
exit (0);
}

View File

@@ -1,5 +1,4 @@
void|cpu void|cpu
void|disk
void|mem void|mem
void|swap void|swap
void|uptime void|uptime

View File

@@ -98,9 +98,6 @@ struct _glibtop
gid_t egid; gid_t egid;
glibtop_machine *machine; /* Machine dependent data */ glibtop_machine *machine; /* Machine dependent data */
int ndisk; /* Number of DISKs, zero if single-disk. This pertains to disk volumes */
int real_ndisk; /* Number of PHYSICAL DISKs. Only ndisk is monitored for now */
}; };
extern glibtop *glibtop_global_server; extern glibtop *glibtop_global_server;

View File

@@ -2,7 +2,7 @@ glibtopdir = $(includedir)/libgtop-2.0/glibtop
glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \ glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
sem_limits.h uptime.h command.h mem.h proclist.h \ sem_limits.h uptime.h command.h mem.h proclist.h \
proctime.h shm_limits.h cpu.h disk.h msg_limits.h \ proctime.h shm_limits.h cpu.h msg_limits.h \
procmem.h procuid.h swap.h \ procmem.h procuid.h swap.h \
procsegment.h sysdeps.h global.h \ procsegment.h sysdeps.h global.h \
procsignal.h union.h gnuserv.h \ procsignal.h union.h gnuserv.h \

View File

@@ -60,9 +60,8 @@ G_BEGIN_DECLS
#define GLIBTOP_CMND_PROC_WD 26 #define GLIBTOP_CMND_PROC_WD 26
#define GLIBTOP_CMND_PROC_AFFINITY 27 #define GLIBTOP_CMND_PROC_AFFINITY 27
#define GLIBTOP_CMND_PROC_IO 28 #define GLIBTOP_CMND_PROC_IO 28
#define GLIBTOP_CMND_DISK 29
#define GLIBTOP_MAX_CMND 30 #define GLIBTOP_MAX_CMND 29
#define _GLIBTOP_PARAM_SIZE 16 #define _GLIBTOP_PARAM_SIZE 16

View File

@@ -1,86 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __GLIBTOP_DISK_H__
#define __GLIBTOP_DISK_H__
#include <glibtop.h>
#include <glibtop/global.h>
G_BEGIN_DECLS
#define GLIBTOP_XDISK_SECTORS_READ 0
#define GLIBTOP_XDISK_TIME_READ 1
#define GLIBTOP_XDISK_SECTORS_WRITE 2
#define GLIBTOP_XDISK_TIME_WRITE 3
#define GLIBTOP_MAX_DISK 4
/* Nobody should really be using more than 4 disk.
Yes we are :)
Nobody should really be using more than 32 disk.
*/
#define GLIBTOP_NDISK 1024
typedef struct _glibtop_disk glibtop_disk;
struct _partition_info
{
char name[256];
char type[256];
char raid_num[256];
int max;
};
typedef struct _partition_info partition_info;
struct _glibtop_disk
{
guint64 flags; /* NOT USED YET */
guint64 xdisk_sectors_read [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_SECTORS_READ */
guint64 xdisk_time_read [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_TIME_READ */
guint64 xdisk_sectors_write [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_SECTORS_WRITE */
guint64 xdisk_time_write [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_TIME_WRITE */
guint64 xdisk_flags;
};
void glibtop_get_disk (glibtop_disk *buf);
#if GLIBTOP_SUID_DISK
#define glibtop_get_disk_r glibtop_get_disk_p
#else
#define glibtop_get_disk_r glibtop_get_disk_s
#endif
void glibtop_get_disk_l (glibtop *server, glibtop_disk *buf);
#if GLIBTOP_SUID_DISK
void _glibtop_init_disk_p (glibtop *server);
void glibtop_get_disk_p (glibtop *server, glibtop_disk *buf);
#else
void _glibtop_init_disk_s (glibtop *server);
void glibtop_get_disk_s (glibtop *server, glibtop_disk *buf);
#endif
G_END_DECLS
#endif

View File

@@ -28,11 +28,17 @@
#endif /* _IN_LIBGTOP */ #endif /* _IN_LIBGTOP */
#if HAVE_SYS_TIME_H #if TIME_WITH_SYS_TIME
# include <sys/time.h> # include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif #endif
#include <time.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -54,9 +54,8 @@ G_BEGIN_DECLS
#define GLIBTOP_SYSDEPS_PROC_WD 25 #define GLIBTOP_SYSDEPS_PROC_WD 25
#define GLIBTOP_SYSDEPS_PROC_AFFINITY 26 #define GLIBTOP_SYSDEPS_PROC_AFFINITY 26
#define GLIBTOP_SYSDEPS_PROC_IO 27 #define GLIBTOP_SYSDEPS_PROC_IO 27
#define GLIBTOP_SYSDEPS_DISK 28
#define GLIBTOP_MAX_SYSDEPS 29 #define GLIBTOP_MAX_SYSDEPS 28
/* The 'features' args to glibtop_init_* is an unsigned long */ /* The 'features' args to glibtop_init_* is an unsigned long */
G_STATIC_ASSERT((1UL << (GLIBTOP_MAX_SYSDEPS - 1)) <= ULONG_MAX); G_STATIC_ASSERT((1UL << (GLIBTOP_MAX_SYSDEPS - 1)) <= ULONG_MAX);
@@ -96,7 +95,7 @@ struct _glibtop_sysdeps
guint64 proc_wd; /* glibtop_proc_wd */ guint64 proc_wd; /* glibtop_proc_wd */
guint64 proc_affinity; /* glibtop_proc_affinity */ guint64 proc_affinity; /* glibtop_proc_affinity */
guint64 proc_io; /* glibtop_proc_io */ guint64 proc_io; /* glibtop_proc_io */
guint64 disk; /* glibtop_disk */ guint64 reserved0;
guint64 reserved1; guint64 reserved1;
guint64 reserved2; guint64 reserved2;
guint64 reserved3; guint64 reserved3;

View File

@@ -53,8 +53,6 @@ struct _glibtop_sysinfo
glibtop_entry cpuinfo [GLIBTOP_NCPU]; glibtop_entry cpuinfo [GLIBTOP_NCPU];
}; };
const char *decode_cpu_part(unsigned int part);
#define glibtop_get_sysinfo_r glibtop_get_sysinfo_s #define glibtop_get_sysinfo_r glibtop_get_sysinfo_s
const glibtop_sysinfo *glibtop_get_sysinfo_s (glibtop *server); const glibtop_sysinfo *glibtop_get_sysinfo_s (glibtop *server);

View File

@@ -23,7 +23,6 @@
#define __GLIBTOP_UNION_H__ #define __GLIBTOP_UNION_H__
#include <glibtop/cpu.h> #include <glibtop/cpu.h>
#include <glibtop/disk.h>
#include <glibtop/mem.h> #include <glibtop/mem.h>
#include <glibtop/swap.h> #include <glibtop/swap.h>
#include <glibtop/uptime.h> #include <glibtop/uptime.h>
@@ -61,7 +60,6 @@ typedef union _glibtop_union glibtop_union;
union _glibtop_union union _glibtop_union
{ {
glibtop_cpu cpu; glibtop_cpu cpu;
glibtop_disk disk;
glibtop_mem mem; glibtop_mem mem;
glibtop_swap swap; glibtop_swap swap;
glibtop_uptime uptime; glibtop_uptime uptime;

View File

@@ -29,7 +29,7 @@ if HAVE_INTROSPECTION
introspection_sources = $(libgtop_2_0_la_SOURCES) lib.c ../glibtop.h ../libgtopconfig.h \ introspection_sources = $(libgtop_2_0_la_SOURCES) lib.c ../glibtop.h ../libgtopconfig.h \
../include/glibtop/close.h ../include/glibtop/loadavg.h ../include/glibtop/prockernel.h ../include/glibtop/procstate.h \ ../include/glibtop/close.h ../include/glibtop/loadavg.h ../include/glibtop/prockernel.h ../include/glibtop/procstate.h \
../include/glibtop/sem_limits.h ../include/glibtop/uptime.h ../include/glibtop/command.h ../include/glibtop/mem.h ../include/glibtop/proclist.h \ ../include/glibtop/sem_limits.h ../include/glibtop/uptime.h ../include/glibtop/command.h ../include/glibtop/mem.h ../include/glibtop/proclist.h \
../include/glibtop/proctime.h ../include/glibtop/shm_limits.h ../include/glibtop/cpu.h ../include/glibtop/disk.h ../include/glibtop/msg_limits.h \ ../include/glibtop/proctime.h ../include/glibtop/shm_limits.h ../include/glibtop/cpu.h ../include/glibtop/msg_limits.h \
../include/glibtop/procmem.h ../include/glibtop/procuid.h ../include/glibtop/swap.h \ ../include/glibtop/procmem.h ../include/glibtop/procuid.h ../include/glibtop/swap.h \
../include/glibtop/procsegment.h ../include/glibtop/sysdeps.h ../include/glibtop/global.h \ ../include/glibtop/procsegment.h ../include/glibtop/sysdeps.h ../include/glibtop/global.h \
../include/glibtop/procsignal.h ../include/glibtop/union.h ../include/glibtop/gnuserv.h \ ../include/glibtop/procsignal.h ../include/glibtop/union.h ../include/glibtop/gnuserv.h \

View File

@@ -43,7 +43,6 @@ glibtop_call_l (glibtop *server, unsigned command, size_t send_size,
CHECK_CMND(GLIBTOP_CMND_QUIT); CHECK_CMND(GLIBTOP_CMND_QUIT);
CHECK_CMND(GLIBTOP_CMND_SYSDEPS); CHECK_CMND(GLIBTOP_CMND_SYSDEPS);
CHECK_CMND(GLIBTOP_CMND_CPU); CHECK_CMND(GLIBTOP_CMND_CPU);
CHECK_CMND(GLIBTOP_CMND_DISK);
CHECK_CMND(GLIBTOP_CMND_MEM); CHECK_CMND(GLIBTOP_CMND_MEM);
CHECK_CMND(GLIBTOP_CMND_SWAP); CHECK_CMND(GLIBTOP_CMND_SWAP);
CHECK_CMND(GLIBTOP_CMND_UPTIME); CHECK_CMND(GLIBTOP_CMND_UPTIME);

View File

@@ -3,8 +3,6 @@ glibtop_close
glibtop_close_r glibtop_close_r
glibtop_get_cpu glibtop_get_cpu
glibtop_get_cpu_l glibtop_get_cpu_l
glibtop_get_disk
glibtop_get_disk_l
glibtop_get_fsusage glibtop_get_fsusage
glibtop_get_fsusage_l glibtop_get_fsusage_l
glibtop_get_loadavg glibtop_get_loadavg

View File

@@ -27,7 +27,6 @@
const unsigned long glibtop_server_features = const unsigned long glibtop_server_features =
GLIBTOP_SUID_CPU + GLIBTOP_SUID_CPU +
GLIBTOP_SUID_DISK +
GLIBTOP_SUID_MEM + GLIBTOP_SUID_MEM +
GLIBTOP_SUID_SWAP + GLIBTOP_SUID_SWAP +
GLIBTOP_SUID_UPTIME + GLIBTOP_SUID_UPTIME +
@@ -57,9 +56,6 @@ const _glibtop_init_func_t _glibtop_init_hook_s [] = {
#if !GLIBTOP_SUID_CPU #if !GLIBTOP_SUID_CPU
_glibtop_init_cpu_s, _glibtop_init_cpu_s,
#endif #endif
#if !GLIBTOP_SUID_DISK
_glibtop_init_disk_s,
#endif
#if !GLIBTOP_SUID_MEM #if !GLIBTOP_SUID_MEM
_glibtop_init_mem_s, _glibtop_init_mem_s,
#endif #endif
@@ -139,9 +135,6 @@ const _glibtop_init_func_t _glibtop_init_hook_p [] = {
#if GLIBTOP_SUID_CPU #if GLIBTOP_SUID_CPU
_glibtop_init_cpu_p, _glibtop_init_cpu_p,
#endif #endif
#if GLIBTOP_SUID_DISK
_glibtop_init_disk_p,
#endif
#if GLIBTOP_SUID_MEM #if GLIBTOP_SUID_MEM
_glibtop_init_mem_p, _glibtop_init_mem_p,
#endif #endif

View File

@@ -36,43 +36,43 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
libgtop_need_server=yes libgtop_need_server=yes
libgtop_sysdeps_private_mountlist=yes libgtop_sysdeps_private_mountlist=yes
libgtop_sysdeps_private_fsusage=yes libgtop_sysdeps_private_fsusage=yes
libgtop_postinstall='chown root $(DESTDIR)$(libexecdir)/libgtop_server2 && chmod 4755 $(DESTDIR)$(libexecdir)/libgtop_server2' libgtop_postinstall='chown root $(bindir)/libgtop_server2 && chmod 4755 $(bindir)/libgtop_server2'
;; ;;
netbsd*|bsdi*) netbsd*|bsdi*)
libgtop_sysdeps_dir=bsd libgtop_sysdeps_dir=bsd
libgtop_need_server=yes libgtop_need_server=yes
libgtop_postinstall='chgrp kmem $(DESTDIR)$(libexecdir)/libgtop_server2 && chmod 2755 $(DESTDIR)$(libexecdir)/libgtop_server2' libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2755 $(bindir)/libgtop_server2'
;; ;;
openbsd*) openbsd*)
libgtop_sysdeps_dir=openbsd libgtop_sysdeps_dir=openbsd
libgtop_need_server=yes libgtop_need_server=yes
libgtop_sysdeps_private_mountlist=yes libgtop_sysdeps_private_mountlist=yes
libgtop_sysdeps_private_fsusage=yes libgtop_sysdeps_private_fsusage=yes
libgtop_postinstall='chgrp kmem $(DESTDIR)$(libexecdir)/libgtop_server2 && chmod 2555 $(DESTDIR)$(libexecdir)/libgtop_server2' libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2555 $(bindir)/libgtop_server2'
;; ;;
freebsd*|kfreebsd*) freebsd*|kfreebsd*)
libgtop_sysdeps_dir=freebsd libgtop_sysdeps_dir=freebsd
libgtop_need_server=yes libgtop_need_server=yes
libgtop_sysdeps_private_mountlist=yes libgtop_sysdeps_private_mountlist=yes
libgtop_sysdeps_private_fsusage=yes libgtop_sysdeps_private_fsusage=yes
libgtop_postinstall='chgrp kmem $(DESTDIR)$(libexecdir)/libgtop_server2 && chmod 2755 $(DESTDIR)$(libexecdir)/libgtop_server2' libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2755 $(bindir)/libgtop_server2'
;; ;;
solaris*) solaris*)
libgtop_sysdeps_dir=solaris libgtop_sysdeps_dir=solaris
libgtop_need_server=yes libgtop_need_server=yes
libgtop_postinstall='chgrp sys $(DESTDIR)$(libexecdir)/libgtop_server && chmod 2755 $(DESTDIR)$(libexecdir)/libgtop_server' libgtop_postinstall='chgrp sys $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
;; ;;
aix*) aix*)
libgtop_sysdeps_dir=aix libgtop_sysdeps_dir=aix
libgtop_need_server=yes libgtop_need_server=yes
libgtop_have_sysinfo=yes libgtop_have_sysinfo=yes
libgtop_postinstall='chgrp system $(DESTDIR)$(libexecdir)/libgtop_server && chmod g+s $(DESTDIR)$(libexecdir)/libgtop_server2' libgtop_postinstall='chgrp system $(bindir)/libgtop_server && chmod g+s $(bindir)/libgtop_server2'
;; ;;
darwin*) darwin*)
libgtop_sysdeps_dir=darwin libgtop_sysdeps_dir=darwin
libgtop_need_server=yes libgtop_need_server=yes
libgtop_have_sysinfo=yes libgtop_have_sysinfo=yes
libgtop_postinstall='chgrp kmem $(DESTDIR)$(libexecdir)/libgtop_server2 && chmod g+s $(DESTDIR)$(libexecdir)/libgtop_server2' libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod g+s $(bindir)/libgtop_server2'
;; ;;
cygwin*) cygwin*)
libgtop_sysdeps_dir=cygwin libgtop_sysdeps_dir=cygwin

View File

@@ -6,9 +6,8 @@
<name xml:lang="en">libgtop</name> <name xml:lang="en">libgtop</name>
<shortdesc xml:lang="en">LibGTop2</shortdesc> <shortdesc xml:lang="en">LibGTop2</shortdesc>
<description xml:lang="en">A library for collecting system monitoring data</description>
<download-page rdf:resource="http://download.gnome.org/sources/libgtop/" /> <download-page rdf:resource="http://download.gnome.org/sources/libgtop/" />
<bug-database rdf:resource="https://gitlab.gnome.org/GNOME/libgtop/issues/" /> <bug-database rdf:resource="http://bugzilla.gnome.org/browse.cgi?product=libgtop" />
<category rdf:resource="http://api.gnome.org/doap-extensions#core" /> <category rdf:resource="http://api.gnome.org/doap-extensions#core" />
<programming-language>C</programming-language> <programming-language>C</programming-language>

View File

@@ -1,6 +1,5 @@
# #
# please keep this list sorted alphabetically # please keep this list sorted alphabetically
ab
am am
ar ar
as as
@@ -41,7 +40,6 @@ id
it it
ja ja
ka ka
kab
kn kn
ko ko
ku ku

189
po/ab.po
View File

@@ -1,189 +0,0 @@
# Abkhazian translation for libgtop.
# Copyright (C) 2022 libgtop's COPYRIGHT HOLDER
# This file is distributed under the same license as the libgtop package.
# Нанба Наала <naala-nanba@rambler.ru>, 2022.
#
msgid ""
msgstr ""
"Project-Id-Version: libgtop master\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n"
"POT-Creation-Date: 2021-09-12 23:06+0000\n"
"PO-Revision-Date: 2021-09-12 23:06+0000\n"
"Last-Translator: Нанба Наала <naala-nanba@rambler.ru>\n"
"Language-Team: Abkhazian <ab@li.org>\n"
"Language: ab\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"
"X-DamnedLies-Scope: partial\n"
#: lib/read.c:49
#, c-format
msgid "read %d byte"
msgid_plural "read %d bytes"
msgstr[0] "%d баит шәрыԥхьахьеит"
msgstr[1] "%d баит шәрыԥхьахьеит"
#: lib/read_data.c:49
msgid "read data size"
msgstr "егьырҭ адыррақәа ршәага"
#: lib/read_data.c:66
#, c-format
msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data"
msgstr[0] "%lu баитк адыррақәа ирыԥхьоуп"
msgstr[1] "%lu баитк адыррақәа ирыԥхьоуп"
#: lib/write.c:49
#, c-format
msgid "wrote %d byte"
msgid_plural "wrote %d bytes"
msgstr[0] "иҭаҩҩуп %d баитк"
msgstr[1] "иҭаҩҩуп %d баитк"
#: src/daemon/gnuserv.c:456
msgid "Enable debugging"
msgstr "Аиқәыршәара аҿакра"
#: src/daemon/gnuserv.c:458
msgid "Enable verbose output"
msgstr "Иԥкаау алкаа аҿакра"
#: src/daemon/gnuserv.c:460
msgid "Dont fork into background"
msgstr "Ақәыԥшыларатә режим аиҿымгара"
#: src/daemon/gnuserv.c:462
msgid "Invoked from inetd"
msgstr "inetd аҟынтә ицәыргоуп"
#: src/daemon/gnuserv.c:498
#, c-format
msgid "Run “%s --help” to see a full list of available command line options.\n"
msgstr "Инашәыгӡа адҵа «%s --help», ишәзыманшәалоу адҵатә цәаҳәа алшарақәа резыкхьӡынҵа нарҭбааны ишәбарц азы.\n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27
msgid "Hangup"
msgstr "Аԥжәара"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
msgid "Interrupt"
msgstr "Аҟәыхра"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
msgid "Quit"
msgstr "Аҭыҵра"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
msgid "Illegal instruction"
msgstr "Иақәнагам абжьгара"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
msgid "Trace trap"
msgstr "Амҩалгара акра"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
msgid "Abort"
msgstr "Аҟәыҵра"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
msgid "EMT error"
msgstr "EMT агха "
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
msgid "Floating-point exception"
msgstr "Иӡсуа акәаԥ алцара"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
msgid "Kill"
msgstr "Ашьра"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
msgid "Bus error"
msgstr "Аҭелцаха агха"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
msgid "Segmentation violation"
msgstr "Агҿаԥҵәара аилагара"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
msgid "Bad argument to system call"
msgstr "Ииашам аҵаҵӷәы асистематә ааԥхьараҟны"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
msgid "Broken pipe"
msgstr "Ацышьҭа аилагара"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
msgid "Alarm clock"
msgstr "Аамҭарбага"
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
msgid "Termination"
msgstr "Ахырқәшара"
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
msgid "Urgent condition on socket"
msgstr "Азҿлымҳара зҭаху асокет азыҳәарақәа"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
msgid "Stop"
msgstr "Аанкылара"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
msgid "Keyboard stop"
msgstr "Арыдыкырақәа раанкылара"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
msgid "Continue"
msgstr "Ацҵара"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
msgid "Child status has changed"
msgstr "Ахылҵ иҭагылазаашьа ԥсахын"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
msgid "Background read from tty"
msgstr "Ақәыԥшыларала аԥхьара tty аҟынтә"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
msgid "Background write to tty"
msgstr "Ақәыԥшыларатә нҵамҭа tty аҟны"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
msgid "I/O now possible"
msgstr "Уажәы иалшахоит аҭагалара/аҭгара"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
msgid "CPU limit exceeded"
msgstr "ЦПУ анаӡара иахысит"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
msgid "File size limit exceeded"
msgstr "Афаил амҿхак анаӡара иахысит"
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
msgid "Virtual alarm clock"
msgstr "Ихыҭҳәаау аамҭарбага"
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
msgid "Profiling alarm clock"
msgstr "Нада-аадала еиҟароу аамҭарбага"
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
msgid "Window size change"
msgstr "Аԥенџьыр ашәага аԥсахра"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
msgid "Information request"
msgstr "Аинформациа азыҳәара"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
msgid "User defined signal 1"
msgstr "Ахархәаҩ 1 идырга "
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
msgid "User defined signal 2"
msgstr "Ахархәаҩ 2 идырга "

View File

@@ -7,14 +7,14 @@
# Christophe Merlet <redfox@redfoxcenter.org>, 2000-2004. # Christophe Merlet <redfox@redfoxcenter.org>, 2000-2004.
# Benoit Dejean <tazforever@dlfp.org>, 2004. # Benoit Dejean <tazforever@dlfp.org>, 2004.
# Stéphane Raimbault <stephane.raimbault@gmail.com>, 2007. # Stéphane Raimbault <stephane.raimbault@gmail.com>, 2007.
# Charles Monzat <charles.monzat@free.fr>, 2018-2022. # Charles Monzat <charles.monzat@free.fr>, 2018-2021.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop 2.9.91\n" "Project-Id-Version: libgtop 2.9.91\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n"
"POT-Creation-Date: 2021-08-23 22:54+0000\n" "POT-Creation-Date: 2020-05-29 05:44+0000\n"
"PO-Revision-Date: 2022-04-08 15:50+0200\n" "PO-Revision-Date: 2021-03-11 10:22+0100\n"
"Last-Translator: Charles Monzat <charles.monzat@free.fr>\n" "Last-Translator: Charles Monzat <charles.monzat@free.fr>\n"
"Language-Team: GNOME French Team <gnomefr@traduc.org>\n" "Language-Team: GNOME French Team <gnomefr@traduc.org>\n"
"Language: fr\n" "Language: fr\n"
@@ -22,7 +22,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Gtranslator 40.0\n" "X-Generator: Gtranslator 3.38.0\n"
#: lib/read.c:49 #: lib/read.c:49
#, c-format #, c-format
@@ -63,7 +63,7 @@ msgstr "Ne pas lancer en tâche de fond"
#: src/daemon/gnuserv.c:462 #: src/daemon/gnuserv.c:462
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr "Invoqué à partir de inetd" msgstr "Invoqué à partir de inetd"
#: src/daemon/gnuserv.c:498 #: src/daemon/gnuserv.c:498
#, c-format #, c-format

105
po/he.po
View File

@@ -3,196 +3,191 @@
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the PACKAGE package.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# Gil 'Dolfin' Osher <dolfin@rpg.org.il>, 2003 # Gil 'Dolfin' Osher <dolfin@rpg.org.il>, 2003
# Yosef Or Boczko <yoseforb@gmail.com>, 2022.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop.libgtop-GNOME-2-0-port.he\n" "Project-Id-Version: libgtop.libgtop-GNOME-2-0-port.he\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 05:44+0000\n" "POT-Creation-Date: 2007-09-30 03:40+0100\n"
"PO-Revision-Date: 2022-02-14 16:59+0200\n" "PO-Revision-Date: 2003-03-18 18:06+0200\n"
"Last-Translator: Yosef Or Boczko <yoseforb@gmail.com>\n" "Last-Translator: Yair Hershkovitz <yairhr@gmail.com>\n"
"Language-Team: Hebrew <>\n" "Language-Team: Hebrew <he@li.org>\n"
"Language: he\n" "Language: he\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 40.0\n" "X-Generator: KBabel 1.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
# *** This library should not be translated (only copy the english msgs) *** # *** This library should not be translated (only copy the english msgs) ***
# *** Old hebrew translation is commented for backup sake *** # *** Old hebrew translation is commented for backup sake ***
#: lib/read.c:49 #: ../lib/read.c:51
#, c-format #, c-format
msgid "read %d byte" msgid "read %d byte"
msgid_plural "read %d bytes" msgid_plural "read %d bytes"
msgstr[0] "read %d byte" msgstr[0] "read %d byte"
msgstr[1] "read %d bytes" msgstr[1] "read %d bytes"
#: lib/read_data.c:49 #: ../lib/read_data.c:51
msgid "read data size" msgid "read data size"
msgstr "read data size" msgstr "read data size"
#: lib/read_data.c:66 #: ../lib/read_data.c:70
#, c-format #, c-format
msgid "read %lu byte of data" msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data" msgid_plural "read %lu bytes of data"
msgstr[0] "read %lu byte of data" msgstr[0] "read %lu byte of data"
msgstr[1] "read %lu bytes of data" msgstr[1] "read %lu bytes of data"
#: lib/write.c:49 #: ../lib/write.c:51
#, c-format #, c-format
msgid "wrote %d byte" msgid "wrote %d byte"
msgid_plural "wrote %d bytes" msgid_plural "wrote %d bytes"
msgstr[0] "wrote %d byte" msgstr[0] "wrote %d byte"
msgstr[1] "wrote %d bytes" msgstr[1] "wrote %d bytes"
#: src/daemon/gnuserv.c:456 #: ../src/daemon/gnuserv.c:458
msgid "Enable debugging" msgid "Enable debugging"
msgstr "Enable debugging" msgstr "Enable debugging"
#: src/daemon/gnuserv.c:458 #: ../src/daemon/gnuserv.c:460
msgid "Enable verbose output" msgid "Enable verbose output"
msgstr "Enable verbose output" msgstr "Enable verbose output"
#: src/daemon/gnuserv.c:460 #: ../src/daemon/gnuserv.c:462
#| msgid "Don't fork into background" msgid "Don't fork into background"
msgid "Dont fork into background" msgstr "Don't fork into background"
msgstr "Dont fork into background"
#: src/daemon/gnuserv.c:462 #: ../src/daemon/gnuserv.c:464
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr "Invoked from inetd" msgstr "Invoked from inetd"
#: src/daemon/gnuserv.c:498 #: ../src/daemon/gnuserv.c:498
#, c-format #, c-format
#| msgid "" msgid "Run '%s --help' to see a full list of available command line options.\n"
#| "Run '%s --help' to see a full list of available command line options.\n" msgstr "Run '%s --help' to see a full list of available command line options.\n"
msgid "Run “%s --help” to see a full list of available command line options.\n"
msgstr ""
"Run “%s --help” to see a full list of available command line options.\n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27 #: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
msgid "Hangup" msgid "Hangup"
msgstr "Hangup" msgstr "Hangup"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28 #: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
msgid "Interrupt" msgid "Interrupt"
msgstr "Interrupt" msgstr "Interrupt"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29 #: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
msgid "Quit" msgid "Quit"
msgstr "Quit" msgstr "Quit"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30 #: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
msgid "Illegal instruction" msgid "Illegal instruction"
msgstr "Illegal instruction" msgstr "Illegal instruction"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31 #: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
msgid "Trace trap" msgid "Trace trap"
msgstr "Trace trap" msgstr "Trace trap"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32 #: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
msgid "Abort" msgid "Abort"
msgstr "Abort" msgstr "Abort"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33 #: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
msgid "EMT error" msgid "EMT error"
msgstr "EMT error" msgstr "EMT error"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34 #: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
msgid "Floating-point exception" msgid "Floating-point exception"
msgstr "Floating-point exception" msgstr "Floating-point exception"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35 #: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
msgid "Kill" msgid "Kill"
msgstr "Kill" msgstr "Kill"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36 #: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
msgid "Bus error" msgid "Bus error"
msgstr "Bus error" msgstr "Bus error"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37 #: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
msgid "Segmentation violation" msgid "Segmentation violation"
msgstr "Segmentation violation" msgstr "Segmentation violation"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38 #: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
msgid "Bad argument to system call" msgid "Bad argument to system call"
msgstr "Bad argument to system call" msgstr "Bad argument to system call"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39 #: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
msgid "Broken pipe" msgid "Broken pipe"
msgstr "Broken pipe" msgstr "Broken pipe"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40 #: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
msgid "Alarm clock" msgid "Alarm clock"
msgstr "Alarm clock" msgstr "Alarm clock"
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41 #: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
msgid "Termination" msgid "Termination"
msgstr "Termination" msgstr "Termination"
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42 #: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
msgid "Urgent condition on socket" msgid "Urgent condition on socket"
msgstr "Urgent condition on socket" msgstr "Urgent condition on socket"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43 #: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
msgid "Stop" msgid "Stop"
msgstr "Stop" msgstr "Stop"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44 #: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
msgid "Keyboard stop" msgid "Keyboard stop"
msgstr "Keyboard stop" msgstr "Keyboard stop"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45 #: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
msgid "Continue" msgid "Continue"
msgstr "Continue" msgstr "Continue"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46 #: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
msgid "Child status has changed" msgid "Child status has changed"
msgstr "Child status has changed" msgstr "Child status has changed"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47 #: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
msgid "Background read from tty" msgid "Background read from tty"
msgstr "Background read from tty" msgstr "Background read from tty"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48 #: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
msgid "Background write to tty" msgid "Background write to tty"
msgstr "Background write to tty" msgstr "Background write to tty"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49 #: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
msgid "I/O now possible" msgid "I/O now possible"
msgstr "I/O now possible" msgstr "I/O now possible"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50 #: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
msgid "CPU limit exceeded" msgid "CPU limit exceeded"
msgstr "CPU limit exceeded" msgstr "CPU limit exceeded"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51 #: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
msgid "File size limit exceeded" msgid "File size limit exceeded"
msgstr "File size limit exceeded" msgstr "File size limit exceeded"
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52 #: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
msgid "Virtual alarm clock" msgid "Virtual alarm clock"
msgstr "Virtual alarm clock" msgstr "Virtual alarm clock"
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53 #: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
msgid "Profiling alarm clock" msgid "Profiling alarm clock"
msgstr "Profiling alarm clock" msgstr "Profiling alarm clock"
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54 #: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
msgid "Window size change" msgid "Window size change"
msgstr "Window size change" msgstr "Window size change"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55 #: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
msgid "Information request" msgid "Information request"
msgstr "Information request" msgstr "Information request"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56 #: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
msgid "User defined signal 1" msgid "User defined signal 1"
msgstr "User defined signal 1" msgstr "User defined signal 1"
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57 #: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
msgid "User defined signal 2" msgid "User defined signal 2"
msgstr "User defined signal 2" msgstr "User defined signal 2"

111
po/hi.po
View File

@@ -6,191 +6,192 @@
# Ravishankar Shrivastava <raviratlami@yahoo.com>, 2004. # Ravishankar Shrivastava <raviratlami@yahoo.com>, 2004.
# Rajesh Ranjan <rranjan@redhat.com>, 2005. # Rajesh Ranjan <rranjan@redhat.com>, 2005.
# Rajesh Ranjan <rajesh672@gmail.com>, 2009. # Rajesh Ranjan <rajesh672@gmail.com>, 2009.
# Scrambled777 <weblate.scrambled777@simplelogin.com>, 2024.
#
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop.gnome-2-26\n" "Project-Id-Version: libgtop.gnome-2-26\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop&component=general\n"
"POT-Creation-Date: 2022-07-07 17:11+0000\n" "POT-Creation-Date: 2009-04-18 19:52+0000\n"
"PO-Revision-Date: 2024-04-17 18:19+0530\n" "PO-Revision-Date: 2009-06-10 14:37+0530\n"
"Last-Translator: Scrambled777 <weblate.scrambled777@simplelogin.com>\n" "Last-Translator: Rajesh Ranjan <rajesh672@gmail.com>\n"
"Language-Team: Hindi\n" "Language-Team: Hindi <hindi.sf.net>\n"
"Language: hi\n" "Language: hi\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 46.0\n" "X-Generator: KBabel 1.11.4\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n!=1);\n\n"
"\n"
"\n" "\n"
#: lib/read.c:49 #: ../lib/read.c:51
#, c-format #, c-format
msgid "read %d byte" msgid "read %d byte"
msgid_plural "read %d bytes" msgid_plural "read %d bytes"
msgstr[0] "%d बाइट पढ़ें" msgstr[0] "%d बाइट पढ़ें"
msgstr[1] "%d बाइट पढ़ें" msgstr[1] "%d बाइट पढ़ें"
#: lib/read_data.c:49 #: ../lib/read_data.c:51
msgid "read data size" msgid "read data size"
msgstr "डेटा आकार पढ़ें" msgstr "डेटा आकार पढ़ें"
#: lib/read_data.c:66 #: ../lib/read_data.c:70
#, c-format #, c-format
msgid "read %lu byte of data" msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data" msgid_plural "read %lu bytes of data"
msgstr[0] "%lu आंकड़ा का बाइट पढ़ें" msgstr[0] "%lu आंकड़ा का बाइट पढ़ें"
msgstr[1] "%lu आंकड़ा का बाइट्स पढ़ें" msgstr[1] "%lu आंकड़ा का बाइट्स पढ़ें"
#: lib/write.c:49 #: ../lib/write.c:51
#, c-format #, c-format
msgid "wrote %d byte" msgid "wrote %d byte"
msgid_plural "wrote %d bytes" msgid_plural "wrote %d bytes"
msgstr[0] "%d बाइट लिखा" msgstr[0] "%d बाइट लिखा"
msgstr[1] "%d बाइट्स लिखा" msgstr[1] "%d बाइट्स लिखा"
#: src/daemon/gnuserv.c:456 #: ../src/daemon/gnuserv.c:455
msgid "Enable debugging" msgid "Enable debugging"
msgstr "डीबगिंग सक्षम करें" msgstr "डीबगिंग सक्षम करें"
#: src/daemon/gnuserv.c:458 #: ../src/daemon/gnuserv.c:457
msgid "Enable verbose output" msgid "Enable verbose output"
msgstr "वाचाल आउटपुट सक्षम करें" msgstr "वाचाल आउटपुट सक्षम करें"
#: src/daemon/gnuserv.c:460 #: ../src/daemon/gnuserv.c:459
msgid "Dont fork into background" msgid "Don't fork into background"
msgstr "पृष्ठभूमि में फॉर्क न करें" msgstr "पृष्ठभूमि में फॉर्क न करें"
#: src/daemon/gnuserv.c:462 #: ../src/daemon/gnuserv.c:461
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr " inetd द्वारा बुलाया गया " msgstr " inetd द्वारा बुलाया गया "
#: src/daemon/gnuserv.c:498 #: ../src/daemon/gnuserv.c:495
#, c-format #, c-format
msgid "Run “%s --help” to see a full list of available command line options.\n" #| msgid ""
msgstr "उपलब्ध कमांड लाइन विकल्पों की पूरी सूची देखने के लिए “%s --help” चलाएँ।\n" #| "Error on option %s: %s.\n"
#| "Run '%s --help' to see a full list of available command line options.\n"
msgid "Run '%s --help' to see a full list of available command line options.\n"
msgstr "चलाएँ '%s --help' उपलब्ध कमांड लाइन विकल्प की पूरी सूची देखने हेतु.\n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27 #: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
msgid "Hangup" msgid "Hangup"
msgstr "हैंगअप" msgstr "हैंगअप"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28 #: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
msgid "Interrupt" msgid "Interrupt"
msgstr "इंटरप्ट" msgstr "इंटरप्ट"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29 #: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
msgid "Quit" msgid "Quit"
msgstr "बाहर" msgstr "बाहर"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30 #: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
msgid "Illegal instruction" msgid "Illegal instruction"
msgstr "अवैध निर्देश" msgstr "अवैध निर्देश"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31 #: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
msgid "Trace trap" msgid "Trace trap"
msgstr "ट्रेस ट्रैप" msgstr "ट्रेस ट्रैप"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32 #: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
msgid "Abort" msgid "Abort"
msgstr "छोड़ें" msgstr "छोड़ें"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33 #: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
msgid "EMT error" msgid "EMT error"
msgstr "ईएमटी त्रुटि" msgstr "ईएमटी त्रुटि"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34 #: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
msgid "Floating-point exception" msgid "Floating-point exception"
msgstr "फ़्लोटिंग-पाइंट अपवाद" msgstr "फ़्लोटिंग-पाइंट अपवाद"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35 #: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
msgid "Kill" msgid "Kill"
msgstr "किल" msgstr "किल"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36 #: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
msgid "Bus error" msgid "Bus error"
msgstr "बस त्रुटि" msgstr "बस त्रुटि"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37 #: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
msgid "Segmentation violation" msgid "Segmentation violation"
msgstr "सेगमेंटेशन अतिक्रमण" msgstr "सेगमेंटेशन अतिक्रमण"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38 #: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
msgid "Bad argument to system call" msgid "Bad argument to system call"
msgstr "सिस्टम काल को गलत आर्गुमेंट" msgstr "सिस्टम काल को गलत आर्गुमेंट"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39 #: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
msgid "Broken pipe" msgid "Broken pipe"
msgstr "टूटा पाइप" msgstr "टूटा पाइप"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40 #: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
msgid "Alarm clock" msgid "Alarm clock"
msgstr "अलार्म घड़ी" msgstr "अलार्म घड़ी"
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41 #: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
msgid "Termination" msgid "Termination"
msgstr "समाप्त" msgstr "समाप्त"
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42 #: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
msgid "Urgent condition on socket" msgid "Urgent condition on socket"
msgstr "सॉकेट पर अत्यावश्यक अवस्था" msgstr "सॉकेट पर अत्यावश्यक अवस्था"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43 #: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
msgid "Stop" msgid "Stop"
msgstr "रोकें" msgstr "रोकें"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44 #: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
msgid "Keyboard stop" msgid "Keyboard stop"
msgstr "कुंजीपटल रोकें" msgstr "कुंजीपटल रोकें"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45 #: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
msgid "Continue" msgid "Continue"
msgstr "जारी रखें" msgstr "जारी रखें"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46 #: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
msgid "Child status has changed" msgid "Child status has changed"
msgstr "शिशु स्थिति बदल चुकी है" msgstr "शिशु स्थिति बदल चुकी है"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47 #: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
msgid "Background read from tty" msgid "Background read from tty"
msgstr "टीटीवाई से पढ़ने का कार्य पृष्ठभूमि में करें" msgstr "टीटीवाई से पढ़ने का कार्य पृष्ठभूमि में करें"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48 #: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
msgid "Background write to tty" msgid "Background write to tty"
msgstr "टीटीवाई पर लिखने का कार्य पृष्ठभूमि में करें" msgstr "टीटीवाई पर लिखने का कार्य पृष्ठभूमि में करें"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49 #: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
msgid "I/O now possible" msgid "I/O now possible"
msgstr "आई/ओ अब संभव" msgstr "आई/ओ अब संभव"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50 #: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
msgid "CPU limit exceeded" msgid "CPU limit exceeded"
msgstr "सीपीयू सीमा से बाहर पहुँच चुकी" msgstr "सीपीयू सीमा से बाहर पहुँच चुकी"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51 #: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
msgid "File size limit exceeded" msgid "File size limit exceeded"
msgstr "फ़ाइल आकार सीमा से बाहर पहुँच चुकी" msgstr "फ़ाइल आकार सीमा से बाहर पहुँच चुकी"
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52 #: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
msgid "Virtual alarm clock" msgid "Virtual alarm clock"
msgstr "आभासी अलार्म घड़ी" msgstr "आभासी अलार्म घड़ी"
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53 #: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
msgid "Profiling alarm clock" msgid "Profiling alarm clock"
msgstr "प्रोफ़ाइलिंग अलार्म घड़ी" msgstr "प्रोफ़ाइलिंग अलार्म घड़ी"
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54 #: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
msgid "Window size change" msgid "Window size change"
msgstr "विंडो आकार परिवर्तन" msgstr "विंडो आकार परिवर्तन"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55 #: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
msgid "Information request" msgid "Information request"
msgstr "जानकारी निवेदन" msgstr "जानकारी निवेदन"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56 #: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
msgid "User defined signal 1" msgid "User defined signal 1"
msgstr "उपयोगकर्ता पारिभाषित संकेत 1" msgstr "उपयोगकर्ता पारिभाषित संकेत "
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57 #: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
msgid "User defined signal 2" msgid "User defined signal 2"
msgstr "उपयोगकर्ता पारिभाषित संकेत 2" msgstr "उपयोगकर्ता पारिभाषित संकेत "

213
po/ka.po
View File

@@ -1,186 +1,221 @@
# SOME DESCRIPTIVE TITLE. # translation of libgtop.po to Georgian
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) 2006 Gnome Georgian Translators
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the libgtop package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# #
# Alexander Didebulidze <didebuli@in.tum.de>, 2006.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop\n" "Project-Id-Version: libgtop\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-28 13:02+0000\n" "POT-Creation-Date: 2006-02-25 08:57+0100\n"
"PO-Revision-Date: 2022-07-21 17:28+0200\n" "PO-Revision-Date: 2006-03-18 03:28+0100\n"
"Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>\n" "Last-Translator: Alexander Didebulidze <didebuli@in.tum.de>\n"
"Language-Team: Georgian <(nothing)>\n" "Language-Team: Georgian <gnome@inet.ge>\n"
"Language: ka\n" "Language: ka\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0"
"X-Generator: Poedit 3.1.1\n"
#: lib/read.c:49 #: ../lib/read.c:65
#, c-format #, c-format
#, fuzzy
msgid "read %d byte" msgid "read %d byte"
msgid_plural "read %d bytes" msgid_plural "read %d bytes"
msgstr[0] "წაკითხულია %d ბაიტი" msgstr[0] "byte"
#: lib/read_data.c:49 #: ../lib/read_data.c:53
#, fuzzy
msgid "read data size" msgid "read data size"
msgstr "წაკითხული მონაცემების ზომა" msgstr "სიდიდე"
#: lib/read_data.c:66 #: ../lib/read_data.c:72
#, c-format #, c-format
#, fuzzy
msgid "read %lu byte of data" msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data" msgid_plural "read %lu bytes of data"
msgstr[0] "წაკითხულია %lu ბაიტი ინფორმაცა" msgstr[0] "byte"
#: lib/write.c:49 #: ../lib/write.c:52
#, c-format #, c-format
#, fuzzy
msgid "wrote %d byte" msgid "wrote %d byte"
msgid_plural "wrote %d bytes" msgid_plural "wrote %d bytes"
msgstr[0] "ჩაწერილია %d ბაიტი" msgstr[0] "byte"
#: src/daemon/gnuserv.c:456 #: ../src/daemon/gnuserv.c:460
msgid "Enable debugging" msgid "Enable debugging"
msgstr "გამართვის კოდის ჩართვა" msgstr ""
#: src/daemon/gnuserv.c:458 #: ../src/daemon/gnuserv.c:460
msgid "DEBUG"
msgstr "DEBUG"
#: ../src/daemon/gnuserv.c:462
msgid "Enable verbose output" msgid "Enable verbose output"
msgstr "უფრო მეტის ჩვენება" msgstr ""
#: src/daemon/gnuserv.c:460 #: ../src/daemon/gnuserv.c:462
msgid "Dont fork into background" msgid "VERBOSE"
msgstr "ფონზე გადასვლის გათიშვა" msgstr "VERBOSE"
#: src/daemon/gnuserv.c:462 #: ../src/daemon/gnuserv.c:464
msgid "Don't fork into background"
msgstr ""
#: ../src/daemon/gnuserv.c:464
msgid "NO-DAEMON"
msgstr ""
#: ../src/daemon/gnuserv.c:466
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr "გაშვებულია inetd-დან" msgstr ""
#: src/daemon/gnuserv.c:498 #: ../src/daemon/gnuserv.c:466
msgid "INETD"
msgstr "INETD"
#: ../src/daemon/gnuserv.c:500
#, c-format #, c-format
msgid "Run “%s --help” to see a full list of available command line options.\n" #, fuzzy
msgstr "გაშვების ხელმისაწვდომი პარამეტრების სანახავად გაუშვით \"%s --help\".\n" msgid ""
"Error on option %s: %s.\n"
"Run '%s --help' to see a full list of available command line options.\n"
msgstr "შეცდომა -სკენ a ხაზი n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27 #: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
msgid "Hangup" msgid "Hangup"
msgstr "გათიშვა" msgstr ""
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28 #: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
msgid "Interrupt" msgid "Interrupt"
msgstr "შეწყვეტა" msgstr ""
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29 #: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
msgid "Quit" msgid "Quit"
msgstr "გასვლა" msgstr "გამოსვლა"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30 #: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
msgid "Illegal instruction" msgid "Illegal instruction"
msgstr "არასწორი ინსტრუქცია" msgstr "არალეგალური ინსტრუქცია"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31 #: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
#, fuzzy
msgid "Trace trap" msgid "Trace trap"
msgstr "ტრეისის ჩაჭერა" msgstr "გამოთვალე"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32 #: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
msgid "Abort" msgid "Abort"
msgstr "შეწყვეტა" msgstr "შეწყვეტა"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33 #: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
msgid "EMT error" msgid "EMT error"
msgstr "EMT შეცდომა" msgstr "EMT შეცდომა"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34 #: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
msgid "Floating-point exception" msgid "Floating-point exception"
msgstr "წილადი რიცხვების ანგარიშის შეცდომა" msgstr ""
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35 #: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
msgid "Kill" msgid "Kill"
msgstr "მოკვლა" msgstr ""
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36 #: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
#, fuzzy
msgid "Bus error" msgid "Bus error"
msgstr "მატარებლის შეცდომა" msgstr "შეცდომა"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37 #: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
msgid "Segmentation violation" msgid "Segmentation violation"
msgstr "სეგმენტაციის შეცდომა" msgstr ""
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38 #: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
#, fuzzy
msgid "Bad argument to system call" msgid "Bad argument to system call"
msgstr "სისტემური ფუნქციის არასწორი არგუმენტები" msgstr "-სკენ"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39 #: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
msgid "Broken pipe" msgid "Broken pipe"
msgstr "გაფუჭებული მილი" msgstr ""
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40 #: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
msgid "Alarm clock" msgid "Alarm clock"
msgstr "მაღვიძარა" msgstr ""
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41 #: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
msgid "Termination" msgid "Termination"
msgstr "შეწყვეტა" msgstr ""
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42 #: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
msgid "Urgent condition on socket" msgid "Urgent condition on socket"
msgstr "სოკეტის სასწრაფო მდგომარეობა" msgstr ""
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43 #: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
msgid "Stop" msgid "Stop"
msgstr "შეჩერება" msgstr "შეჩერება"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44 #: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
#, fuzzy
msgid "Keyboard stop" msgid "Keyboard stop"
msgstr "კლავიაუტით გაჩერება" msgstr "კლავიატურა"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45 #: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
msgid "Continue" msgid "Continue"
msgstr "გაგრძელება" msgstr "გაგრძელება"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46 #: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
msgid "Child status has changed" msgid "Child status has changed"
msgstr "შვილის სტატუსი შეცვლილია" msgstr ""
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47 #: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
#, fuzzy
msgid "Background read from tty" msgid "Background read from tty"
msgstr "TTY-დან ფონურად კითხვა" msgstr "ფონი"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48 #: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
#, fuzzy
msgid "Background write to tty" msgid "Background write to tty"
msgstr "TTY-ში ფონურად ჩაწერა" msgstr "ფონი -სკენ"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49 #: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
msgid "I/O now possible" msgid "I/O now possible"
msgstr "I/O ახლა შესაძლებელია" msgstr "I/O ახლა შესაძლებელია"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50 #: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
#, fuzzy
msgid "CPU limit exceeded" msgid "CPU limit exceeded"
msgstr "CPU-ის ლიმიტი გადაჭარბებულია" msgstr "CPU"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51 #: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
#, fuzzy
msgid "File size limit exceeded" msgid "File size limit exceeded"
msgstr "ფაილის ზომის ლიმიტი გადაჭარბებულია" msgstr "ფაილი სიდიდე"
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52 #: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
msgid "Virtual alarm clock" msgid "Virtual alarm clock"
msgstr "ვირტუალური მაღვიძარა" msgstr ""
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53 #: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
msgid "Profiling alarm clock" msgid "Profiling alarm clock"
msgstr "მაღვიძარის ზარის პროფილირება" msgstr ""
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54 #: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
#, fuzzy
msgid "Window size change" msgid "Window size change"
msgstr "ფანჯრის ზომის შეცვლა" msgstr "ფანჯარა სიდიდე"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55 #: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
#, fuzzy
msgid "Information request" msgid "Information request"
msgstr "ინფორმაციის მოთხოვნა" msgstr "ინფორმაცია"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56 #: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
#, fuzzy
msgid "User defined signal 1" msgid "User defined signal 1"
msgstr "მომხმარებლის მიერ განსაზღვრული სიგნალი 1" msgstr "მომხმარებლი 1"
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57 #: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
#, fuzzy
msgid "User defined signal 2" msgid "User defined signal 2"
msgstr "მომხმარებლის მიერ განსაზღვრული სიგნალი 2" msgstr "მომხმარებლი 2"

189
po/kab.po
View File

@@ -1,189 +0,0 @@
# Kabyle translation for libgtop.
# Copyright (C) 2024 libgtop's COPYRIGHT HOLDER
# This file is distributed under the same license as the libgtop package.
# Rachida SACI <rgebbid@gmail.com>, 2024.
#
msgid ""
msgstr ""
"Project-Id-Version: libgtop master\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues/\n"
"POT-Creation-Date: 2024-03-22 12:09+0000\n"
"PO-Revision-Date: 2024-03-30 18:36+0100\n"
"Last-Translator: sa\n"
"Language-Team: Kabyle <kab@li.org>\n"
"Language: kab\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"
"X-Generator: Poedit 3.4.2\n"
#: lib/read.c:49
#, c-format
msgid "read %d byte"
msgid_plural "read %d bytes"
msgstr[0] "ɣeṛ %d yibit"
msgstr[1] "ɣeṛ %d yibiten"
#: lib/read_data.c:49
msgid "read data size"
msgstr "ɣeṛ teɣzi n yisefka"
#: lib/read_data.c:66
#, c-format
msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data"
msgstr[0] "ɣeṛ %lu yibit n yisefka"
msgstr[1] "ɣeṛ %lu yibiten n yisefka"
#: lib/write.c:49
#, c-format
msgid "wrote %d byte"
msgid_plural "wrote %d bytes"
msgstr[0] "aru %d yibit"
msgstr[1] "aru %d yibiten"
#: src/daemon/gnuserv.c:460
msgid "Enable debugging"
msgstr "Rmed n tseɣtayt"
#: src/daemon/gnuserv.c:462
msgid "Enable verbose output"
msgstr "Rmed n tuffɣa talqayant"
#: src/daemon/gnuserv.c:464
msgid "Dont fork into background"
msgstr "Ur ttεedday ara deg ugilal"
#: src/daemon/gnuserv.c:466
msgid "Invoked from inetd"
msgstr "Yettwancad seg inetd"
#: src/daemon/gnuserv.c:502
#, c-format
msgid "Run “%s --help” to see a full list of available command line options.\n"
msgstr "Selkem \"%s --tallalat\" i wakken ad twaliḍ tabdart tummidt n textiṛiyin n izirig iwejden.\n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27
msgid "Hangup"
msgstr "Gzem"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
msgid "Interrupt"
msgstr "Anegzum"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
msgid "Quit"
msgstr "Ffeɣ"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
msgid "Illegal instruction"
msgstr "Tnaḍt tarayugant"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
msgid "Trace trap"
msgstr "Aḍfar n temdayt"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
msgid "Abort"
msgstr "Sefsex"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
msgid "EMT error"
msgstr "Tuccḍa EMT"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
msgid "Floating-point exception"
msgstr "Tasureft n tefrayt yettifliwin"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
msgid "Kill"
msgstr "Neɣ"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
msgid "Bus error"
msgstr "Tuccḍa n uzebg"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
msgid "Segmentation violation"
msgstr "Akukel useqzuzem"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
msgid "Bad argument to system call"
msgstr "Yir afakul i usiwel n unagraw"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
msgid "Broken pipe"
msgstr "Tagmamt yerrẓen"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
msgid "Alarm clock"
msgstr "Tangedwit"
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
msgid "Termination"
msgstr "Taggara"
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
msgid "Urgent condition on socket"
msgstr "Tawtilt taḍrurant ɣef socket"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
msgid "Stop"
msgstr "Seḥbes"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
msgid "Keyboard stop"
msgstr "Aḥbas n unasiw"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
msgid "Continue"
msgstr "Kemmel"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
msgid "Child status has changed"
msgstr "Addad aqrur yettwasenfel"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
msgid "Background read from tty"
msgstr "Taɣri n ugilal seg tdiwent"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
msgid "Background write to tty"
msgstr "Tira n ugilal ɣef tdiwent"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
msgid "I/O now possible"
msgstr "Asekcem/Asuffeɣ yella tura"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
msgid "CPU limit exceeded"
msgstr "CPU iεedda tilisa"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
msgid "File size limit exceeded"
msgstr "Teɣzi n ufaylu tεedda tilisa"
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
msgid "Virtual alarm clock"
msgstr "Tangedwit tuhlist"
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
msgid "Profiling alarm clock"
msgstr "Tangedwit n tesnawsit"
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
msgid "Window size change"
msgstr "Asenfel n teεzi n usfaylu"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
msgid "Information request"
msgstr "Tettwasra talɣut"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
msgid "User defined signal 1"
msgstr "Tamuli yettusbadu sɣur useqdac 1"
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
msgid "User defined signal 2"
msgstr "Tamuli yettusbadu sɣur useqdac 2"

105
po/ne.po
View File

@@ -12,187 +12,188 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop.gnome-2-20.ne\n" "Project-Id-Version: libgtop.gnome-2-20.ne\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 05:44+0000\n" "POT-Creation-Date: 2007-09-30 03:40+0100\n"
"PO-Revision-Date: 2021-05-16 14:57+0545\n" "PO-Revision-Date: 2007-12-19 12:53+0545\n"
"Last-Translator: Pawan Chitrakar <chautari@gmail.com>\n" "Last-Translator: Nabin Gautam <nabin@mpp.org.np>\n"
"Language-Team: Nepali <info@mpp.org.np>\n" "Language-Team: Nepali <info@mpp.org.np>\n"
"Language: ne\n" "Language: ne\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: Nepali\n"
"X-Poedit-Country: NEPAL\n"
"X-Poedit-SourceCharset: utf-8\n" "X-Poedit-SourceCharset: utf-8\n"
"X-Generator: Poedit 1.8.4\n" "X-Generator: KBabel 1.11.4\n"
"Plural-Forms: nplurals=2; plural=n !=1;\n" "Plural-Forms: nplurals=2; plural=n !=1\n"
#: lib/read.c:49 #: ../lib/read.c:51
#, c-format #, c-format
msgid "read %d byte" msgid "read %d byte"
msgid_plural "read %d bytes" msgid_plural "read %d bytes"
msgstr[0] "%d बाइट पढ्नुहोस्" msgstr[0] "%d बाइट पढ्नुहोस्"
msgstr[1] "%d बाइट पढ्नुहोस्" msgstr[1] "%d बाइट पढ्नुहोस्"
#: lib/read_data.c:49 #: ../lib/read_data.c:51
msgid "read data size" msgid "read data size"
msgstr "डेटा साइज पढ्नुहोस्" msgstr "डेटा साइज पढ्नुहोस्"
#: lib/read_data.c:66 #: ../lib/read_data.c:70
#, c-format #, c-format
msgid "read %lu byte of data" msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data" msgid_plural "read %lu bytes of data"
msgstr[0] "डेटाको %lu बाइट पढ्नुहोस्" msgstr[0] "डेटाको %lu बाइट पढ्नुहोस्"
msgstr[1] "डेटाको %lu बाइट पढ्नुहोस्" msgstr[1] "डेटाको %lu बाइट पढ्नुहोस्"
#: lib/write.c:49 #: ../lib/write.c:51
#, c-format #, c-format
msgid "wrote %d byte" msgid "wrote %d byte"
msgid_plural "wrote %d bytes" msgid_plural "wrote %d bytes"
msgstr[0] "%d बाइट लेख्यो" msgstr[0] "%d बाइट लेख्यो"
msgstr[1] "%d बाइट लेख्यो" msgstr[1] "%d बाइट लेख्यो"
#: src/daemon/gnuserv.c:456 #: ../src/daemon/gnuserv.c:458
msgid "Enable debugging" msgid "Enable debugging"
msgstr "डिबगिङ सक्षम पार्नुहोस्" msgstr "डिबगिङ सक्षम पार्नुहोस्"
#: src/daemon/gnuserv.c:458 #: ../src/daemon/gnuserv.c:460
msgid "Enable verbose output" msgid "Enable verbose output"
msgstr "भर्बोज निर्गत सक्षम पार्नुहोस्" msgstr "भर्बोज निर्गत सक्षम पार्नुहोस्"
#: src/daemon/gnuserv.c:460 #: ../src/daemon/gnuserv.c:462
msgid "Dont fork into background" msgid "Don't fork into background"
msgstr "पृष्ठभूमिमा बिभाजन नगर्नुहोस्" msgstr "पृष्ठभूमिमा बिभाजन नगर्नुहोस्"
#: src/daemon/gnuserv.c:462 #: ../src/daemon/gnuserv.c:464
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr "inetd बाट आह्वान गरिएको" msgstr "inetd बाट आह्वान गरिएको"
#: src/daemon/gnuserv.c:498 #: ../src/daemon/gnuserv.c:498
#, c-format #, c-format
msgid "Run %s --help to see a full list of available command line options.\n" msgid "Run '%s --help' to see a full list of available command line options.\n"
msgstr "" msgstr "उपलब्ध आदेश लाइन विकल्पको पूरै सूची हेर्न '%s --मद्दत' चलाउनुहोस् ।\n"
"उपलब्ध आदेश रेखा विकल्पको पूरा सूची हेर्न \"%s --help\" चलाउनुहोस् ।\n"
"\n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27 #: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
msgid "Hangup" msgid "Hangup"
msgstr "ह्याङअप" msgstr "ह्याङअप"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28 #: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
msgid "Interrupt" msgid "Interrupt"
msgstr "रोकावट" msgstr "रोकावट"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29 #: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
msgid "Quit" msgid "Quit"
msgstr "अन्त्य गर्नुहोस्" msgstr "अन्त्य गर्नुहोस्"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30 #: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
msgid "Illegal instruction" msgid "Illegal instruction"
msgstr "अवैध निर्देशन" msgstr "अवैध निर्देशन"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31 #: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
msgid "Trace trap" msgid "Trace trap"
msgstr "पदचिन्ह ट्रयाप" msgstr "पदचिन्ह ट्रयाप"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32 #: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
msgid "Abort" msgid "Abort"
msgstr "परित्याग गर्नुहोस्" msgstr "परित्याग गर्नुहोस्"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33 #: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
msgid "EMT error" msgid "EMT error"
msgstr "इएमटी (EMT) त्रुटि" msgstr "इएमटी (EMT) त्रुटि"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34 #: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
msgid "Floating-point exception" msgid "Floating-point exception"
msgstr "उत्प्लावन बिन्दु अपवाद" msgstr "उत्प्लावन बिन्दु अपवाद"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35 #: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
msgid "Kill" msgid "Kill"
msgstr "नष्ट गर्नुहोस्" msgstr "नष्ट गर्नुहोस्"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36 #: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
msgid "Bus error" msgid "Bus error"
msgstr "बस त्रुटि" msgstr "बस त्रुटि"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37 #: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
msgid "Segmentation violation" msgid "Segmentation violation"
msgstr "खण्डीकरण बिखण्डन" msgstr "खण्डीकरण बिखण्डन"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38 #: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
msgid "Bad argument to system call" msgid "Bad argument to system call"
msgstr "प्रणाली कलमा खराब तर्क" msgstr "प्रणाली कलमा खराब तर्क"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39 #: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
msgid "Broken pipe" msgid "Broken pipe"
msgstr "विच्छेद पाइप" msgstr "विच्छेद पाइप"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40 #: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
msgid "Alarm clock" msgid "Alarm clock"
msgstr "सचेतक घडी" msgstr "सचेतक घडी"
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41 #: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
msgid "Termination" msgid "Termination"
msgstr "अन्त्य" msgstr "अन्त्य"
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42 #: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
msgid "Urgent condition on socket" msgid "Urgent condition on socket"
msgstr "सकेटमा आकस्मिक अवस्था" msgstr "सकेटमा आकस्मिक अवस्था"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43 #: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
msgid "Stop" msgid "Stop"
msgstr "रोक्नुहोस्" msgstr "रोक्नुहोस्"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44 #: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
msgid "Keyboard stop" msgid "Keyboard stop"
msgstr "कुञ्जिपाटी बन्द गर्नुहोस्" msgstr "कुञ्जिपाटी बन्द गर्नुहोस्"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45 #: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
msgid "Continue" msgid "Continue"
msgstr "जारी राख्नुहोस्" msgstr "जारी राख्नुहोस्"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46 #: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
msgid "Child status has changed" msgid "Child status has changed"
msgstr "शाखा वस्तुस्थिति परिवर्तन गरिएको छ" msgstr "चाइल्ड वस्तुस्थिति परिवर्तन गरिएको छ"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47 #: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
msgid "Background read from tty" msgid "Background read from tty"
msgstr "tty बाट पृष्ठभूमि पढ्नुहोस्" msgstr "tty बाट पृष्ठभूमि पढ्नुहोस्"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48 #: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
msgid "Background write to tty" msgid "Background write to tty"
msgstr "tty मा पृष्ठभूमि लेख्नुहोस्" msgstr "tty मा पृष्ठभूमि लेख्नुहोस्"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49 #: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
msgid "I/O now possible" msgid "I/O now possible"
msgstr "I/O अब सम्भव छ" msgstr "I/O अब सम्भव छ"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50 #: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
msgid "CPU limit exceeded" msgid "CPU limit exceeded"
msgstr "सीपीयू (CPU) सीमा नाघ्यो" msgstr "सीपीयू (CPU) सीमा नाघ्यो"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51 #: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
msgid "File size limit exceeded" msgid "File size limit exceeded"
msgstr "फाइल साइज सीमा नाघ्यो" msgstr "फाइल साइज सीमा नाघ्यो"
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52 #: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
msgid "Virtual alarm clock" msgid "Virtual alarm clock"
msgstr "अवास्तविक सचेतक घडी" msgstr "अवास्तविक सचेतक घडी"
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53 #: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
msgid "Profiling alarm clock" msgid "Profiling alarm clock"
msgstr "सचेतक घडीको प्रोफाइल हुँदैछ" msgstr "सचेतक घडीको प्रोफाइल हुँदैछ"
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54 #: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
msgid "Window size change" msgid "Window size change"
msgstr "सञ्झ्याल साइज परिवर्तन" msgstr "सञ्झ्याल साइज परिवर्तन"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55 #: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
msgid "Information request" msgid "Information request"
msgstr "सूचना अनुरोध" msgstr "सूचना अनुरोध"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56 #: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
msgid "User defined signal 1" msgid "User defined signal 1"
msgstr "प्रयोगकर्ता परिभषित सङ्केत १" msgstr "प्रयोगकर्ता परिभषित सङ्केत १"
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57 #: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
msgid "User defined signal 2" msgid "User defined signal 2"
msgstr "प्रयोगकर्ता परिभषित सङ्केत २" msgstr "प्रयोगकर्ता परिभषित सङ्केत २"

102
po/oc.po
View File

@@ -7,188 +7,188 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop 2.9.91\n" "Project-Id-Version: libgtop 2.9.91\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
"POT-Creation-Date: 2020-05-29 05:44+0000\n" "product=libgtop&keywords=I18N+L10N&component=general\n"
"PO-Revision-Date: 2021-07-04 18:57+0200\n" "POT-Creation-Date: 2016-05-05 20:08+0000\n"
"Last-Translator: Quentin PAGÈS\n" "PO-Revision-Date: 2016-05-05 21:47+0200\n"
"Last-Translator: Cédric Valmary (totenoc.eu) <cvalmary@yahoo.fr>\n"
"Language-Team: Tot En Òc\n" "Language-Team: Tot En Òc\n"
"Language: oc\n" "Language: oc\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.0\n" "X-Generator: Virtaal 0.7.1\n"
"X-Project-Style: gnome\n" "X-Project-Style: gnome\n"
#: lib/read.c:49 #: ../lib/read.c:49
#, c-format #, c-format
msgid "read %d byte" msgid "read %d byte"
msgid_plural "read %d bytes" msgid_plural "read %d bytes"
msgstr[0] "%d octet legit" msgstr[0] "%d octet legit"
msgstr[1] "%d octets legits" msgstr[1] "%d octets legits"
#: lib/read_data.c:49 #: ../lib/read_data.c:49
msgid "read data size" msgid "read data size"
msgstr "talha de las donadas legidas" msgstr "talha de las donadas legidas"
#: lib/read_data.c:66 #: ../lib/read_data.c:66
#, c-format #, c-format
msgid "read %lu byte of data" msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data" msgid_plural "read %lu bytes of data"
msgstr[0] "lectura de %lu octet de donadas" msgstr[0] "lectura de %lu octet de donadas"
msgstr[1] "lectura de %lu octets de donadas" msgstr[1] "lectura de %lu octets de donadas"
#: lib/write.c:49 #: ../lib/write.c:49
#, c-format #, c-format
msgid "wrote %d byte" msgid "wrote %d byte"
msgid_plural "wrote %d bytes" msgid_plural "wrote %d bytes"
msgstr[0] "escritura de %d octet" msgstr[0] "escritura de %d octet"
msgstr[1] "escritura de %d octets" msgstr[1] "escritura de %d octets"
#: src/daemon/gnuserv.c:456 #: ../src/daemon/gnuserv.c:456
msgid "Enable debugging" msgid "Enable debugging"
msgstr "Activa lo desbugatge" msgstr "Activa lo desbugatge"
#: src/daemon/gnuserv.c:458 #: ../src/daemon/gnuserv.c:458
msgid "Enable verbose output" msgid "Enable verbose output"
msgstr "Activa la sortida verbosa" msgstr "Activa la sortida verbosa"
#: src/daemon/gnuserv.c:460 #: ../src/daemon/gnuserv.c:460
msgid "Dont fork into background" msgid "Don't fork into background"
msgstr "Aviar pas en prètzfait de rèireplan" msgstr "Aviar pas en prètzfait de fons"
#: src/daemon/gnuserv.c:462 #: ../src/daemon/gnuserv.c:462
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr "Invocat a partir d'inetd" msgstr "Invocat a partir d'inetd"
#: src/daemon/gnuserv.c:498 #: ../src/daemon/gnuserv.c:498
#, c-format #, c-format
msgid "" msgid "Run '%s --help' to see a full list of available command line options.\n"
"Run “%s --help” to see a full list of available command line options.\n"
msgstr "" msgstr ""
"Executar « %s --help » per afichar la lista de las opcions de la linha " "Aviar « %s --help » per afichar la lista de las opcions de la linha de "
"de comanda.\n" "comanda.\n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27 #: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
msgid "Hangup" msgid "Hangup"
msgstr "Hangup" msgstr "Hangup"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28 #: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
msgid "Interrupt" msgid "Interrupt"
msgstr "Interrupcion" msgstr "Interrupcion"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29 #: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
msgid "Quit" msgid "Quit"
msgstr "Quitar" msgstr "Quitar"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30 #: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
msgid "Illegal instruction" msgid "Illegal instruction"
msgstr "Instruccion illegala" msgstr "Instruccion illegala"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31 #: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
msgid "Trace trap" msgid "Trace trap"
msgstr "Punt d'arrèst rencontrat" msgstr "Punt d'arrèst rencontrat"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32 #: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
msgid "Abort" msgid "Abort"
msgstr "Anullacion" msgstr "Anullacion"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33 #: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
msgid "EMT error" msgid "EMT error"
msgstr "Error EMT" msgstr "Error EMT"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34 #: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
msgid "Floating-point exception" msgid "Floating-point exception"
msgstr "Excepcion virgula flotanta" msgstr "Excepcion virgula flotanta"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35 #: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
msgid "Kill" msgid "Kill"
msgstr "Tuar" msgstr "Tuar"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36 #: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
msgid "Bus error" msgid "Bus error"
msgstr "Error bus" msgstr "Error bus"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37 #: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
msgid "Segmentation violation" msgid "Segmentation violation"
msgstr "Violacion de segmentacion" msgstr "Violacion de segmentacion"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38 #: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
msgid "Bad argument to system call" msgid "Bad argument to system call"
msgstr "Marrit argument d'apèl sistèma" msgstr "Marrit argument d'apèl sistèma"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39 #: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
msgid "Broken pipe" msgid "Broken pipe"
msgstr "Tub copat" msgstr "Tub copat"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40 #: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
msgid "Alarm clock" msgid "Alarm clock"
msgstr "Alarma de relòtge" msgstr "Alarma de relòtge"
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41 #: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
msgid "Termination" msgid "Termination"
msgstr "Senhal de fin" msgstr "Senhal de fin"
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42 #: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
msgid "Urgent condition on socket" msgid "Urgent condition on socket"
msgstr "Condicion urgenta sus socket" msgstr "Condicion urgenta sus socket"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43 #: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
msgid "Stop" msgid "Stop"
msgstr "Arrèst" msgstr "Arrèst"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44 #: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
msgid "Keyboard stop" msgid "Keyboard stop"
msgstr "Arrèst dempuèi lo clavièr" msgstr "Arrèst dempuèi lo clavièr"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45 #: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
msgid "Continue" msgid "Continue"
msgstr "Contunhar" msgstr "Contunhar"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46 #: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
msgid "Child status has changed" msgid "Child status has changed"
msgstr "L'estat del filh a cambiat" msgstr "L'estat del filh a cambiat"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47 #: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
msgid "Background read from tty" msgid "Background read from tty"
msgstr "Lectura sus tty en rèireplan" msgstr "Lectura sus tty en rèireplan"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48 #: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
msgid "Background write to tty" msgid "Background write to tty"
msgstr "Escritura sus tty en rèireplan" msgstr "Escritura sus tty en rèireplan"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49 #: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
msgid "I/O now possible" msgid "I/O now possible"
msgstr "E/S ara possibla" msgstr "E/S ara possibla"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50 #: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
msgid "CPU limit exceeded" msgid "CPU limit exceeded"
msgstr "Limit de temps CPU depassat" msgstr "Limit de temps CPU depassat"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51 #: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
msgid "File size limit exceeded" msgid "File size limit exceeded"
msgstr "Talha de fichièr excessiva" msgstr "Talha de fichièr excessiva"
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52 #: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
msgid "Virtual alarm clock" msgid "Virtual alarm clock"
msgstr "Alarma virtuala" msgstr "Alarma virtuala"
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53 #: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
msgid "Profiling alarm clock" msgid "Profiling alarm clock"
msgstr "Perfil de l'alarma" msgstr "Perfil de l'alarma"
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54 #: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
msgid "Window size change" msgid "Window size change"
msgstr "Redimensionament de la fenèstra" msgstr "Redimensionament de la fenèstra"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55 #: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
msgid "Information request" msgid "Information request"
msgstr "Demanda d'informacion" msgstr "Demanda d'informacion"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56 #: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
msgid "User defined signal 1" msgid "User defined signal 1"
msgstr "Senhal utilizaire 1" msgstr "Senhal utilizaire 1"
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57 #: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
msgid "User defined signal 2" msgid "User defined signal 2"
msgstr "Senhal utilizaire 2" msgstr "Senhal utilizaire 2"

View File

@@ -8,20 +8,19 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop trunk\n" "Project-Id-Version: libgtop trunk\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 05:44+0000\n" "POT-Creation-Date: 2007-09-05 19:11+0400\n"
"PO-Revision-Date: 2021-06-29 10:09+0300\n" "PO-Revision-Date: 2007-09-05 15:01+0200\n"
"Last-Translator: Alexey Rubtsov <rushills@gmail.com>\n" "Last-Translator: Nickolay V. Shmyrev <nshmyrev@yandex.ru>\n"
"Language-Team: Russian <gnome-cyr@gnome.org>\n" "Language-Team: Russian <gnome-cyr@gnome.org>\n"
"Language: ru\n" "Language: ru\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Poedit 3.0\n"
#: lib/read.c:49 #: ../lib/read.c:51
#, c-format #, c-format
msgid "read %d byte" msgid "read %d byte"
msgid_plural "read %d bytes" msgid_plural "read %d bytes"
@@ -29,11 +28,11 @@ msgstr[0] "прочитан %d байт"
msgstr[1] "прочитано %d байта" msgstr[1] "прочитано %d байта"
msgstr[2] "прочитано %d байтов" msgstr[2] "прочитано %d байтов"
#: lib/read_data.c:49 #: ../lib/read_data.c:51
msgid "read data size" msgid "read data size"
msgstr "размер прочитанных данных" msgstr "размер прочитанных данных"
#: lib/read_data.c:66 #: ../lib/read_data.c:70
#, c-format #, c-format
msgid "read %lu byte of data" msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data" msgid_plural "read %lu bytes of data"
@@ -41,7 +40,7 @@ msgstr[0] "прочитан %lu байт данных"
msgstr[1] "прочитано %lu байта данных" msgstr[1] "прочитано %lu байта данных"
msgstr[2] "прочитано %lu байт данных" msgstr[2] "прочитано %lu байт данных"
#: lib/write.c:49 #: ../lib/write.c:51
#, c-format #, c-format
msgid "wrote %d byte" msgid "wrote %d byte"
msgid_plural "wrote %d bytes" msgid_plural "wrote %d bytes"
@@ -49,149 +48,149 @@ msgstr[0] "записан %d байт"
msgstr[1] "записано %d байта" msgstr[1] "записано %d байта"
msgstr[2] "записано %d байт" msgstr[2] "записано %d байт"
#: src/daemon/gnuserv.c:456 #: ../src/daemon/gnuserv.c:458
msgid "Enable debugging" msgid "Enable debugging"
msgstr "Включить отладку" msgstr "Включить отладку"
#: src/daemon/gnuserv.c:458 #: ../src/daemon/gnuserv.c:460
msgid "Enable verbose output" msgid "Enable verbose output"
msgstr "Включить подробный вывод" msgstr "Включить подробный вывод"
#: src/daemon/gnuserv.c:460 #: ../src/daemon/gnuserv.c:462
msgid "Dont fork into background" msgid "Don't fork into background"
msgstr "Не разветвлять в фоновый режим" msgstr "Не разветвлять в фоновый режим"
#: src/daemon/gnuserv.c:462 #: ../src/daemon/gnuserv.c:464
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr "Вызван из inetd" msgstr "Вызван из inetd"
#: src/daemon/gnuserv.c:498 #: ../src/daemon/gnuserv.c:498
#, c-format #, c-format
msgid "Run %s --help to see a full list of available command line options.\n" msgid "Run '%s --help' to see a full list of available command line options.\n"
msgstr "" msgstr ""
"Выполните команду «%s --help», чтобы увидеть полный список доступных опций " "Используйте \"%s --help\", чтобы увидеть полный список допустимых параметров "
"командной строки.\n" "командной строки.\n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27 #: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
msgid "Hangup" msgid "Hangup"
msgstr "Разорвать" msgstr "Разорвать"
#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28 #: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
msgid "Interrupt" msgid "Interrupt"
msgstr "Прервать" msgstr "Прервать"
#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29 #: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
msgid "Quit" msgid "Quit"
msgstr "Выйти" msgstr "Выйти"
#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30 #: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
msgid "Illegal instruction" msgid "Illegal instruction"
msgstr "Недопустимая инструкция" msgstr "Недопустимая инструкция"
#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31 #: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
msgid "Trace trap" msgid "Trace trap"
msgstr "Захват трассировки" msgstr "Захват трассировки"
#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32 #: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
msgid "Abort" msgid "Abort"
msgstr "Прекратить" msgstr "Прекратить"
#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33 #: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
msgid "EMT error" msgid "EMT error"
msgstr "Ошибка EMT" msgstr "Ошибка EMT"
#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34 #: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
msgid "Floating-point exception" msgid "Floating-point exception"
msgstr "Исключение плавающей точки" msgstr "Исключение плавающей точки"
#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35 #: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
msgid "Kill" msgid "Kill"
msgstr "Убить" msgstr "Убить"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36 #: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
msgid "Bus error" msgid "Bus error"
msgstr "Ошибка шины" msgstr "Ошибка шины"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37 #: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
msgid "Segmentation violation" msgid "Segmentation violation"
msgstr "Нарушение сегментации" msgstr "Нарушение сегментации"
#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38 #: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
msgid "Bad argument to system call" msgid "Bad argument to system call"
msgstr "Неверный аргумент в системном вызове" msgstr "Неверный аргумент в системном вызове"
#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39 #: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
msgid "Broken pipe" msgid "Broken pipe"
msgstr "Нарушенный канал" msgstr "Нарушенный канал"
#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40 #: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
msgid "Alarm clock" msgid "Alarm clock"
msgstr "Таймер" msgstr "Таймер"
#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41 #: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
msgid "Termination" msgid "Termination"
msgstr "Завершение" msgstr "Завершение"
#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42 #: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
msgid "Urgent condition on socket" msgid "Urgent condition on socket"
msgstr "Требующие внимания условия сокета" msgstr "Требующие внимания условия сокета"
#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43 #: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
msgid "Stop" msgid "Stop"
msgstr "Остановить" msgstr "Остановить"
#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44 #: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
msgid "Keyboard stop" msgid "Keyboard stop"
msgstr "Останов клавиатуры" msgstr "Останов клавиатуры"
#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45 #: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
msgid "Continue" msgid "Continue"
msgstr "Продолжить" msgstr "Продолжить"
#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46 #: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
msgid "Child status has changed" msgid "Child status has changed"
msgstr "Состояние потомка было изменено" msgstr "Состояние потомка было изменено"
#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47 #: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
msgid "Background read from tty" msgid "Background read from tty"
msgstr "Фоновое чтение из tty" msgstr "Фоновое чтение из tty"
#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48 #: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
msgid "Background write to tty" msgid "Background write to tty"
msgstr "Фоновая запись в tty" msgstr "Фоновая запись в tty"
#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49 #: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
msgid "I/O now possible" msgid "I/O now possible"
msgstr "Сейчас возможен ввод/вывод" msgstr "Сейчас возможен ввод/вывод"
#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50 #: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
msgid "CPU limit exceeded" msgid "CPU limit exceeded"
msgstr "Превышен предел ЦПУ" msgstr "Превышен предел ЦПУ"
#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51 #: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
msgid "File size limit exceeded" msgid "File size limit exceeded"
msgstr "Превышен предел размера файла" msgstr "Превышен предел размера файла"
#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52 #: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
msgid "Virtual alarm clock" msgid "Virtual alarm clock"
msgstr "Виртуальный таймер" msgstr "Виртуальный таймер"
#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53 #: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
msgid "Profiling alarm clock" msgid "Profiling alarm clock"
msgstr "Профилированный таймер" msgstr "Профилированный таймер"
#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54 #: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
msgid "Window size change" msgid "Window size change"
msgstr "Изменение размера окна" msgstr "Изменение размера окна"
#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55 #: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
msgid "Information request" msgid "Information request"
msgstr "Запрос информации" msgstr "Запрос информации"
#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56 #: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
msgid "User defined signal 1" msgid "User defined signal 1"
msgstr "Сигнал пользователя 1" msgstr "Сигнал пользователя 1"
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57 #: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
msgid "User defined signal 2" msgid "User defined signal 2"
msgstr "Сигнал пользователя 2" msgstr "Сигнал пользователя 2"

View File

@@ -2,14 +2,14 @@
# Copyright (C) 2005 Free Software Foundation # Copyright (C) 2005 Free Software Foundation
# This file is distributed under the same license as the libgtop package. # This file is distributed under the same license as the libgtop package.
# Theppitak Karoonboonyanan <thep@linux.thai.net>, 2005-2007. # Theppitak Karoonboonyanan <thep@linux.thai.net>, 2005-2007.
# #
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop 2.11.1\n" "Project-Id-Version: libgtop 2.11.1\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-07 17:11+0000\n" "POT-Creation-Date: 2007-05-18 17:22+0700\n"
"PO-Revision-Date: 2024-03-12 18:00+0700\n" "PO-Revision-Date: 2007-05-18 17:23+0700\n"
"Last-Translator: Theppitak Karoonboonyanan <thep@linux.thai.net>\n" "Last-Translator: Theppitak Karoonboonyanan <thep@linux.thai.net>\n"
"Language-Team: Thai <l10n@opentle.org>\n" "Language-Team: Thai <l10n@opentle.org>\n"
"Language: th\n" "Language: th\n"
@@ -17,50 +17,49 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.4.2\n"
#: lib/read.c:49 #: lib/read.c:51
#, c-format #, c-format
msgid "read %d byte" msgid "read %d byte"
msgid_plural "read %d bytes" msgid_plural "read %d bytes"
msgstr[0] "อ่าน %d ไบต์" msgstr[0] "อ่าน %d ไบต์"
#: lib/read_data.c:49 #: lib/read_data.c:51
msgid "read data size" msgid "read data size"
msgstr "อ่านขนาดข้อมูล" msgstr "อ่านขนาดข้อมูล"
#: lib/read_data.c:66 #: lib/read_data.c:70
#, c-format #, c-format
msgid "read %lu byte of data" msgid "read %lu byte of data"
msgid_plural "read %lu bytes of data" msgid_plural "read %lu bytes of data"
msgstr[0] "อ่านข้อมูล %lu ไบต์" msgstr[0] "อ่านข้อมูล %lu ไบต์"
#: lib/write.c:49 #: lib/write.c:51
#, c-format #, c-format
msgid "wrote %d byte" msgid "wrote %d byte"
msgid_plural "wrote %d bytes" msgid_plural "wrote %d bytes"
msgstr[0] "เขียน %d ไบต์" msgstr[0] "เขียน %d ไบต์"
#: src/daemon/gnuserv.c:456 #: src/daemon/gnuserv.c:458
msgid "Enable debugging" msgid "Enable debugging"
msgstr "เปิดใช้การดีบั๊ก" msgstr "เปิดใช้การดีบั๊ก"
#: src/daemon/gnuserv.c:458 #: src/daemon/gnuserv.c:460
msgid "Enable verbose output" msgid "Enable verbose output"
msgstr "เปิดข้อความเอาต์พุตละเอียด" msgstr "เปิดข้อความเอาต์พุตละเอียด"
#: src/daemon/gnuserv.c:460 #: src/daemon/gnuserv.c:462
msgid "Dont fork into background" msgid "Don't fork into background"
msgstr "ไม่ต้อง fork ไปทำงานเบื้องหลัง" msgstr "ไม่ต้อง fork ไปทำงานเบื้องหลัง"
#: src/daemon/gnuserv.c:462 #: src/daemon/gnuserv.c:464
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr "เรียกจาก inetd" msgstr "เรียกจาก inetd"
#: src/daemon/gnuserv.c:498 #: src/daemon/gnuserv.c:498
#, c-format #, c-format
msgid "Run %s --help to see a full list of available command line options.\n" msgid "Run '%s --help' to see a full list of available command line options.\n"
msgstr "เรียก %s --help เพื่อดูรายการตัวเลือกบรรทัดคำสั่งทั้งหมดที่ใช้ได้\n" msgstr "เรียก '%s --help' เพื่อดูรายการตัวเลือกบรรทัดคำสั่งทั้งหมดที่ใช้ได้\n"
#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27 #: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27
msgid "Hangup" msgid "Hangup"

View File

@@ -1,27 +1,26 @@
# translation of libgtop to Turkish # translation of libgtop to Turkish
# Copyright (C) 2004 Free Software Foundation, Inc. # Copyright (C) 2004 Free Software Foundation, Inc.
# Copyright (C) 2009-2023 libgtop's COPYRIGHT HOLDER
# This file is distributed under the same license as the libgtop package.
#
# Görkem Çetin <gorkem@gelecek.com.tr>, 2001. # Görkem Çetin <gorkem@gelecek.com.tr>, 2001.
# Ömer Fadıl USTA <omer_fad@hotmail.com>,2002. # Ömer Fadıl USTA <omer_fad@hotmail.com>,2002.
# Baris Çicek <baris@teamforce.name.tr>, 2004, 2008. #
# Baris Cicek <baris@teamforce.name.tr>, 2004, 2008.
# Emin Tufan Çetin <etcetin@gmail.com>, 2017. # Emin Tufan Çetin <etcetin@gmail.com>, 2017.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libgtop\n" "Project-Id-Version: libgtop\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n" "Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?"
"POT-Creation-Date: 2023-08-08 10:47+0000\n" "product=libgtop&keywords=I18N+L10N&component=general\n"
"PO-Revision-Date: 2023-10-24 02:11+0300\n" "POT-Creation-Date: 2017-04-07 11:45+0000\n"
"Last-Translator: Sabri Ünal <libreajans@gmail.com>\n" "PO-Revision-Date: 2017-09-05 07:33+0300\n"
"Language-Team: Türkçe <takim@gnome.org.tr>\n" "Last-Translator: Emin Tufan Çetin <etcetin@gmail.com>\n"
"Language-Team: Türkçe <gnome-turk@gnome.org>\n"
"Language: tr\n" "Language: tr\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.4\n" "X-Generator: Gtranslator 2.91.7\n"
#: lib/read.c:49 #: lib/read.c:49
#, c-format #, c-format
@@ -45,24 +44,27 @@ msgid "wrote %d byte"
msgid_plural "wrote %d bytes" msgid_plural "wrote %d bytes"
msgstr[0] "%d bayt yazıldı" msgstr[0] "%d bayt yazıldı"
#: src/daemon/gnuserv.c:460 #: src/daemon/gnuserv.c:456
msgid "Enable debugging" msgid "Enable debugging"
msgstr "Hata ayıklamayı etkinleştir" msgstr "Hata ayıklamayı etkinleştir"
#: src/daemon/gnuserv.c:462 #: src/daemon/gnuserv.c:458
msgid "Enable verbose output" msgid "Enable verbose output"
msgstr "Detaylı çıktıyı etkinleştir" msgstr "Detaylı çıktıyı etkinleştir"
#: src/daemon/gnuserv.c:464 #: src/daemon/gnuserv.c:460
#| msgid "Don't fork into background"
msgid "Dont fork into background" msgid "Dont fork into background"
msgstr "Arka plana çatallama" msgstr "Arka plana çatallama"
#: src/daemon/gnuserv.c:466 #: src/daemon/gnuserv.c:462
msgid "Invoked from inetd" msgid "Invoked from inetd"
msgstr "Inetdden çalıştırıldı" msgstr "Inetdden çalıştırıldı"
#: src/daemon/gnuserv.c:502 #: src/daemon/gnuserv.c:498
#, c-format #, c-format
#| msgid ""
#| "Run '%s --help' to see a full list of available command line options.\n"
msgid "Run “%s --help” to see a full list of available command line options.\n" msgid "Run “%s --help” to see a full list of available command line options.\n"
msgstr "" msgstr ""
"Kullanılabilir tüm komut satırı seçeneklerinin tam listesini görmek için “%s " "Kullanılabilir tüm komut satırı seçeneklerinin tam listesini görmek için “%s "
@@ -106,7 +108,7 @@ msgstr "Öldür"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36 #: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
msgid "Bus error" msgid "Bus error"
msgstr "Veri yolu hatası" msgstr "Veriyolu hatası"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37 #: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
msgid "Segmentation violation" msgid "Segmentation violation"
@@ -191,3 +193,15 @@ msgstr "Kullanıcı tanımlı sinyal 1"
#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57 #: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
msgid "User defined signal 2" msgid "User defined signal 2"
msgstr "Kullanıcı tanımlı sinyal 2" msgstr "Kullanıcı tanımlı sinyal 2"
#~ msgid "DEBUG"
#~ msgstr "HATA AYIKLA"
#~ msgid "VERBOSE"
#~ msgstr "DETAYLI"
#~ msgid "NO-DAEMON"
#~ msgstr "SERVİS-YOK"
#~ msgid "INETD"
#~ msgstr "INETD"

View File

@@ -26,7 +26,7 @@ suid_sysdeps =
suid_common = suid_common =
endif endif
libexec_PROGRAMS = libgtop_daemon2 @server_programs@ bin_PROGRAMS = libgtop_daemon2 @server_programs@
EXTRA_PROGRAMS = libgtop_server2 EXTRA_PROGRAMS = libgtop_server2
@@ -52,5 +52,5 @@ libgtop_server2_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
EXTRA_DIST = server_config.h.in server_config.pl EXTRA_DIST = server_config.h.in server_config.pl
install-exec-hook: install-exec-hook:
-test -n "$(DESTDIR)" || @libgtop_postinstall@ -@libgtop_postinstall@

View File

@@ -392,7 +392,6 @@ handle_internet_request (int ls)
int s; int s;
size_t addrlen = sizeof (struct sockaddr_in); size_t addrlen = sizeof (struct sockaddr_in);
struct sockaddr_in peer; /* for peer socket address */ struct sockaddr_in peer; /* for peer socket address */
char addrstr[addrlen];
pid_t pid; pid_t pid;
memset ((char *) &peer, 0, sizeof (struct sockaddr_in)); memset ((char *) &peer, 0, sizeof (struct sockaddr_in));
@@ -402,24 +401,21 @@ handle_internet_request (int ls)
exit (1); exit (1);
} }
/* TODO: Check errno. */
inet_ntop (AF_INET, &peer, addrstr, addrlen);
if (verbose_output) if (verbose_output)
syslog_message (LOG_INFO, "Connection was made from %s port %u.", syslog_message (LOG_INFO, "Connection was made from %s port %u.",
addrstr, ntohs (peer.sin_port)); inet_ntoa (peer.sin_addr), ntohs (peer.sin_port));
/* Check that access is allowed - if not return crud to the client */ /* Check that access is allowed - if not return crud to the client */
if (!permitted (peer.sin_addr.s_addr, s)) { if (!permitted (peer.sin_addr.s_addr, s)) {
close (s); close (s);
syslog_message (LOG_CRIT, "Refused connection from %s.", syslog_message (LOG_CRIT, "Refused connection from %s.",
addrstr); inet_ntoa (peer.sin_addr));
return; return;
} /* if */ } /* if */
if (verbose_output) if (verbose_output)
syslog_message (LOG_INFO, "Accepted connection from %s port %u.", syslog_message (LOG_INFO, "Accepted connection from %s port %u.",
addrstr, ntohs (peer.sin_port)); inet_ntoa (peer.sin_addr), ntohs (peer.sin_port));
pid = fork (); pid = fork ();
@@ -440,7 +436,7 @@ handle_internet_request (int ls)
if (verbose_output) if (verbose_output)
syslog_message (LOG_INFO, "Closed connection to %s port %u.", syslog_message (LOG_INFO, "Closed connection to %s port %u.",
addrstr, ntohs (peer.sin_port)); inet_ntoa (peer.sin_addr), ntohs (peer.sin_port));
_exit (0); _exit (0);
} /* handle_internet_request */ } /* handle_internet_request */
@@ -564,7 +560,6 @@ main (int argc, char **argv)
if (invoked_from_inetd) { if (invoked_from_inetd) {
size_t addrlen = sizeof (struct sockaddr_in); size_t addrlen = sizeof (struct sockaddr_in);
struct sockaddr_in peer; struct sockaddr_in peer;
char addrstr[addrlen];
memset ((char *) &peer, 0, sizeof (struct sockaddr_in)); memset ((char *) &peer, 0, sizeof (struct sockaddr_in));
@@ -573,18 +568,15 @@ main (int argc, char **argv)
exit (1); exit (1);
} }
/* TODO: Check errno. */
inet_ntop (AF_INET, &peer, addrstr, addrlen);
if (verbose_output) if (verbose_output)
syslog_message (LOG_INFO, "Connection was made from %s port %u.", syslog_message (LOG_INFO, "Connection was made from %s port %u.",
addrstr, ntohs (peer.sin_port)); inet_ntoa (peer.sin_addr), ntohs (peer.sin_port));
/* Check that access is allowed - if not return crud to the client */ /* Check that access is allowed - if not return crud to the client */
if (!permitted (peer.sin_addr.s_addr, 0)) { if (!permitted (peer.sin_addr.s_addr, 0)) {
close (0); close (0);
syslog_message (LOG_CRIT, "Refused connection from %s.", syslog_message (LOG_CRIT, "Refused connection from %s.",
addrstr); inet_ntoa (peer.sin_addr));
exit (1); exit (1);
} }

View File

@@ -27,7 +27,7 @@ void
do_output (int s, glibtop_response *resp, off_t offset, do_output (int s, glibtop_response *resp, off_t offset,
size_t data_size, const void *data) size_t data_size, const void *data)
{ {
glibtop_debug ("Really writing %zu bytes at offset %lu.", glibtop_debug ("Really writing %d bytes at offset %lu.",
sizeof (glibtop_response), offset); sizeof (glibtop_response), offset);
resp->offset = offset; resp->offset = offset;
@@ -42,7 +42,7 @@ do_output (int s, glibtop_response *resp, off_t offset,
} }
if (resp->data_size) { if (resp->data_size) {
glibtop_debug ("Writing %lu bytes of data.", resp->data_size); glibtop_debug ("Writing %d bytes of data.", resp->data_size);
if (s == 0) { if (s == 0) {
if (write (1, data, resp->data_size) < 0) if (write (1, data, resp->data_size) < 0)
@@ -84,7 +84,7 @@ do_read (int s, void *ptr, size_t total_size)
tmp_ptr += nread; tmp_ptr += nread;
ptr = tmp_ptr; ptr = tmp_ptr;
glibtop_debug ("READ (%d): %zu - %zu - %zu", glibtop_debug ("READ (%d): %d - %d - %d",
nread, already_read, remaining, total_size); nread, already_read, remaining, total_size);
} }

View File

@@ -49,7 +49,7 @@ handle_parent_connection (int s)
glibtop_server_features); glibtop_server_features);
if (enable_debug) if (enable_debug)
syslog_message (LOG_DEBUG, "SIZEOF: %zu - %zu - %zu - %zu - %zu - %zu", syslog_message (LOG_DEBUG, "SIZEOF: %u - %u - %u - %u - %u - %u",
sizeof (glibtop_command), sizeof (glibtop_response), sizeof (glibtop_command), sizeof (glibtop_response),
sizeof (glibtop_mountentry), sizeof (glibtop_union), sizeof (glibtop_mountentry), sizeof (glibtop_union),
sizeof (glibtop_sysdeps), sizeof (glibtop_sysdeps),
@@ -58,34 +58,28 @@ handle_parent_connection (int s)
while (do_read (s, cmnd, sizeof (glibtop_command))) { while (do_read (s, cmnd, sizeof (glibtop_command))) {
if (enable_debug) if (enable_debug)
syslog_message (LOG_DEBUG, syslog_message (LOG_DEBUG,
"Parent (%d) received command %lu from client.", "Parent (%d) received command %llu from client.",
getpid (), cmnd->command); getpid (), cmnd->command);
if (cmnd->data_size >= BUFSIZ) {
syslog_message (LOG_WARNING,
"Client sent %llu bytes, but buffer is %lu",
cmnd->data_size, (unsigned long)BUFSIZ);
return;
}
memset (resp, 0, sizeof (glibtop_response)); memset (resp, 0, sizeof (glibtop_response));
memset (parameter, 0, sizeof (parameter)); memset (parameter, 0, sizeof (parameter));
if (cmnd->data_size) { if (cmnd->data_size) {
if (cmnd->data_size >= BUFSIZ) {
syslog_message (LOG_WARNING,
"Client sent %lu bytes, but buffer is %lu",
cmnd->data_size, (unsigned long)BUFSIZ);
return;
}
if (enable_debug) if (enable_debug)
syslog_message (LOG_DEBUG, "Client has %lu bytes of data.", syslog_message (LOG_DEBUG, "Client has %llu bytes of data.",
cmnd->data_size); cmnd->data_size);
do_read (s, parameter, cmnd->data_size); do_read (s, parameter, cmnd->data_size);
} else if (cmnd->size) {
if (cmnd->size >= BUFSIZ) {
syslog_message (LOG_WARNING,
"Client sent %lu bytes, but buffer is %lu",
cmnd->size, (unsigned long)BUFSIZ);
return;
}
} else if (cmnd->size) {
memcpy (parameter, cmnd->parameter, cmnd->size); memcpy (parameter, cmnd->parameter, cmnd->size);
} }
@@ -103,10 +97,6 @@ handle_parent_connection (int s)
glibtop_get_cpu_l (server, &resp->u.data.cpu); glibtop_get_cpu_l (server, &resp->u.data.cpu);
do_output (s, resp, _offset_data (cpu), 0, NULL); do_output (s, resp, _offset_data (cpu), 0, NULL);
break; break;
case GLIBTOP_CMND_DISK:
glibtop_get_disk_l (server, &resp->u.data.disk);
do_output (s, resp, _offset_data (disk), 0, NULL);
break;
case GLIBTOP_CMND_MEM: case GLIBTOP_CMND_MEM:
glibtop_get_mem_l (server, &resp->u.data.mem); glibtop_get_mem_l (server, &resp->u.data.mem);
do_output (s, resp, _offset_data (mem), 0, NULL); do_output (s, resp, _offset_data (mem), 0, NULL);
@@ -227,14 +217,13 @@ handle_parent_connection (int s)
break; break;
case GLIBTOP_CMND_FSUSAGE: case GLIBTOP_CMND_FSUSAGE:
glibtop_get_fsusage_l glibtop_get_fsusage_l
(server, &resp->u.data.fsusage, (char*)parameter); (server, &resp->u.data.fsusage, parameter);
do_output (s, resp, _offset_data (fsusage), do_output (s, resp, _offset_data (fsusage),
0, NULL); 0, NULL);
break; break;
case GLIBTOP_CMND_PROC_IO: case GLIBTOP_CMND_PROC_IO:
memcpy (&pid, parameter, sizeof (pid_t));
glibtop_get_proc_io_l glibtop_get_proc_io_l
(server, &resp->u.data.proc_io, pid); (server, &resp->u.data.proc_io, parameter);
do_output (s, resp, _offset_data (proc_io), do_output (s, resp, _offset_data (proc_io),
0, NULL); 0, NULL);
break; break;
@@ -251,7 +240,7 @@ handle_parent_connection (int s)
0, NULL); 0, NULL);
break; break;
default: default:
syslog_message (LOG_ERR, "Parent received unknown command %lu.", syslog_message (LOG_ERR, "Parent received unknown command %llu.",
cmnd->command); cmnd->command);
break; break;
} }

View File

@@ -63,7 +63,6 @@ main(int argc, char *argv[])
_exit (1); _exit (1);
} }
#else #else
#ifndef __linux__
if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) || if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) ||
strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) || strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) ||
strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) { strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) {
@@ -75,7 +74,6 @@ main(int argc, char *argv[])
fprintf (stderr, "you should recompile libgtop and dependent " fprintf (stderr, "you should recompile libgtop and dependent "
"applications.\n"); "applications.\n");
} }
#endif
#endif #endif
glibtop_machine_new (glibtop_global_server); glibtop_machine_new (glibtop_global_server);

View File

@@ -42,28 +42,24 @@ handle_slave_connection (int input, int output)
while (do_read (input, cmnd, sizeof (glibtop_command))) { while (do_read (input, cmnd, sizeof (glibtop_command))) {
glibtop_debug ("Slave %d received command " glibtop_debug ("Slave %d received command "
"%lu from client.", getpid (), cmnd->command); "%llu from client.", getpid (), cmnd->command);
if (cmnd->data_size >= BUFSIZ)
glibtop_error ("Client sent %llu bytes, "
"but buffer is %lu",
cmnd->size, (unsigned long)BUFSIZ);
memset (resp, 0, sizeof (glibtop_response)); memset (resp, 0, sizeof (glibtop_response));
memset (parameter, 0, sizeof (parameter)); memset (parameter, 0, sizeof (parameter));
if (cmnd->data_size) { if (cmnd->data_size) {
if (cmnd->data_size >= BUFSIZ) glibtop_debug ("Client has %llu bytes of data.",
glibtop_error ("Client sent %lu bytes, "
"but buffer is %lu",
cmnd->data_size, (unsigned long)BUFSIZ);
glibtop_debug ("Client has %lu bytes of data.",
cmnd->data_size); cmnd->data_size);
do_read (input, parameter, cmnd->data_size); do_read (input, parameter, cmnd->data_size);
} else if (cmnd->size) {
if (cmnd->size >= BUFSIZ)
glibtop_error ("Client sent %lu bytes, "
"but buffer is %lu",
cmnd->size, (unsigned long)BUFSIZ);
} else if (cmnd->size) {
memcpy (parameter, cmnd->parameter, cmnd->size); memcpy (parameter, cmnd->parameter, cmnd->size);
} }
@@ -139,12 +135,6 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
resp->offset = _offset_data (cpu); resp->offset = _offset_data (cpu);
break; break;
#endif #endif
#if GLIBTOP_SUID_DISK
case GLIBTOP_CMND_DISK:
glibtop_get_disk_p (server, &resp->u.data.disk);
resp->offset = _offset_data (disk);
break;
#endif
#if GLIBTOP_SUID_MEM #if GLIBTOP_SUID_MEM
case GLIBTOP_CMND_MEM: case GLIBTOP_CMND_MEM:
glibtop_get_mem_p (server, &resp->u.data.mem); glibtop_get_mem_p (server, &resp->u.data.mem);
@@ -265,7 +255,7 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
break; break;
#endif #endif
default: default:
glibtop_error ("Child received unknown command %lu", glibtop_error ("Child received unknown command %llu",
cmnd->command); cmnd->command);
break; break;
} }

View File

@@ -5,9 +5,9 @@ noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_2_0_la_SOURCES = siglist.c nosuid.c mem.c swap.c uptime.c \ libgtop_sysdeps_2_0_la_SOURCES = siglist.c nosuid.c mem.c swap.c uptime.c \
procargs.c prockernel.c proclist.c procmap.c \ procargs.c prockernel.c proclist.c procmap.c \
procmem.c procsegment.c procsignal.c disk.c \ procmem.c procsegment.c procsignal.c \
proctime.c procuid.c procmem.c utils.c \ proctime.c procuid.c procmem.c utils.c \
procstate.c sysinfo.c netlist.c procio.c procstate.c sysinfo.c netlist.c
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO) libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -25,7 +25,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU) #define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM 0 #define GLIBTOP_SUID_MEM 0
#define GLIBTOP_SUID_SWAP 0 #define GLIBTOP_SUID_SWAP 0
#define GLIBTOP_SUID_UPTIME 0 #define GLIBTOP_SUID_UPTIME 0
@@ -46,8 +45,6 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD) #define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
#define GLIBTOP_SUID_NETLIST 0 #define GLIBTOP_SUID_NETLIST 0
#define GLIBTOP_SUID_PPP 0 #define GLIBTOP_SUID_PPP 0
#define GLIBTOP_SUID_PROC_OPEN_FILES 0
#define GLIBTOP_SUID_PROC_IO 0
G_END_DECLS G_END_DECLS

View File

@@ -1,43 +0,0 @@
/* Copyright (C) 2017 Robert Roth
This file is part of LibGTop.
Contributed by Robert Roth <robert.roth.off@gmail.com>, February 2017.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/procio.h>
static const unsigned long _glibtop_sysdeps_proc_io = 0;
/* Init function. */
void
_glibtop_init_proc_io_s (glibtop *server)
{
server->sysdeps.proc_io = _glibtop_sysdeps_proc_io;
}
/* Provides detailed information about a process. */
void
glibtop_get_proc_io_s (glibtop *server, glibtop_proc_io *buf,
pid_t pid)
{
memset (buf, 0, sizeof (glibtop_proc_io));
}

View File

@@ -10,7 +10,7 @@ libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_2_0_la_LIBADD = $(KVM_LIBS) libgtop_sysdeps_suid_2_0_la_LIBADD = $(KVM_LIBS)
libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \ libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \ uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c disk.c procaffinity.c procio.c \ sem_limits.c procaffinity.c \
proclist.c procstate.c procuid.c \ proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \ proctime.c procmem.c procsignal.c prockernel.c \
procsegment.c procargs.c procmap.c netlist.c \ procsegment.c procargs.c procmap.c netlist.c \

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -25,7 +25,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU) #define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM) #define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
#define GLIBTOP_SUID_SWAP (1 << GLIBTOP_SYSDEPS_SWAP) #define GLIBTOP_SUID_SWAP (1 << GLIBTOP_SYSDEPS_SWAP)
#define GLIBTOP_SUID_UPTIME (1 << GLIBTOP_SYSDEPS_UPTIME) #define GLIBTOP_SUID_UPTIME (1 << GLIBTOP_SYSDEPS_UPTIME)
@@ -48,8 +47,6 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP) #define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
#define GLIBTOP_SUID_PROC_WD 0 #define GLIBTOP_SUID_PROC_WD 0
#define GLIBTOP_SUID_PROC_AFFINITY 0 #define GLIBTOP_SUID_PROC_AFFINITY 0
#define GLIBTOP_SUID_PROC_OPEN_FILES 0
#define GLIBTOP_SUID_PROC_IO 0
G_END_DECLS G_END_DECLS

View File

@@ -1,43 +0,0 @@
/* Copyright (C) 2017 Robert Roth
This file is part of LibGTop.
Contributed by Robert Roth <robert.roth.off@gmail.com>, February 2017.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/procio.h>
static const unsigned long _glibtop_sysdeps_proc_io = 0;
/* Init function. */
void
_glibtop_init_proc_io_s (glibtop *server)
{
server->sysdeps.proc_io = _glibtop_sysdeps_proc_io;
}
/* Provides detailed information about a process. */
void
glibtop_get_proc_io_s (glibtop *server, glibtop_proc_io *buf,
pid_t pid)
{
memset (buf, 0, sizeof (glibtop_proc_io));
}

View File

@@ -64,20 +64,6 @@ glibtop_get_cpu(glibtop_cpu *buf)
} }
/**
* glibtop_get_disk:
* @buf: A location to return the disk usage.
*
* Get the DISK usage.
*
*/
void
glibtop_get_disk (glibtop_disk *buf)
{
glibtop_get_disk_l (glibtop_global_server, buf);
}
/** /**
* glibtop_get_fsusage: * glibtop_get_fsusage:
* @buf: A location to return the file system usage. * @buf: A location to return the file system usage.

View File

@@ -202,20 +202,16 @@ connect_to_unix_server (void)
long long
glibtop_internet_addr (const char *host) glibtop_internet_addr (const char *host)
{ {
/* specify IPv4 and TCP */ struct hostent *hp; /* pointer to host info for remote host */
struct addrinfo hints = { AF_INET, SOCK_STREAM, };
struct addrinfo *result;/* pointer to host info for remote host */
IN_ADDR numeric_addr; /* host address */ IN_ADDR numeric_addr; /* host address */
if (getaddrinfo (NULL, host, &hints, &result) == 0) { numeric_addr = inet_addr (host);
/* Take only the first address. */ if (!NUMERIC_ADDR_ERROR)
struct sockaddr_in *res = (struct sockaddr_in *)result->ai_addr;
numeric_addr = res->sin_addr.s_addr;
freeaddrinfo (result);
return numeric_addr; return numeric_addr;
} else if ((hp = gethostbyname (host)) != NULL)
return ((struct in_addr *) (hp->h_addr))->s_addr;
else { else {
glibtop_warn_io ("getaddrinfo (%s)", host); glibtop_warn_io ("gethostbyname (%s)", host);
return -1; return -1;
} }

View File

@@ -30,9 +30,6 @@ const _glibtop_init_func_t _glibtop_init_hook_p [] = {
#if GLIBTOP_SUID_CPU #if GLIBTOP_SUID_CPU
_glibtop_init_cpu_p, _glibtop_init_cpu_p,
#endif #endif
#if GLIBTOP_SUID_DISK
_glibtop_init_disk_p,
#endif
#if GLIBTOP_SUID_MEM #if GLIBTOP_SUID_MEM
_glibtop_init_mem_p, _glibtop_init_mem_p,
#endif #endif

View File

@@ -2,7 +2,7 @@ AM_CPPFLAGS = @AM_CPPFLAGS@
noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c cpu.c disk.c mem.c swap.c \ libgtop_sysdeps_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
uptime.c loadavg.c mountlist.c shm_limits.c msg_limits.c \ uptime.c loadavg.c mountlist.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \ sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \ proctime.c procmem.c procsignal.c prockernel.c \

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -23,7 +23,6 @@
#define __CYGWIN__GLIBTOP_SERVER_H__ #define __CYGWIN__GLIBTOP_SERVER_H__
#define GLIBTOP_SUID_CPU 0 #define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM 0 #define GLIBTOP_SUID_MEM 0
#define GLIBTOP_SUID_SWAP 0 #define GLIBTOP_SUID_SWAP 0
#define GLIBTOP_SUID_UPTIME 0 #define GLIBTOP_SUID_UPTIME 0
@@ -46,6 +45,6 @@
#define GLIBTOP_SUID_PROC_AFFINITY 0 #define GLIBTOP_SUID_PROC_AFFINITY 0
#define GLIBTOP_SUID_PROC_WD 0 #define GLIBTOP_SUID_PROC_WD 0
#define GLIBTOP_SUID_PPP 0 #define GLIBTOP_SUID_PPP 0
#define GLIBTOP_SUID_PROC_OPEN_FILES 0 #define GLIBTOP_SUID_PROC_OPEN_FILES 0
#endif /* __CYGWIN__GLIBTOP_SERVER_H__ */ #endif /* __CYGWIN__GLIBTOP_SERVER_H__ */

View File

@@ -4,7 +4,7 @@ noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c sysinfo.c libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c sysinfo.c
libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c disk.c \ libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c \
cpu.c mem.c swap.c uptime.c loadavg.c shm_limits.c msg_limits.c \ cpu.c mem.c swap.c uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c procaffinity.c proclist.c procstate.c procuid.c proctime.c \ sem_limits.c procaffinity.c proclist.c procstate.c procuid.c proctime.c \
procmem.c procsignal.c prockernel.c procsegment.c procargs.c \ procmem.c procsignal.c prockernel.c procsegment.c procargs.c \

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -23,7 +23,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU) #define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM) #define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
#define GLIBTOP_SUID_SWAP (1 << GLIBTOP_SYSDEPS_SWAP) #define GLIBTOP_SUID_SWAP (1 << GLIBTOP_SYSDEPS_SWAP)
#define GLIBTOP_SUID_UPTIME (1 << GLIBTOP_SYSDEPS_UPTIME) #define GLIBTOP_SUID_UPTIME (1 << GLIBTOP_SYSDEPS_UPTIME)

View File

@@ -5,7 +5,7 @@ noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c sysinfo.c shm_limits.c \ libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c sysinfo.c shm_limits.c \
cpu.c msg_limits.c sem_limits.c loadavg.c \ cpu.c msg_limits.c sem_limits.c loadavg.c \
uptime.c netlist.c fsusage.c mem.c disk.c \ uptime.c netlist.c fsusage.c mem.c \
mountlist.c procopenfiles.c procwd.c \ mountlist.c procopenfiles.c procwd.c \
procaffinity.c glibtop_private.c open.c procaffinity.c glibtop_private.c open.c

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -38,7 +38,6 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD) #define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP) #define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
#define GLIBTOP_SUID_CPU 0 #define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM 0 #define GLIBTOP_SUID_MEM 0
#define GLIBTOP_SUID_UPTIME 0 #define GLIBTOP_SUID_UPTIME 0
#define GLIBTOP_SUID_LOADAVG 0 #define GLIBTOP_SUID_LOADAVG 0
@@ -48,7 +47,7 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_NETLIST 0 #define GLIBTOP_SUID_NETLIST 0
#define GLIBTOP_SUID_PROC_WD 0 #define GLIBTOP_SUID_PROC_WD 0
#define GLIBTOP_SUID_PROC_AFFINITY 0 #define GLIBTOP_SUID_PROC_AFFINITY 0
#define GLIBTOP_SUID_PROC_IO (1 << GLIBTOP_SYSDEPS_PROC_IO) #define GLIBTOP_SUID_PROC_IO (1 << GLIBTOP_SYSDEPS_PROC_IO)
#define GLIBTOP_SUID_PROC_OPEN_FILES 0 #define GLIBTOP_SUID_PROC_OPEN_FILES 0
G_END_DECLS G_END_DECLS

View File

@@ -4,7 +4,7 @@ noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
EXTRA_DIST = procmap_smaps.gperf procmap_smaps.c EXTRA_DIST = procmap_smaps.gperf procmap_smaps.c
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c cpu.c disk.c mem.c swap.c \ libgtop_sysdeps_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \ uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \ sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \ proctime.c procmem.c procsignal.c prockernel.c \

View File

@@ -1,284 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop/error.h>
#include <glibtop/disk.h>
#include "glibtop_private.h"
static const unsigned long _glibtop_sysdeps_disk =
(1L << GLIBTOP_XDISK_SECTORS_READ) + (1L << GLIBTOP_XDISK_TIME_READ) +
(1L << GLIBTOP_XDISK_SECTORS_WRITE) + (1L << GLIBTOP_XDISK_TIME_WRITE);
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
// Linux kernel reports sectors by 512 bytes even for AF 4kn //
#define FILENAME "/proc/diskstats"
#define CMD_PIPE "lsblk --output NAME,TYPE -i -n | sed 's/`-//'|sed 's/|-//'|sed 's/|//'| sed -e 's/^[ \t]*//'|tr -s ' '"
#define STAT_BUFSIZ 81920
// Handle LVM and RAID //
static void
find_primary_part (partition_info *primary_part, const char *m)
{
int n = 0, tlvl = 0;
char name[256]="", type[256]="";
primary_part->max = 0;
//scan by tree level
//0 = disk (to lvl 0)
//0 = disk, 1 = part (to lvl 1)
//0 = disk, 1 = part, 2 = lvm or raid (to lvl 2)
//0 = disk, 1 = part, 2 = raid, 3 = lvm (to lvl 3)
while (sscanf(m, "%s %s", name, type) == 2)
{
if (tlvl == 0) {
if (strcmp (type, "loop") == 0 || strcmp (type, "rom") == 0 || strcmp (type, "disk") == 0) {
primary_part->max++;
}
else if ((strcmp (type, "part") == 0)){
tlvl = 1;
}
}
else if(tlvl == 1){
if (strcmp (type, "loop") == 0 || strcmp (type, "rom") == 0 || strcmp (type, "disk") == 0) {
n--;
tlvl = 0;
primary_part->max++;
}
else if ((strcmp (type, "part") == 0)) {
n--;
}
else if ((strcmp (type, "lvm") == 0) || (strncmp (type, "raid", 4) == 0)) {
tlvl = 2;
primary_part->max++;
}
}
else if( tlvl == 2){
if (strcmp (type, "loop") == 0 || strcmp (type, "rom") == 0 || strcmp(type, "disk") == 0) {
n--;
tlvl = 0;
primary_part->max++;
}
else if (((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "lvm") == 0)) ||
((strcmp (primary_part[n-1].type, "raid") == 0) && (strncmp (type, "raid", 4) == 0))) {
n--;
}
else if (((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "part") == 0)) ||
((strcmp (primary_part[n-1].type, "raid") == 0) && (strcmp (type, "part") == 0))) {
n--;
tlvl = 1;
}
else if ((strcmp (primary_part[n-1].type, "raid") == 0) && (strcmp (type, "lvm") == 0)){
tlvl = 3;
primary_part->max++;
}
}
else if (tlvl == 3) {
if (strcmp (type, "loop") == 0 || strcmp (type, "rom") == 0 || strcmp (type, "disk") == 0) {
n--;
tlvl = 0;
primary_part->max++;
}
else if ((strcmp (type, "lvm") == 0)) {
n--;
}
else if ((strncmp (type, "raid", 4) == 0)) {
n--;
tlvl = 2;
}
else if ((strcmp (type, "part") == 0)) {
n--;
tlvl = 1;
}
}
strcpy (primary_part[n].name, name);
strncpy (primary_part[n].type, type, 4);
if (strcmp (primary_part[n].type, "raid") == 0) {
strcpy (primary_part[n].raid_num, type + 4);
}
m = skip_line (m);
n++;
}
}
static int
is_virtual_drive (partition_info *primary_part, const char *p)
{
int i;
char name[256];
int test = 1;
sscanf (p, "%s", name);
if (*p) {
for (i=0; i < primary_part->max; i++) {
if (strcmp (primary_part[i].name, name) == 0) {
test = 0;
break;
}
}
}
else {
test = 0;
}
return test;
}
static int
max_lines (const char *p)
{
char temp[10];
int count = 0;
while (sscanf (p, "%s", temp) == 1)
{
p = skip_line(p);
count++;
}
return count;
}
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
partition_info primary_part[GLIBTOP_NDISK];
char buffer [STAT_BUFSIZ], *p, map_buffer [STAT_BUFSIZ], *m;
int i;
memset (buf, 0, sizeof (glibtop_disk));
file_to_buffer (server, buffer, sizeof buffer, FILENAME);
get_from_pipe (map_buffer, STAT_BUFSIZ, CMD_PIPE);
/*
* GLOBAL
*/
p = buffer; /* "disk" */
m = map_buffer;
/*
* PER DISK
*/
server->ndisk = max_lines(p);
find_primary_part (primary_part, m);
for (i = 0; i < server->ndisk; i++) {
p = skip_multiple_token (p,2);
// skip if disk is the raw device
if (!is_virtual_drive (primary_part, p)) {
server->ndisk--;
p = skip_line (p); /* move to ^ */
p = skip_multiple_token (p, 2);
}
p = skip_token (p); /* prev xdisk_name */
p = skip_token (p); /* prev xdisk_reads_completed */
p = skip_token (p); /* prev xdisk_reads_merged */
buf->xdisk_sectors_read [i] = strtoull (p, &p, 0);
buf->xdisk_time_read [i] = strtoull (p, &p, 0);
p = skip_token (p); /* prev xdisk_writes_completed */
p = skip_token (p); /* prev xdisk_writes_merged */
buf->xdisk_sectors_write [i] = strtoull (p, &p, 0);
buf->xdisk_time_write [i] = strtoull (p, &p, 0);
p = skip_line (p); /* move to ^ */
}
}

View File

@@ -57,21 +57,6 @@ skip_token (const char *p)
} }
void
get_from_pipe (char *buffer, const size_t bufsiz, const char *cmd)
{
FILE* fp;
fp = popen (cmd, "r");
size_t psize = fread(buffer,1,bufsiz,fp);
if (psize == bufsiz)
g_warning("Read bufsiz bytes, there may be more");
pclose (fp);
}
/* /*
* Read functions * Read functions
*/ */

View File

@@ -61,9 +61,6 @@ skip_line (const char *p)
return (char *) (*p ? p+1 : p); return (char *) (*p ? p+1 : p);
} }
void
get_from_pipe (char *buffer, const size_t bufsiz, const char *cmd);
/* /*
* Smart strtoul which handles binary suffixes * Smart strtoul which handles binary suffixes
* e.g: get_scaled("Size: 32 kB", "Size:") == 32768 * e.g: get_scaled("Size: 32 kB", "Size:") == 32768

View File

@@ -23,7 +23,6 @@
#define __LINUX__GLIBTOP_SERVER_H__ #define __LINUX__GLIBTOP_SERVER_H__
#define GLIBTOP_SUID_CPU 0 #define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM 0 #define GLIBTOP_SUID_MEM 0
#define GLIBTOP_SUID_SWAP 0 #define GLIBTOP_SUID_SWAP 0
#define GLIBTOP_SUID_UPTIME 0 #define GLIBTOP_SUID_UPTIME 0
@@ -47,6 +46,6 @@
#define GLIBTOP_SUID_PROC_AFFINITY 0 #define GLIBTOP_SUID_PROC_AFFINITY 0
#define GLIBTOP_SUID_PPP 0 #define GLIBTOP_SUID_PPP 0
#define GLIBTOP_SUID_PROC_OPEN_FILES 0 #define GLIBTOP_SUID_PROC_OPEN_FILES 0
#define GLIBTOP_SUID_PROC_IO 0 #define GLIBTOP_SUID_PROC_IO 0
#endif /* __LINUX__GLIBTOP_SERVER_H__ */ #endif /* __LINUX__GLIBTOP_SERVER_H__ */

View File

@@ -40,8 +40,7 @@ End:
typedef struct typedef struct
{ {
GHashTable *table_fstype; GHashTable *table;
GHashTable *table_mntdir;
} IgnoreList; } IgnoreList;
@@ -50,8 +49,7 @@ ignore_list_new(void)
{ {
IgnoreList* ig; IgnoreList* ig;
ig = g_new(IgnoreList, 1); ig = g_new(IgnoreList, 1);
ig->table_fstype = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); ig->table = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
ig->table_mntdir = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
return ig; return ig;
} }
@@ -60,38 +58,24 @@ static void
ignore_list_delete(IgnoreList* ig) ignore_list_delete(IgnoreList* ig)
{ {
if (ig) { if (ig) {
g_hash_table_destroy(ig->table_fstype); g_hash_table_destroy(ig->table);
g_hash_table_destroy(ig->table_mntdir);
g_free(ig); g_free(ig);
} }
} }
static void static void
ignore_list_add_fstype(IgnoreList* ig, const char* fstype) ignore_list_add(IgnoreList* ig, const char* fs)
{ {
g_hash_table_insert(ig->table_fstype, g_strdup(fstype), GINT_TO_POINTER(1)); g_hash_table_insert(ig->table, g_strdup(fs), GINT_TO_POINTER(1));
} }
static void
ignore_list_add_mntdir(IgnoreList* ig, const char* mntdir)
{
g_hash_table_insert(ig->table_mntdir, g_strdup(mntdir), GINT_TO_POINTER(1));
}
static gboolean static gboolean
ignore_list_has_fstype(IgnoreList* ig, const char* fstype) ignore_list_has(IgnoreList* ig, const char* fs)
{ {
gpointer data; gpointer data;
data = g_hash_table_lookup(ig->table_fstype, fstype); data = g_hash_table_lookup(ig->table, fs);
return data != NULL;
}
static gboolean
ignore_list_has_mntdir(IgnoreList* ig, const char* mntdir)
{
gpointer data;
data = g_hash_table_lookup(ig->table_mntdir, mntdir);
return data != NULL; return data != NULL;
} }
@@ -100,7 +84,7 @@ ignore_list_has_mntdir(IgnoreList* ig, const char* mntdir)
static gboolean static gboolean
ignore_fs(const char *mntdir, const char *fstype, IgnoreList** ig) ignore_fs(const char *fstype, IgnoreList** ig)
{ {
if (!*ig) { if (!*ig) {
FILE* fs; FILE* fs;
@@ -108,43 +92,24 @@ ignore_fs(const char *mntdir, const char *fstype, IgnoreList** ig)
*ig = ignore_list_new(); *ig = ignore_list_new();
ignore_list_add_fstype(*ig, "none"); ignore_list_add(*ig, "none");
if ((fs = fopen("/proc/filesystems", "r")) != NULL) { if ((fs = fopen("/proc/filesystems", "r")) != NULL) {
while (fgets(line, sizeof line, fs)) { while (fgets(line, sizeof line, fs)) {
if (!strncmp(line, "nodev", 5) && strncmp(line+strlen(line)-4, "zfs", 3)) { if (!strncmp(line, "nodev", 5)) {
char *type; char *type;
type = g_strstrip(line + 5); type = g_strstrip(line + 5);
ignore_list_add_fstype(*ig, type); ignore_list_add(*ig, type);
} }
} }
fclose(fs); fclose(fs);
} }
if ((fs = fopen("/run/mount/utab", "r")) != NULL) {
size_t len = 0;
char *uline = NULL;
while (getline(&uline, &len, fs) != -1) {
if (strstr(uline, "x-gdu.hide")) {
char * pch = strtok (uline, " ");
while (pch != NULL) {
if (!strncmp(pch, "TARGET=", 7)) {
ignore_list_add_mntdir(*ig, pch+7);
}
pch = strtok (NULL, " ");
}
}
}
free(uline);
fclose(fs);
}
} }
return ignore_list_has_fstype(*ig, fstype) || ignore_list_has_mntdir(*ig, mntdir); return ignore_list_has(*ig, fstype);
} }
glibtop_mountentry * glibtop_mountentry *
glibtop_get_mountlist_s(glibtop *server, glibtop_mountlist *buf, int all_fs) glibtop_get_mountlist_s(glibtop *server, glibtop_mountlist *buf, int all_fs)
{ {
@@ -171,7 +136,7 @@ glibtop_get_mountlist_s(glibtop *server, glibtop_mountlist *buf, int all_fs)
const char *devopt; const char *devopt;
gsize len; gsize len;
if (!all_fs && ignore_fs(mnt->mnt_dir, mnt->mnt_type, &ig)) if (!all_fs && ignore_fs(mnt->mnt_type, &ig))
continue; continue;
len = entries->len; len = entries->len;

View File

@@ -33,39 +33,6 @@ static const unsigned long _glibtop_sysdeps_sysinfo =
static glibtop_sysinfo sysinfo = { .flags = 0 }; static glibtop_sysinfo sysinfo = { .flags = 0 };
/* Lookup table for CPU part decoding */
static const struct {
unsigned int part;
const char *model;
} cpu_part_lookup[] = {
{ 0xd0b, "Cortex-A78" },
{ 0xd0c, "Cortex-X1" },
{ 0xd40, "Neoverse-N1" },
{ 0xd41, "Cortex-A78AE" },
{ 0xd42, "Cortex-A710" },
{ 0xd44, "Cortex-X2" },
{ 0xd4a, "Neoverse-V1" },
{ 0xd4b, "Neoverse-N2" },
{ 0xd4c, "Cortex-A715" },
{ 0xd4d, "Cortex-X3" },
{ 0xd49, "Cortex-A520" },
{ 0xd4e, "Cortex-A720" },
{ 0xd4f, "Cortex-X4" },
{ 0xd08, "Cortex-A55" },
{ 0x0000, "Unknown" } // Default fallback
};
/* Function to decode CPU part */
const char *decode_cpu_part(unsigned int part) {
for (int i = 0; cpu_part_lookup[i].part != 0x0000; i++) {
if (cpu_part_lookup[i].part == part) {
return cpu_part_lookup[i].model;
}
}
return "Unknown";
}
static void static void
init_sysinfo (glibtop *server) init_sysinfo (glibtop *server)
{ {
@@ -110,9 +77,6 @@ init_sysinfo (glibtop *server)
/* "<key> : <value>" */ /* "<key> : <value>" */
parts = g_strsplit_set(*this_proc, ":\n", 0); parts = g_strsplit_set(*this_proc, ":\n", 0);
unsigned int cpu_part = 0;
gboolean has_model = FALSE;
for(p = parts; *p && *(p+1); p += 2) { for(p = parts; *p && *(p+1); p += 2) {
/* stole the allocated memory */ /* stole the allocated memory */
@@ -121,27 +85,15 @@ init_sysinfo (glibtop *server)
g_ptr_array_add(cpuinfo->labels, key); g_ptr_array_add(cpuinfo->labels, key);
g_hash_table_insert(cpuinfo->values, key, value); g_hash_table_insert(cpuinfo->values, key, value);
/* Extract CPU part */
if (g_strcmp0(key, "CPU part") == 0) {
cpu_part = strtoul(value, NULL, 16);
}
if (g_strcmp0(key, "model name") == 0) {
has_model = TRUE;
}
} }
/* If model name is missing, add it */
if (!has_model && cpu_part != 0) {
const char *decoded_model = decode_cpu_part(cpu_part);
g_hash_table_insert(cpuinfo->values, g_strdup("model name"), g_strdup(decoded_model));
}
/* the last key has no value and has not been added */ /* the last key has no value and has not been added */
if(*p) g_free(*p); if(*p) g_free(*p);
/* just g_free instead of g_strvfree because we stole /* just g_free instead of g_strvfree because we stole
the memory*/ the memory*/
g_free(parts); g_free(parts);
sysinfo.ncpu++; sysinfo.ncpu++;

View File

@@ -3,7 +3,7 @@ AM_CPPFLAGS = @AM_CPPFLAGS@
noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c sysinfo.c \ libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c sysinfo.c \
cpu.c loadavg.c disk.c \ cpu.c loadavg.c \
uptime.c netlist.c fsusage.c mem.c \ uptime.c netlist.c fsusage.c mem.c \
mountlist.c procopenfiles.c procwd.c \ mountlist.c procopenfiles.c procwd.c \
procaffinity.c glibtop_private.c open.c procaffinity.c glibtop_private.c open.c
@@ -15,7 +15,7 @@ libgtop_sysdeps_suid_2_0_la_SOURCES = suid_open.c close.c swap.c \
proclist.c procstate.c procuid.c \ proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c \ proctime.c procmem.c procsignal.c \
prockernel.c procsegment.c procargs.c \ prockernel.c procsegment.c procargs.c \
procmap.c netload.c ppp.c procio.c procmap.c netload.c ppp.c
# TODO should be made nosuid like FreeBSD # TODO should be made nosuid like FreeBSD
libgtop_sysdeps_suid_2_0_la_SOURCES += shm_limits.c msg_limits.c sem_limits.c libgtop_sysdeps_suid_2_0_la_SOURCES += shm_limits.c msg_limits.c sem_limits.c

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -41,15 +41,12 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD) #define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP) #define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
#define GLIBTOP_SUID_CPU 0 #define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM 0 #define GLIBTOP_SUID_MEM 0
#define GLIBTOP_SUID_UPTIME 0 #define GLIBTOP_SUID_UPTIME 0
#define GLIBTOP_SUID_LOADAVG 0 #define GLIBTOP_SUID_LOADAVG 0
#define GLIBTOP_SUID_NETLIST 0 #define GLIBTOP_SUID_NETLIST 0
#define GLIBTOP_SUID_PROC_WD 0 #define GLIBTOP_SUID_PROC_WD 0
#define GLIBTOP_SUID_PROC_AFFINITY 0 #define GLIBTOP_SUID_PROC_AFFINITY 0
#define GLIBTOP_SUID_PROC_IO 0
#define GLIBTOP_SUID_PROC_OPEN_FILES 0
G_END_DECLS G_END_DECLS

View File

@@ -47,34 +47,28 @@ static const unsigned long _glibtop_sysdeps_msg_limits =
* since `msginfo' is already declared external in <sys/msg.h>. */ * since `msginfo' is already declared external in <sys/msg.h>. */
static struct msginfo _msginfo; static struct msginfo _msginfo;
/* nlist structure for kernel access */
static struct nlist nlst [] = {
{ "_msginfo" },
{ 0 }
};
/* Init function. */ /* Init function. */
void void
_glibtop_init_msg_limits_p (glibtop *server) _glibtop_init_msg_limits_p (glibtop *server)
{ {
int mib[3]; if (kvm_nlist (server->machine->kd, nlst) < 0) {
struct msg_sysctl_info *msgsi; glibtop_warn_io_r (server, "kvm_nlist (msg_limits)");
size_t len = sizeof(struct msginfo);
mib[0] = CTL_KERN;
mib[1] = KERN_SYSVIPC_INFO;
mib[2] = KERN_SYSVIPC_MSG_INFO;
if ((msgsi = malloc(len)) == NULL) {
glibtop_warn_io_r (server, "malloc (msg_limits)");
return; return;
} }
if (sysctl(mib, 3, msgsi, &len, NULL, 0) < 0) { if (kvm_read (server->machine->kd, nlst [0].n_value,
glibtop_warn_io_r (server, "sysctl (msg_limits)"); &_msginfo, sizeof (_msginfo)) != sizeof (_msginfo)) {
glibtop_warn_io_r (server, "kvm_read (msginfo)");
return; return;
} }
_msginfo = msgsi->msginfo;
free (msgsi);
server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits; server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
} }

View File

@@ -34,16 +34,12 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <netinet/in.h>
#include <sys/malloc.h>
#define _KERNEL
#include <net/if_var.h> #include <net/if_var.h>
#include <netinet/in.h>
#define _KERNEL
#include <netinet/in_var.h> #include <netinet/in_var.h>
#undef _KERNEL #undef _KERNEL
#include <netinet6/in6_var.h> #include <netinet6/in6_var.h>
static const unsigned long _glibtop_sysdeps_netload = static const unsigned long _glibtop_sysdeps_netload =
@@ -78,7 +74,7 @@ _glibtop_init_netload_p (glibtop *server)
server->sysdeps.netload = _glibtop_sysdeps_netload; server->sysdeps.netload = _glibtop_sysdeps_netload;
if (kvm_nlist (server->machine->kd, nlst) < 0) if (kvm_nlist (server->machine->kd, nlst) < 0)
glibtop_warn_io_r (server, "kvm_nlist"); glibtop_error_io_r (server, "kvm_nlist");
} }
/* Provides Network statistics. */ /* Provides Network statistics. */
@@ -103,7 +99,7 @@ glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
if (kvm_read (server->machine->kd, nlst [0].n_value, if (kvm_read (server->machine->kd, nlst [0].n_value,
&ifnetaddr, sizeof (ifnetaddr)) != sizeof (ifnetaddr)) &ifnetaddr, sizeof (ifnetaddr)) != sizeof (ifnetaddr))
glibtop_warn_io_r (server, "kvm_read (ifnet)"); glibtop_error_io_r (server, "kvm_read (ifnet)");
while (ifnetaddr) { while (ifnetaddr) {
struct sockaddr_in *sin; struct sockaddr_in *sin;

View File

@@ -78,7 +78,7 @@ _glibtop_init_ppp_p (glibtop *server)
#endif /* HAVE_I4B */ #endif /* HAVE_I4B */
if (kvm_nlist (server->machine->kd, nlst) < 0) if (kvm_nlist (server->machine->kd, nlst) < 0)
glibtop_warn_io_r (server, "kvm_nlist"); glibtop_error_io_r (server, "kvm_nlist");
} }
/* Provides information about ppp usage. */ /* Provides information about ppp usage. */

View File

@@ -70,11 +70,6 @@ glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
return NULL; return NULL;
} }
if (pinfo[0].p_flag & P_SYSTEM) {
glibtop_suid_leave (server);
return NULL;
}
args = kvm_getargv (server->machine->kd, pinfo, max_len); args = kvm_getargv (server->machine->kd, pinfo, max_len);
if (args == NULL) { if (args == NULL) {
glibtop_suid_leave (server); glibtop_suid_leave (server);

View File

@@ -1,43 +0,0 @@
/* Copyright (C) 2017 Robert Roth
This file is part of LibGTop.
Contributed by Robert Roth <robert.roth.off@gmail.com>, February 2017.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/procio.h>
static const unsigned long _glibtop_sysdeps_proc_io = 0;
/* Init function. */
void
_glibtop_init_proc_io_s (glibtop *server)
{
server->sysdeps.proc_io = _glibtop_sysdeps_proc_io;
}
/* Provides detailed information about a process. */
void
glibtop_get_proc_io_s (glibtop *server, glibtop_proc_io *buf,
pid_t pid)
{
memset (buf, 0, sizeof (glibtop_proc_io));
}

View File

@@ -45,6 +45,7 @@
#include <sys/mutex.h> #include <sys/mutex.h>
typedef int boolean_t; typedef int boolean_t;
#undef _KERNEL
#define _UVM_UVM_AMAP_I_H_ 1 #define _UVM_UVM_AMAP_I_H_ 1
#define _UVM_UVM_MAP_I_H_ 1 #define _UVM_UVM_MAP_I_H_ 1
#include <uvm/uvm.h> #include <uvm/uvm.h>
@@ -58,22 +59,9 @@ static const unsigned long _glibtop_sysdeps_map_entry =
(1L << GLIBTOP_MAP_ENTRY_OFFSET) + (1L << GLIBTOP_MAP_ENTRY_PERM) + (1L << GLIBTOP_MAP_ENTRY_OFFSET) + (1L << GLIBTOP_MAP_ENTRY_PERM) +
(1L << GLIBTOP_MAP_ENTRY_INODE) + (1L << GLIBTOP_MAP_ENTRY_DEVICE); (1L << GLIBTOP_MAP_ENTRY_INODE) + (1L << GLIBTOP_MAP_ENTRY_DEVICE);
/*
* Don't implement address comparison.
*/
static __inline int
no_impl(const void *p, const void *q)
{
abort(); /* Should not be called. */
return 0;
}
RBT_PROTOTYPE(uvm_map_addr, vm_map_entry, daddrs.addr_entry, no_impl);
RBT_GENERATE(uvm_map_addr, vm_map_entry, daddrs.addr_entry, no_impl);
/* Local helper functions. */ /* Local helper functions. */
ssize_t load_vmmap_entries(glibtop*, unsigned long, struct vm_map_entry*, ssize_t load_vmmap_entries(glibtop*, unsigned long, struct vm_map_entry**,
struct vm_map_entry*); struct vm_map_entry*);
void unload_vmmap_entries(struct vm_map_entry *); void unload_vmmap_entries(struct vm_map_entry *);
@@ -95,7 +83,7 @@ _glibtop_init_proc_map_p (glibtop *server)
*/ */
ssize_t ssize_t
load_vmmap_entries(glibtop *server, unsigned long kptr, load_vmmap_entries(glibtop *server, unsigned long kptr,
struct vm_map_entry *rptr, struct vm_map_entry *parent) struct vm_map_entry **rptr, struct vm_map_entry *parent)
{ {
struct vm_map_entry *entry; struct vm_map_entry *entry;
unsigned long left_kptr, right_kptr; unsigned long left_kptr, right_kptr;
@@ -122,17 +110,17 @@ load_vmmap_entries(glibtop *server, unsigned long kptr,
* We save the kernel pointers in {left,right}_kptr, so we have them * We save the kernel pointers in {left,right}_kptr, so we have them
* available to download children. * available to download children.
*/ */
left_kptr = (unsigned long) RBT_LEFT(uvm_map_addr, entry); left_kptr = (unsigned long) RB_LEFT(entry, daddrs.addr_entry);
right_kptr = (unsigned long) RBT_RIGHT(uvm_map_addr, entry); right_kptr = (unsigned long) RB_RIGHT(entry, daddrs.addr_entry);
entry->daddrs.addr_entry.rbt_left = RB_LEFT(entry, daddrs.addr_entry) =
entry->daddrs.addr_entry.rbt_right = NULL; RB_RIGHT(entry, daddrs.addr_entry) = NULL;
/* Fill in parent pointer. */ /* Fill in parent pointer. */
entry->daddrs.addr_entry.rbt_parent = &parent->daddrs.addr_entry; RB_PARENT(entry, daddrs.addr_entry) = parent;
/* /*
* Consistent state reached, fill in *rptr. * Consistent state reached, fill in *rptr.
*/ */
rptr = entry; *rptr = entry;
/* /*
* Download left, right. * Download left, right.
@@ -140,11 +128,11 @@ load_vmmap_entries(glibtop *server, unsigned long kptr,
* unload_vmmap_entries. * unload_vmmap_entries.
*/ */
left_sz = load_vmmap_entries(server, left_kptr, left_sz = load_vmmap_entries(server, left_kptr,
RBT_LEFT(uvm_map_addr, entry), entry); &RB_LEFT(entry, daddrs.addr_entry), entry);
if (left_sz == -1) if (left_sz == -1)
return -1; return -1;
right_sz = load_vmmap_entries(server, right_kptr, right_sz = load_vmmap_entries(server, right_kptr,
RBT_RIGHT(uvm_map_addr, entry), entry); &RB_RIGHT(entry, daddrs.addr_entry), entry);
if (right_sz == -1) if (right_sz == -1)
return -1; return -1;
@@ -160,8 +148,8 @@ unload_vmmap_entries(struct vm_map_entry *entry)
if (entry == NULL) if (entry == NULL)
return; return;
unload_vmmap_entries(RBT_LEFT(uvm_map_addr, entry)); unload_vmmap_entries(RB_LEFT(entry, daddrs.addr_entry));
unload_vmmap_entries(RBT_RIGHT(uvm_map_addr, entry)); unload_vmmap_entries(RB_RIGHT(entry, daddrs.addr_entry));
free(entry); free(entry);
} }
@@ -200,7 +188,6 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
pinfo = kvm_getprocs (server->machine->kd, KERN_PROC_PID, pid, sizeof(struct kinfo_proc), &count); pinfo = kvm_getprocs (server->machine->kd, KERN_PROC_PID, pid, sizeof(struct kinfo_proc), &count);
if (pinfo == NULL) { if (pinfo == NULL) {
glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid); glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
glibtop_suid_leave (server);
return (glibtop_map_entry*) g_array_free(maps, TRUE); return (glibtop_map_entry*) g_array_free(maps, TRUE);
} }
@@ -214,12 +201,12 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
return NULL; return NULL;
} }
RBT_INIT(uvm_map_addr, &root); RB_INIT(&root);
nentries = load_vmmap_entries(server, nentries = load_vmmap_entries(server,
(unsigned long) RBT_ROOT(uvm_map_addr, &vmspace.vm_map.addr), (unsigned long) RB_ROOT(&vmspace.vm_map.addr),
RBT_ROOT(uvm_map_addr, &root), NULL); &RB_ROOT(&root), NULL);
if (nentries == -1) { if (nentries == -1) {
unload_vmmap_entries(RBT_ROOT(uvm_map_addr, &root)); unload_vmmap_entries(RB_ROOT(&root));
glibtop_error_io_r (server, "kvm_read (entry)"); glibtop_error_io_r (server, "kvm_read (entry)");
} }
@@ -239,7 +226,7 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
* to OBJT_DEFAULT so it seems this really works. * to OBJT_DEFAULT so it seems this really works.
*/ */
RBT_FOREACH(entry, uvm_map_addr, &root) { RB_FOREACH(entry, uvm_map_addr, &root) {
glibtop_map_entry *mentry; glibtop_map_entry *mentry;
unsigned long inum, dev; unsigned long inum, dev;
guint len; guint len;
@@ -255,7 +242,7 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
(unsigned long) entry->object.uvm_obj, (unsigned long) entry->object.uvm_obj,
&vnode, sizeof (vnode)) != sizeof (vnode)) { &vnode, sizeof (vnode)) != sizeof (vnode)) {
glibtop_warn_io_r (server, "kvm_read (vnode)"); glibtop_warn_io_r (server, "kvm_read (vnode)");
unload_vmmap_entries(RBT_ROOT(uvm_map_addr, &root)); unload_vmmap_entries(RB_ROOT(&root));
glibtop_suid_leave (server); glibtop_suid_leave (server);
return (glibtop_map_entry*) g_array_free(maps, TRUE); return (glibtop_map_entry*) g_array_free(maps, TRUE);
} }
@@ -271,7 +258,7 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
(unsigned long) vnode.v_data, (unsigned long) vnode.v_data,
&inode, sizeof (inode)) != sizeof (inode)) { &inode, sizeof (inode)) != sizeof (inode)) {
glibtop_warn_io_r (server, "kvm_read (inode)"); glibtop_warn_io_r (server, "kvm_read (inode)");
unload_vmmap_entries(RBT_ROOT(uvm_map_addr, &root)); unload_vmmap_entries(RB_ROOT(&root));
glibtop_suid_leave (server); glibtop_suid_leave (server);
return (glibtop_map_entry*) g_array_free(maps, TRUE); return (glibtop_map_entry*) g_array_free(maps, TRUE);
} }
@@ -309,6 +296,18 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
buf->size = sizeof (glibtop_map_entry); buf->size = sizeof (glibtop_map_entry);
buf->total = buf->number * buf->size; buf->total = buf->number * buf->size;
unload_vmmap_entries(RBT_ROOT(uvm_map_addr, &root)); unload_vmmap_entries(RB_ROOT(&root));
return (glibtop_map_entry*) g_array_free(maps, FALSE); return (glibtop_map_entry*) g_array_free(maps, FALSE);
} }
/*
* Don't implement address comparison.
*/
static __inline int
no_impl(void *p, void *q)
{
abort(); /* Should not be called. */
return 0;
}
RB_GENERATE(uvm_map_addr, vm_map_entry, daddrs.addr_entry, no_impl);

View File

@@ -45,34 +45,28 @@ static unsigned long _glibtop_sysdeps_sem_limits =
* since `seminfo' is already declared external in <sys/sem.h>. */ * since `seminfo' is already declared external in <sys/sem.h>. */
static struct seminfo _seminfo; static struct seminfo _seminfo;
/* nlist structure for kernel access */
static struct nlist nlst [] = {
{ "_seminfo" },
{ 0 }
};
/* Init function. */ /* Init function. */
void void
_glibtop_init_sem_limits_p (glibtop *server) _glibtop_init_sem_limits_p (glibtop *server)
{ {
int mib[3]; if (kvm_nlist (server->machine->kd, nlst) < 0) {
struct sem_sysctl_info *semsi; glibtop_warn_io_r (server, "kvm_nlist (sem_limits)");
size_t len = sizeof(struct seminfo);
mib[0] = CTL_KERN;
mib[1] = KERN_SYSVIPC_INFO;
mib[2] = KERN_SYSVIPC_SEM_INFO;
if ((semsi = malloc(len)) == NULL) {
glibtop_warn_io_r (server, "malloc (sem_limits)");
return; return;
} }
if (sysctl(mib, 3, semsi, &len, NULL, 0) < 0) { if (kvm_read (server->machine->kd, nlst [0].n_value,
glibtop_warn_io_r (server, "sysctl (sem_limits)"); &_seminfo, sizeof (_seminfo)) != sizeof (_seminfo)) {
glibtop_warn_io_r (server, "kvm_read (seminfo)");
return; return;
} }
_seminfo = semsi->seminfo;
free (semsi);
server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits; server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
} }

View File

@@ -39,33 +39,28 @@ static unsigned long _glibtop_sysdeps_shm_limits =
* since `shminfo' is already declared external in <sys/shm.h>. */ * since `shminfo' is already declared external in <sys/shm.h>. */
static struct shminfo _shminfo; static struct shminfo _shminfo;
/* nlist structure for kernel access */
static struct nlist nlst [] = {
{ "_shminfo" },
{ 0 }
};
/* Init function. */ /* Init function. */
void void
_glibtop_init_shm_limits_p (glibtop *server) _glibtop_init_shm_limits_p (glibtop *server)
{ {
int mib[3]; if (kvm_nlist (server->machine->kd, nlst) < 0) {
struct shm_sysctl_info *shmsi; glibtop_warn_io_r (server, "kvm_nlist (shm_limits)");
size_t len = sizeof(struct shminfo);
mib[0] = CTL_KERN;
mib[1] = KERN_SYSVIPC_INFO;
mib[2] = KERN_SYSVIPC_SHM_INFO;
if ((shmsi = malloc(len)) == NULL) {
glibtop_warn_io_r (server, "malloc (shm_limits)");
return; return;
} }
if (sysctl(mib, 3, shmsi, &len, NULL, 0) < 0) { if (kvm_read (server->machine->kd, nlst [0].n_value,
glibtop_warn_io_r (server, "sysctl (shm_limits)"); &_shminfo, sizeof (_shminfo)) != sizeof (_shminfo)) {
glibtop_warn_io_r (server, "kvm_read (shminfo)");
return; return;
} }
_shminfo = shmsi->shminfo;
free (shmsi);
server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits; server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
} }

View File

@@ -69,10 +69,10 @@ glibtop_open_p (glibtop *server, const char *program_name,
server->machine->gid = getgid (); server->machine->gid = getgid ();
server->machine->egid = getegid (); server->machine->egid = getegid ();
/* Setup machine-specific data */ /* Setup machine-specific data */
server->machine->kd = kvm_openfiles (NULL, NULL, NULL, KVM_NO_FILES, errbuf); server->machine->kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf);
if (server->machine->kd == NULL) if (server->machine->kd == NULL)
glibtop_error_io_r (server, "kvm_openfiles"); glibtop_error_io_r (server, "kvm_open");
/* Drop priviledges. */ /* Drop priviledges. */

View File

@@ -5,7 +5,7 @@ noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \ libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \ uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c ppp.c procio.c disk.c sem_limits.c ppp.c
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO) libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LIBADD = -lmach libgtop_sysdeps_2_0_la_LIBADD = -lmach

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -25,7 +25,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLIBTOP_SUID_CPU 0 #define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM 0 #define GLIBTOP_SUID_MEM 0
#define GLIBTOP_SUID_SWAP 0 #define GLIBTOP_SUID_SWAP 0
#define GLIBTOP_SUID_UPTIME 0 #define GLIBTOP_SUID_UPTIME 0
@@ -46,8 +45,6 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD) #define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
#define GLIBTOP_SUID_NETLIST 0 #define GLIBTOP_SUID_NETLIST 0
#define GLIBTOP_SUID_PPP 0 #define GLIBTOP_SUID_PPP 0
#define GLIBTOP_SUID_PROC_OPEN_FILES 0
#define GLIBTOP_SUID_PROC_IO 0
G_END_DECLS G_END_DECLS

View File

@@ -1,43 +0,0 @@
/* Copyright (C) 2017 Robert Roth
This file is part of LibGTop.
Contributed by Robert Roth <robert.roth.off@gmail.com>, February 2017.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/procio.h>
static const unsigned long _glibtop_sysdeps_proc_io = 0;
/* Init function. */
void
_glibtop_init_proc_io_s (glibtop *server)
{
server->sysdeps.proc_io = _glibtop_sysdeps_proc_io;
}
/* Provides detailed information about a process. */
void
glibtop_get_proc_io_s (glibtop *server, glibtop_proc_io *buf,
pid_t pid)
{
memset (buf, 0, sizeof (glibtop_proc_io));
}

View File

@@ -8,7 +8,7 @@ libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c \
proclist.c procstate.c procuid.c \ proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c \ proctime.c procmem.c procsignal.c \
prockernel.c procsegment.c procargs.c \ prockernel.c procsegment.c procargs.c \
procopenfiles.c procio.c disk.c \ procopenfiles.c \
procmap.c netload.c ppp.c procdata.c netlist.c procmap.c netload.c ppp.c procdata.c netlist.c
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO) libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
@@ -16,8 +16,7 @@ libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LIBADD = @DL_LIB@ libgtop_sysdeps_2_0_la_LIBADD = @DL_LIB@
libgtop_sysdeps_suid_2_0_la_SOURCES = open_suid.c close_suid.c \ libgtop_sysdeps_suid_2_0_la_SOURCES = open_suid.c close_suid.c \
shm_limits.c msg_limits.c sem_limits.c \ shm_limits.c msg_limits.c sem_limits.c
procio.c
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO) libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -25,7 +25,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLIBTOP_SUID_CPU 0 #define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM 0 #define GLIBTOP_SUID_MEM 0
#define GLIBTOP_SUID_SWAP 0 #define GLIBTOP_SUID_SWAP 0
#define GLIBTOP_SUID_UPTIME 0 #define GLIBTOP_SUID_UPTIME 0
@@ -46,8 +45,6 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD 0 #define GLIBTOP_SUID_NETLOAD 0
#define GLIBTOP_SUID_NETLIST 0 #define GLIBTOP_SUID_NETLIST 0
#define GLIBTOP_SUID_PPP 0 #define GLIBTOP_SUID_PPP 0
#define GLIBTOP_SUID_PROC_OPEN_FILES 0
#define GLIBTOP_SUID_PROC_IO 0
G_END_DECLS G_END_DECLS

View File

@@ -1,45 +0,0 @@
/* Copyright (C) 2017 Robert Roth
This file is part of LibGTop.
Contributed by Robert Roth <robert.roth.off@gmail.com>, February 2017.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/error.h>
#include <glibtop/procio.h>
static const unsigned long _glibtop_sysdeps_proc_io = 0;
/* Init function. */
void
_glibtop_init_proc_io_s (glibtop *server)
{
server->sysdeps.proc_io = _glibtop_sysdeps_proc_io;
}
/* Provides detailed information about a process. */
void
glibtop_get_proc_io_s (glibtop *server, glibtop_proc_io *buf,
pid_t pid)
{
memset (buf, 0, sizeof (glibtop_proc_io));
buf->flags = _glibtop_sysdeps_proc_io;
}

View File

@@ -3,7 +3,7 @@ AM_CPPFLAGS = @AM_CPPFLAGS@
noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la
libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c disk.c mem.c swap.c \ libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \ uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \ sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \ proctime.c procmem.c procsignal.c prockernel.c \

View File

@@ -1,42 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/disk.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_s (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_s (glibtop *server, glibtop_disk *buf)
{
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -25,7 +25,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLIBTOP_SUID_CPU 0 #define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_DISK 0
#define GLIBTOP_SUID_MEM 0 #define GLIBTOP_SUID_MEM 0
#define GLIBTOP_SUID_SWAP 0 #define GLIBTOP_SUID_SWAP 0
#define GLIBTOP_SUID_UPTIME 0 #define GLIBTOP_SUID_UPTIME 0
@@ -46,9 +45,8 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD 0 #define GLIBTOP_SUID_NETLOAD 0
#define GLIBTOP_SUID_NETLIST 0 #define GLIBTOP_SUID_NETLIST 0
#define GLIBTOP_SUID_PPP 0 #define GLIBTOP_SUID_PPP 0
#define GLIBTOP_SUID_PROC_WD 0 #define GLIBTOP_SUID_PROC_WD 0
#define GLIBTOP_SUID_PROC_AFFINITY 0 #define GLIBTOP_SUID_PROC_AFFINITY 0
#define GLIBTOP_SUID_PROC_IO 0
G_END_DECLS G_END_DECLS

View File

@@ -7,7 +7,7 @@ libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO) libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c siglist.c cpu.c disk.c mem.c swap.c \ libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
uptime.c loadavg.c shm_limits.c msg_limits.c \ uptime.c loadavg.c shm_limits.c msg_limits.c \
sem_limits.c proclist.c procstate.c procuid.c \ sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \ proctime.c procmem.c procsignal.c prockernel.c \

View File

@@ -1,47 +0,0 @@
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
Contributed by James Dominic P. Guana <guana.histark@gmail.com>, May 2020.
LibGTop is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LibGTop is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LibGTop; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include <glibtop.h>
#include <glibtop/error.h>
#include <glibtop/disk.h>
#include <glibtop_suid.h>
static const unsigned long _glibtop_sysdeps_disk = 0;
/* Init function. */
void
_glibtop_init_disk_p (glibtop *server)
{
server->sysdeps.disk = _glibtop_sysdeps_disk;
}
/* Provides information about disk usage. */
void
glibtop_get_disk_p (glibtop *server, glibtop_disk *buf)
{
glibtop_init_p (server, GLIBTOP_SYSDEPS_DISK, 0);
memset (buf, 0, sizeof (glibtop_disk));
}

View File

@@ -45,7 +45,7 @@ G_BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD) #define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
#define GLIBTOP_SUID_NETLIST 0 #define GLIBTOP_SUID_NETLIST 0
#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP) #define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
#define GLIBTOP_SUID_PROC_IO (1 << GLIBTOP_SYSDEPS_PROC_IO) #define GLIBTOP_SUID_PROC_IO (1 << GLIBTOP_SYSDEPS_PROC_IO)
G_END_DECLS G_END_DECLS

View File

@@ -3,7 +3,7 @@ AM_CPPFLAGS = @AM_CPPFLAGS@
noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c disk.c procio.c libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO) libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgtop_sysdeps_2_0_la_LIBADD = -lkvm libgtop_sysdeps_2_0_la_LIBADD = -lkvm

Some files were not shown because too many files have changed in this diff Show More