Commit Graph

587 Commits

Author SHA1 Message Date
Benoît Dejean
74453855aa Added missing const qualifiers.
* loadavg.c: (glibtop_get_loadavg_s):
	* msg_limits.c:
	* sem_limits.c:
	* shm_limits.c: Added missing const qualifiers.
2004-05-25 17:07:20 +00:00
Benoît Dejean
b15f542bfc Added boot_time. Added missing #include.
* uptime.c: (glibtop_get_uptime_p): Added boot_time.
	Added missing #include.
2004-05-25 14:44:45 +00:00
Benoît Dejean
1faa40ce18 Added boot_time.
* uptime.c: (glibtop_get_uptime_p): Added boot_time.
2004-05-25 14:42:51 +00:00
Benoît Dejean
0de7c96d2a Added test for end of string. (get_scaled): Cleaned.
* glibtop_server.h (skip_line): Added test for end of string.
        (get_scaled): Cleaned.

        * cpu.c (glibtop_get_cpu_s):
        * open.c (glibtop_open_s): Fixed SMP detection. Closes #142597.
        * uptime.c (glibtop_get_uptime_s): Added boot_time.
2004-05-25 14:33:46 +00:00
Bastien Nocera
07ec479243 fix typo in the #defines for FSUSAGE_BLOCK_SIZE (patch by Benot Dejean
2004-04-07  Bastien Nocera  <hadess@hadess.net>

	* include/glibtop/fsusage.h: fix typo in the #defines for
	FSUSAGE_BLOCK_SIZE (patch by Benot Dejean <TazForEver@free.fr>)

2004-04-07  Bastien Nocera  <hadess@hadess.net>

	* prockernel.c: (glibtop_get_proc_kernel_p): patch for NetBSD/AMD64
	support (Julio M. Merino Vidal <jmmv@menta.net>)
2004-04-07 10:05:51 +00:00
Bastien Nocera
2b221cbb1f set GLIBTOP_MAX_FSUSAGE properly, use gint in the headers instead of int
2004-03-15  Bastien Nocera  <hadess@hadess.net>

	* include/glibtop/fsusage.h: set GLIBTOP_MAX_FSUSAGE properly,
	use gint in the headers instead of int (Closes: #125049)


2004-03-15  Bastien Nocera  <hadess@hadess.net>

	* fsusage.c:
	* fsusage.h: remove use of uintmax_t
2004-03-16 10:10:41 +00:00
Benoît Dejean
89e79ee51f fixup CPU usage calculation on 2.6 kernels (patch by Benoit Dejean
* cpu.c: (glibtop_get_cpu_s): fixup CPU usage calculation on 2.6
        kernels (patch by Benoit Dejean <bnet@ifrance.com>) (Closes: #134252) (again)
2004-03-10 00:15:39 +00:00
Bastien Nocera
f3be4b50a9 fixup CPU usage calculation on 2.6 kernels (patch by Benoit Dejean
2004-03-09  Bastien Nocera  <hadess@hadess.net>

	* cpu.c: (glibtop_get_cpu_s): fixup CPU usage calculation on 2.6
	kernels (patch by Benoit Dejean <bnet@ifrance.com>) (Closes: #134252)
2004-03-09 23:44:12 +00:00
Bastien Nocera
ab1d1077d6 fix build (we don't have "full-read.h" here)
2004-03-09  Bastien Nocera  <hadess@hadess.net>

	* fsusage.c: fix build (we don't have "full-read.h" here)
2004-03-09 23:32:08 +00:00
Bastien Nocera
3c7c79944c - oopsie, forgot some files 2004-03-09 23:29:48 +00:00
Ole Laursen
897db07104 Added block_size field. (Closes: #125049)
2003-12-27  Ole Laursen  <olau@hardworking.dk>

	* include/glibtop/fsusage.h: Added block_size field. (Closes: #125049)
2004-03-09 23:28:48 +00:00
Bastien Nocera
4bd9752d52 implement NetBSD support, and some build problems on FreeBSD (Closes:
2004-03-09  Bastien Nocera  <hadess@hadess.net>

	* Makefile.am:
	* cpu.c: (glibtop_init_cpu_p), (glibtop_get_cpu_p):
	* glibtop_machine.h:
	* mem.c:
	* netload.c: (glibtop_get_netload_p):
	* prockernel.c: (glibtop_get_proc_kernel_p):
	* proclist.c: (glibtop_get_proclist_p):
	* procmap.c: (glibtop_get_proc_map_p):
	* procmem.c: (glibtop_get_proc_mem_p):
	* procsignal.c: (glibtop_get_proc_signal_p):
	* procstate.c: (glibtop_get_proc_state_p):
	* proctime.c:
	* procuid.c: (glibtop_get_proc_uid_p):
	* uptime.c: (glibtop_get_uptime_p): implement NetBSD support, and
	some build problems on FreeBSD (Closes: #135674)
2004-03-09 23:13:31 +00:00
Bastien Nocera
a795ff4847 fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean
2004-03-09  Bastien Nocera  <hadess@hadess.net>

	* fix g_malloc usage on non-Linux platforms (patch by Benoit
	Dejean <bnet@ifrance.com>)
2004-03-09 23:02:06 +00:00
Bastien Nocera
2ae3495a87 remove dependency on libgnome, check for linux/isdn.h for distros using
2004-03-04  Bastien Nocera  <hadess@hadess.net>

        * configure.in:
        * include/libgtop-i18n.h:
        * lib/lib.pl:
        * lib/read.c:
        * lib/read_data.c:
        * lib/write.c:
        * sysdeps/names/cpu.c:
        * sysdeps/names/fsusage.c:
        * sysdeps/names/loadavg.c:
        * sysdeps/names/mem.c:
        * sysdeps/names/mountlist.c:
        * sysdeps/names/msg_limits.c:
        * sysdeps/names/netload.c:
        * sysdeps/names/ppp.c:
        * sysdeps/names/procargs.c:
        * sysdeps/names/prockernel.c:
        * sysdeps/names/proclist.c:
        * sysdeps/names/procmap.c:
        * sysdeps/names/procmem.c:
        * sysdeps/names/procsegment.c:
        * sysdeps/names/procsignal.c:
        * sysdeps/names/procstate.c:
        * sysdeps/names/proctime.c:
        * sysdeps/names/procuid.c:
        * sysdeps/names/sem_limits.c:
        * sysdeps/names/shm_limits.c:
        * sysdeps/names/swap.c:
        * sysdeps/names/sysdeps.c:
        * sysdeps/names/uptime.c: remove dependency on libgnome,
        check for linux/isdn.h for distros using the 2.6 kernel headers
2004-03-04 15:29:16 +00:00
Frédéric Crozat
a3c4323de4 Move entries between Changelog.. 2004-02-11 15:30:38 +00:00
Sebastien Bacher
a046e42f3f patch from Benot Dejean <bnet@ifrance.com> to fix libtop_mem.used and
2004-02-02  Sebastien Bacher  <seb128@debian.org>

	* sysdeps/linux/mem.c: (glibtop_get_mem_s): patch from
	Benot Dejean <bnet@ifrance.com> to fix libtop_mem.used
	and glibtop_mem.shared values (Closes: #129863).
2004-02-02 20:02:02 +00:00
Bastien Nocera
79fdd6cd3b Apply patch from Benoît Dejean <bnet@ifrance.com> to fix overflow issues
2003-12-23  Bastien Nocera  <hadess@hadess.net>

	* cpu.c: (glibtop_get_cpu_s):
	* glibtop_server.h:
	* loadavg.c: (glibtop_get_loadavg_s):
	* mem.c: (glibtop_get_mem_s):
	* netload.c: (glibtop_get_netload_s):
	* prockernel.c: (glibtop_get_proc_kernel_s):
	* procmem.c: (glibtop_get_proc_mem_s):
	* procsegment.c: (glibtop_get_proc_segment_s):
	* procsignal.c: (glibtop_get_proc_signal_s):
	* proctime.c: (glibtop_get_proc_time_s):
	* procuid.c: (glibtop_get_proc_uid_s):
	* swap.c: (glibtop_get_swap_s): Apply patch from Benoît Dejean
	<bnet@ifrance.com> to fix overflow issues using strtol
	(Closes: #129881)
2003-12-23 10:44:33 +00:00
Bastien Nocera
291d63f2b9 Fix calculation of used memory, patch by Benoît Dejean,
2003-12-23  Bastien Nocera  <hadess@hadess.net>

	* mem.c: (glibtop_get_mem_s): Fix calculation of used memory,
	patch by Benoît Dejean, <bnet@ifrance.com> (Closes: #129863)
2003-12-23 10:39:25 +00:00
Jon Kåre Hellan
9ea55a3f4d Copy needed defines from linux/isdn.h instead of
including it, unbreaking build with linux 2.6 kernel headers.
2003-12-07 00:10:38 +00:00
Bastien Nocera
31133cc3dc install only one library, libgtop-2.0 Fix build-time warnings due to the
2003-10-21  Bastien Nocera  <hadess@hadess.net>

	* Makefile.am:
	* configure.in:
	* src/inodedb/.cvsignore:
	* sysdeps/names/Makefile.am:
	install only one library, libgtop-2.0
	Fix build-time warnings due to the redefinition of guint64
2003-10-21 21:21:28 +00:00
Bastien Nocera
07d991f383 Apply patch by the_h1ghlander@yahoo.com and Cory Omand
2003-10-20  Bastien Nocera  <hadess@hadess.net>

	* include/glibtop/cpu.h:
	* include/glibtop/procstate.h:
	* include/glibtop/procuid.h:
	* include/glibtop/uptime.h:
	* lib/sysdeps.c:
	* sysdeps/names/cpu.c:
	* sysdeps/names/procstate.c:
	* sysdeps/names/procuid.c:
	* sysdeps/names/uptime.c: Apply patch by the_h1ghlander@yahoo.com and
	Cory Omand <cory.omand@Sun.com> for Solaris support
2003-10-20 21:27:31 +00:00
Bastien Nocera
a50e5fdc9a fix compilation, thanks Jeff
2003-10-20  Bastien Nocera  <hadess@hadess.net>

	* inodedb.c: (glibtop_inodedb_close_s): fix compilation, thanks Jeff
2003-10-20 20:52:13 +00:00
Bastien Nocera
33fb22edd3 committing patch from Sebastien Bacher <seb128@debian.org> for Linux 2.6
2003-10-20  Bastien Nocera  <hadess@hadess.net>

	* glibtop_server.h:
	* mem.c: (glibtop_get_mem_s):
	* swap.c: (glibtop_get_swap_s): committing patch from Sebastien
	Bacher <seb128@debian.org> for Linux 2.6 support (Closes: #104747)
2003-10-20 20:41:16 +00:00
Bastien Nocera
b2283f7c79 - s/u_int64_t/guint64/ 2003-10-20 20:12:28 +00:00
Bastien Nocera
adc9a55578 fix swap sizes in FreeBSD, patch by edwin@mavetju.org
2003-10-20  Bastien Nocera  <hadess@hadess.net>

	* swap.c: (glibtop_get_swap_p): fix swap sizes in FreeBSD,
	patch by edwin@mavetju.org
2003-10-20 19:53:28 +00:00
Bastien Nocera
b67e4c7f7d - fixed compilation 2003-10-20 15:20:16 +00:00
Bastien Nocera
ba36a20cb8 - replace all the xmalloc crap by glib memory management functions 2003-10-20 13:55:44 +00:00
Bastien Nocera
532aec1891 updated removed all traces of guile stuff removed
2003-10-20  Bastien Nocera  <hadess@hadess.net>

	* .cvsignore: updated
	* configure.in: removed all traces of guile stuff
	* sysdeps/guile/.cvsignore: removed
2003-10-20 13:02:32 +00:00
Bastien Nocera
cdfa0dfa1f removed guile
2003-10-20  Bastien Nocera  <hadess@hadess.net>

	* sysdeps/Makefile.am:
	* sysdeps/guile/ChangeLog:
	* sysdeps/guile/Makefile.am:
	* sysdeps/guile/guile.pl:
	* sysdeps/guile/names/.cvsignore:
	* sysdeps/guile/names/Makefile.am:
	* sysdeps/guile/names/guile-names.pl: removed guile
2003-10-20 12:57:18 +00:00
Carlos Perelló Marín
4c8ae9e25c Reverted libgtop changes. It's a common module and I should not modify it.
2003-10-19  Carlos Perelló Marín <carlos@gnome.org>

	* support/*: Reverted libgtop changes. It's a common module
	and I should not modify it.
	* Added/removed files. Now the move should be done.
2003-10-19 16:55:56 +00:00
Carlos Perelló Marín
bae16b467f libgtop-GNOME-2-0-branch moved to HEAD.
2003-10-19  Carlos Perelló Marín <carlos@gnome.org>

	* libgtop-GNOME-2-0-branch moved to HEAD.
2003-10-19 16:10:39 +00:00
Martin Baulig
db93479a51 *** empty log message *** 2001-04-20 22:31:42 +00:00
Martin Baulig
236d2b18e7 Install this as a backend.
2001-04-21  Martin Baulig  <baulig@suse.de>

	* Makefile.am: Install this as a backend.

	* libgtop-common.backend, backend.c: New files.

	* inodedb.c: Removed; moved to ~/lib.
2001-04-20 22:31:26 +00:00
Martin Baulig
7a7c6baf55 Moved all sysdeps code to the new libgtop-backends module.
2001-04-20  Martin Baulig  <baulig@suse.de>

	Moved all sysdeps code to the new libgtop-backends module.

	* sysdeps/freesd/*: Removed.
	* sysdeps/kernel/*: Removed.
	* sysdeps/linux/*: Removed.
	* sysdeps/osf1/*: Removed.
	* sysdeps/solaris/*: Removed.
	* sysdeps/stub/*: Removed.
	* sysdeps/stub_suid/*: Removed.
	* sysdeps/sun4/*: Removed.
2001-04-20 21:06:35 +00:00
Martin Baulig
aac46b6daf *** empty log message *** 2001-04-20 15:48:09 +00:00
Martin Baulig
876b2725c0 New file, formerly known as error.c.
2000-11-22  Martin Baulig  <martin@home-of-linux.org>

	* error_suid.c: New file, formerly known as error.c.
2000-11-22 21:00:08 +00:00
Martin Baulig
81b009733e Don't call glibtop_init_s() anymore, this is deprecated.
2000-11-22  Martin Baulig  <martin@home-of-linux.org>

	* fsusage.c, moutlist.c: Don't call glibtop_init_s() anymore,
	this is deprecated.

	* Makefile.am: Don't install libgtop_common.la
2000-11-22 19:55:29 +00:00
Martin Baulig
035b387463 Don't call glibtop_init_s(), this is deprecated.
2000-11-22  Martin Baulig  <martin@home-of-linux.org>

	* *.c: Don't call glibtop_init_s(), this is deprecated.

	* netinfo.c: New file.
2000-11-22 19:54:08 +00:00
Martin Baulig
752d5b47d2 Started with the big rewrite for GNOME 2.0:
2000-11-20  Martin Baulig  <baulig@suse.de>

	Started with the big rewrite for GNOME 2.0:

	- split the `glibtop' structure into `glibtop_server' and
	`glibtop_client' and make `glibtop_client' a GObject.
	- cleanly separate the library and the backends.

	This stuff currently does not compile.

	* glibtop.h (glibtop_server_private, glibtop_server_info):
	Removed typedefs.
	(struct _glibtop, struct _glibtop_server_info): Removed.
	(glibtop_global_server, glibtop_server_features): Removed.
	(glibtop_server_ref, glibtop_server_unref): Removed.

	* glibtop.h (glibtop_init_s): First argument is now a
	`glibtop_server *'.

	* include/glibtop/*.h: Removed all #defines with the
	glibtop_global_server.
	(glibtop_get_*_l): First argument is now a `glibtop_client *'.
	(glibtop_get_*_s, glibtop_init_*_s): First argument is now a
	`glibtop_server *'.

	* lib/glibtop-client.c: New file.

	* sysdeps/common/xmalloc.c: Moved to lib/.
	* sysdeps/common/error.c: Moved to lib/.

	* lib/xmalloc.c: Moved here from sysdeps/common/.
	* lib/error.c: Moved here from sysdeps/common/.

	* include/glibtop/backend.h
	(glibtop_backend_open_func_t, glibtop_backend_close_func_t):
	First argument is now a `glibtop_server *'.
	(glibtop_backend_info): Added `glibtop_server *server'.
	(glibtop_open_backend_l): Returns `glibtop_backend *', first
	argument is `glibtop_client *' and added `GError **'.

	* include/glibtop/close.h (glibtop_close_s, glibtop_close_p):
	First argument is now a `glibtop_server *'.

	* include/glibtop/error.h (*):
	First argument is now a `glibtop_server *'.

	* include/glibtop/errors.h: Switched this to use GError.
2000-11-20 22:37:15 +00:00
Martin Baulig
c15ff3f342 New type. (glibtop): Added glibtop_server_info *info', moved ncpu',
2000-11-20  Martin Baulig  <baulig@suse.de>

	* glibtop.h (glibtop_server_info): New type.
	(glibtop): Added `glibtop_server_info *info', moved
	`ncpu', `features', `sysdeps', `required' and `wanted'
	info glibtop_server_info.
2000-11-20 16:52:30 +00:00
Martin Baulig
7a7e7d1bc3 Make it compile. 2000-11-20 16:43:59 +00:00
Martin Baulig
0ff66c2eaa stat () first and don't make any unnecessary noise in case of EACCES. 2000-04-24 13:37:37 +00:00
Martin Baulig
718cd38098 Added `Process current working directory' feature (proc_cwd).
2000-04-24  Martin Baulig  <baulig@suse.de>

	Added `Process current working directory' feature (proc_cwd).

	* include/glibtop/proc_cwd.h: New file.
	* features.def: Added `proc_cwd'.

	* include/glibtop/sysdeps.h (glibtop_sysdeps): Added `proc_cwd'.
	* include/glibtop/union.h (glibtop_union): Added `proc_cwd'.

	* sysdeps/stub/proc_cwd.c: New file.
	* sysdeps/names/proc_cwd.c: New file.
2000-04-24 13:08:48 +00:00
Martin Baulig
6b88dcd4aa New file. This feature was requested by Nautilus hacker Maciej Stachowiak
2000-04-24  Martin Baulig  <baulig@suse.de>

	* proc_cwd.c: New file. This feature was requested by Nautilus
	hacker Maciej Stachowiak and it returns the current working
	directory of a process.
2000-04-24 13:08:27 +00:00
Martin Baulig
0b45f63e61 Added XML DTD for the `*.backend' files.
2000-02-27  Martin Baulig  <martin@home-of-linux.org>

	* dtd/libgtop-backends.dtd: Added XML DTD for the `*.backend' files.
2000-02-27 18:22:02 +00:00
Martin Baulig
a790130414 New directory. This is a XML DTD for "backend info" XML files. In future,
2000-02-27  Martin Baulig  <martin@home-of-linux.org>

	* dtd/: New directory.
	* dtd/libgtop-backend-info.dtd: This is a XML DTD for "backend info"
	XML files. In future, each backend will have such a xml file which
	contains information like a short description of the backend, its
	authors etc.

	* sysdeps/linux/backend-info.xml: New file. First version of such
	a "backend info" XML file as described above.
2000-02-27 18:13:16 +00:00
Martin Baulig
5dbfe42493 Moved to sysdeps/common/error.c. (glibtop_error_io_r, glibtop_warn_io_r):
2000-02-24  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/error.h (glibtop_error_r, glibtop_warn_r): Moved
	to sysdeps/common/error.c.
	(glibtop_error_io_r, glibtop_warn_io_r): Likewise.
	(glibtop_error, glibtop_warn): Moved the non-GNU-C version of them
	to sysdeps/common/error.c.
	(glibtop_error_io, glibtop_warn_io): Likewise.

	* sysdeps/common/error.c (glibtop_error_r, glibtop_warn_r): Moved
	here from include/glibtop/error.h.
	(glibtop_error_io_r, glibtop_warn_io_r): Likewise.
	(glibtop_error, glibtop_warn): Moved the non-GNU-C version of them
	here from include/glibtop/error.h.
	(glibtop_error_io, glibtop_warn_io): Likewise.
2000-02-24 18:54:13 +00:00
Martin Baulig
76f1fb641c *** empty log message *** 2000-02-24 18:12:45 +00:00
Martin Baulig
7b30b1ec86 Applied a patch from Aron Griffis <agriffis@bigfoot.com>.
2000-02-24  Martin Baulig  <martin@home-of-linux.org>

	Applied a patch from Aron Griffis <agriffis@bigfoot.com>.

	* glibtop_machine.h: Don't declare table () here.
	* netinfo.c: Reflect latest interface changes.
2000-02-24 12:48:55 +00:00
Martin Baulig
9e2a8f7db8 Applied a patch from Aron Griffis to make this compile on Tru64. 2000-02-24 12:46:14 +00:00