Commit Graph

266 Commits

Author SHA1 Message Date
Martin Baulig
d9361d388c New file. Added definition of `proc_map'.
1998-08-10  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/procmap.h (glibtop_proc_map): New file.
	* features.def: Added definition of `proc_map'.
1998-08-10 16:57:44 +00:00
Martin Baulig
b6885555c1 Now using correct number of parameters in `gh_new_procedure'. 1998-08-10 16:55:19 +00:00
Martin Baulig
d44df22180 Getting shared memory size seems to work now. 1998-08-10 12:27:43 +00:00
Martin Baulig
2e4ec2a85c Some more work here. 1998-08-10 08:09:37 +00:00
Martin Baulig
260440e6ee Disabled `guile' subdir. 1998-08-10 08:09:12 +00:00
Martin Baulig
8b8ceec1bf Added new fields rtime' and frequency'.
1998-08-10  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/proctime.h (glibtop_proc_time): Added new
	fields `rtime' and `frequency'.
1998-08-10 08:08:51 +00:00
Martin Baulig
0bb5215f84 Added implementation. 1998-08-10 00:58:00 +00:00
Martin Baulig
59f5f092fb Fixed typo. 1998-08-10 00:57:31 +00:00
Martin Baulig
32c0ced22a Renamed wchan' field to nwchan'; added wchan' which is of type char
1998-08-09  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/prockernel.h (glibtop_proc_kernel): Renamed
	`wchan' field to `nwchan'; added `wchan' which is of type `char [40]'.
1998-08-09 21:11:18 +00:00
Martin Baulig
fd95ab60a4 Changed format of this file to support multiple arguments to be passed to
1998-08-09  Martin Baulig  <martin@home-of-linux.org>

	* features.def: Changed format of this file to support multiple
	arguments to be passed to a function.

	* include/glibtop/proclist.h: `glibtop_get_proclist' now takes two
	more arguments `method' and `param'.
1998-08-09 17:08:59 +00:00
Martin Baulig
b4038c9828 *** empty log message *** 1998-08-09 17:06:25 +00:00
Martin Baulig
e64dc16608 Some more FreeBSD stuff. 1998-08-09 17:05:11 +00:00
Martin Baulig
4e25a1dbd5 Now using correct default server. 1998-08-09 17:04:46 +00:00
Martin Baulig
c0641998cf Minor server/daemon cleanups; reading sysdeps from server now working. 1998-08-08 20:04:43 +00:00
Martin Baulig
9cf583b2fa Done some more work on the FreeBSD port. 1998-08-08 20:04:07 +00:00
Martin Baulig
2d1d157fc4 *** empty log message *** 1998-08-08 16:34:47 +00:00
Martin Baulig
9c97f59c15 Using GLIBTOP_INIT_STATE_SYSDEPS' instead of GLIBTOP_INIT_STATE_INIT'.
* glibtop_init_s (): Using `GLIBTOP_INIT_STATE_SYSDEPS' instead of
  `GLIBTOP_INIT_STATE_INIT'.
1998-08-08 16:34:00 +00:00
Martin Baulig
82daee6f29 Call glibtop_init_s' instead of glibtop_open_s'. 1998-08-08 16:33:17 +00:00
Martin Baulig
e329617831 On FreeBSD, printf () doesn't like '%Lx', '%Ld' and '%Lu', so we use
an expilcit cast to `unsigned long' and types `%lx' and `%ld'.
1998-08-08 16:32:26 +00:00
Martin Baulig
6d8c10d4ae kvm_read () returns the number of bytes read and not zero on success. 1998-08-08 16:05:21 +00:00
Martin Baulig
13cf3ae4d0 Added swap usage based upton the source code of `pinfo'.
1998-08-08  Martin Baulig  <martin@home-of-linux.org>

	* swap.c: Added swap usage based upton the source code
	of `pinfo'.
1998-08-08 16:04:02 +00:00
Martin Baulig
6893d89fd8 Merged code from Josh Sled. 1998-08-07 15:12:04 +00:00
Martin Baulig
35e900692a Merged some stuff from `stub_suid'. 1998-08-07 13:14:17 +00:00
Martin Baulig
8e8cb05168 New file.
1998-08-07  Martin Baulig  <martin@home-of-linux.org>

	* sysdeps/freebsd/ChangeLog: New file.
1998-08-07 13:10:47 +00:00
Martin Baulig
a510ed1271 Removed. New files. Added `libgtop_server'; this has been moved here from
1998-08-07  Martin Baulig  <martin@home-of-linux.org>

	* src/server: Removed.
	* src/daemon/{server, version}.c: New files.
	* src/daemon/Makefile.am: Added `libgtop_server'; this has been
	moved here from `src/server' since it shares some source code files
	with the `libgtop_daemon'.

	* LIBGTOP-VERSION: Added `LIBGTOP_SERVER_VERSION'.
	* src/daemon/gnuserv.c, lib/open.c: Improved version check between
	client and server.

	* include/glibtop/output.h: Removed.

	* sysdeps/stub_suid: New directory. This is mainly used as example
	for people porting libgtop to other systems.

	* sysdeps/common/sysdeps_suid.c: New file.
	Defines `glibtop_init_hook_p'.

	* sysdeps/osf1/*.c (glibtop_init_<no-suid-feature>_s): New functions.
	(glibtop_init_<suid-feature>_p): New functions.
1998-08-07 12:59:00 +00:00
Martin Baulig
3b4e0378f9 Removed `output.h'. 1998-08-07 12:42:08 +00:00
Martin Baulig
bb1c7f9192 Removed `include/glibtop/output.h'. This file is very outdated ! 1998-08-07 12:41:08 +00:00
Martin Baulig
e7c77a85e9 Now using correct features' parameter in call to glibtop_init_s'. 1998-08-07 12:38:40 +00:00
Martin Baulig
d72da1bb2f New directory. This is mainly used as example for people porting libgtop
1998-08-07  Martin Baulig  <martin@home-of-linux.org>

	* sysdeps/stub_suid: New directory. This is mainly used as example
	for people porting libgtop to other systems.
1998-08-07 12:35:20 +00:00
Martin Baulig
4b3fcf149a New fields error_method', sysdeps' and `required'. I added an improved
1998-08-07  Martin Baulig  <martin@home-of-linux.org>

	* glibtop.h (_glibtop): New fields `error_method', `sysdeps' and
	`required'. I added an improved error handling: the client can tell
	the libraries which fields are absolutely required for each features
	and if it fails to set one of them, this will create an error which
	is handled depending upon the `error_method'.

	* include/glibtop/open.h: Define some constants for `error_method'.

	* lib/sysdeps.c (glibtop_get_sysdeps_r): No longer actually call any
	sysdeps function, it now simply copies `server->sysdeps'.
	(_glibtop_init_hook_s): Added. List of functions to be called during
	`glibtop_init_s' set to `glibtop_init_<no-suid-feature>_s'.

	* include/glibtop/sysdeps.h (<glibtop/union.h>): Removed.
	(glibtop_init_func_t): New typedef.
	(_glibtop_init_hook_s): Added.

	* sysdeps/linux/*.c (glibtop_init_<feature>_s): New functions.
	(glibtop_get_proc_*): Zero is now a valid pid.

	* sysdeps/kernel/*.c (glibtop_init_<feature>_s): New functions.
	(glibtop_get_proc_*): Zero is now a valid pid.

1998-08-06  Martin Baulig  <martin@home-of-linux.org>
1998-08-07 10:01:55 +00:00
Martin Baulig
09e1353d0d Added Josh to the AUTHORS file. 1998-08-06 23:37:35 +00:00
Martin Baulig
79f5a9c667 Importing FreeBSD port of libgtop from Josh Sled. freebsd_0_1 1998-08-06 23:34:50 +00:00
Martin Baulig
864867aeeb Initial revision 1998-08-06 23:34:50 +00:00
Martin Baulig
8750ff351e Bug fixes. 1998-08-06 22:55:22 +00:00
Martin Baulig
bfcc8c3944 Enabled slave-server again. 1998-08-06 22:55:02 +00:00
Martin Baulig
bf19661382 Added 2 seconds delay to give child time to start up. 1998-08-06 22:54:46 +00:00
Martin Baulig
20016762a6 New checks.
1998-08-06  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (HAVE_SOCKETS, HAVE_SOCKADDR_SUN_LEN): New checks.
1998-08-06 22:53:45 +00:00
Martin Baulig
0a7bd78704 Using GLIBTOP_GUILE' instead of HAVE_GUILE' so one should be able to use
1998-08-06  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/*.h: Using `GLIBTOP_GUILE' instead of `HAVE_GUILE'
	so one should be able to use libgtop without guile in an application
	even if guile is installed.

	* sysdeps/common/mountlist.c: Fixed some `xstrdup' problems.

	* lib/open.c: Now correctly reading server features for
	`GLIBTOP_METHOD_PIPE'.

	* sysdeps/freebsd: New directory.
1998-08-06 21:57:45 +00:00
Martin Baulig
2e454140f1 Added pagein' and pageout'.
1998-08-01  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/swap.h (glibtop_swap): Added `pagein' and `pageout'.

	* kernel/table20/table.h: Removed.
	* kernel/table21/table.h: Removed.
	* kernel/table.h: Added. Things are now binary compatible between
	both kernel versions.
1998-08-01 22:03:11 +00:00
Martin Baulig
fc506344ea Added.
1998-07-30  Martin Baulig  <martin@home-of-linux.org>

	* acconfig.h (u_int64_t, int64_t): Added.
1998-07-30 18:08:19 +00:00
Martin Baulig
e7f5588ee9 Using correct `(1 << GLIBTOP_SYSDEPS_<feature>)' in call to
1998-07-30  Martin Baulig  <martin@home-of-linux.org>

	* lib/lib.awk: Using correct `(1 << GLIBTOP_SYSDEPS_<feature>)'
	in call to `glibtop_init_r'.
1998-07-30 17:56:02 +00:00
Martin Baulig
b55ee6117f New check.
1998-07-30  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (GNOME_LIBGTOP_TYPES): New check.
1998-07-30 17:52:29 +00:00
Martin Baulig
902b6a8f16 Using u_int64_t' instead of unsigned long' and `long' to avoid problems
1998-07-30  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/*.h: Using `u_int64_t' instead of `unsigned long'
	and `long' to avoid problems when client is on a 32bit system and
	the server on a 64bit system.
1998-07-30 14:24:19 +00:00
Martin Baulig
d18a6cf2ce Removed debugging instruction. 1998-07-30 14:03:13 +00:00
Martin Baulig
8ced0f5889 Using `0xffffffff' instead of -1 as error code for inet_addr () since on
1998-07-30  Martin Baulig  <martin@home-of-linux.org>

	* sysdeps/common/gnuslib.c: Using `0xffffffff' instead of -1
	as error code for inet_addr () since on 64bit systems,
	`inet_addr (some_error) != (INET_ADDR) -1'.
1998-07-30 12:54:00 +00:00
Martin Baulig
a33b97ef9d Removed gnomesupport.h. 1998-07-30 10:42:34 +00:00
Martin Baulig
3c3118521d Only defining guile stuff if we really have guile.
1998-07-30  Martin Baulig  <martin@home-of-linux.org>

	* configure.in: Only defining guile stuff if
	we really have guile.
1998-07-30 08:30:40 +00:00
Martin Baulig
f07551a43d New file.
1998-07-29  Martin Baulig  <martin@home-of-linux.org>

	* guile/ChangeLog: New file.

	* features.def: New format - now includes type of return value
	and parameters.

	* lib/lib.awk: Changed to use new `features.def'.
	* sysdeps/guile/guile.awk: Dito;
	* sysdeps/guile/names/guile-names.awk: Dito.

	* libgtopConf.sh.in: Added
	`LIBGTOP_NAMES_LIBS', `LIBGTOP_NAMES_INCS',
	`LIBGTOP_GUILE_NAMES_LIBS', `LIBGTOP_GUILE_NAMES_INCS',
	`LIBGTOP_MAJOR_VERSION', `LIBGTOP_MINOR_VERSION'
	`LIBGTOP_VERSION', `libgtop_sysdeps_dir'.

	* acinclude.m4 (AC_LC_SYSDEPS): Removed since this has been
	replaced with `GNOME_LIBGTOP_SYSDEPS' long ago.

	* LIBGTOP-VERSION: New file.

	* */Makefile.am (INCLUDES): Removed; now defined in `configure.in'.

	* sysdeps/names/mountlist.c: New file.

	* lib/{init, open}.c (GTOP_SERVER): Renamed to `LIBGTOP_SERVER'.

	* configure.in (INCLUDES): Added definition.
	(libgtop_want_names): Always true; `libgtop_names.la' is now
	always created since some other programs rely upon it - but
	have to use `LIBGTOP_NAMES_LIBS' and `LIBGTOP_NAMES_INCS' to
	use it in your application.
	(libgtop_want_guile_names): Always true; but you have to use
	`LIBGTOP_GUILE_NAMES_LIBS' and `LIBGTOP_GUILE_NAMES_INCS' to
	use it in your application.
	(LIBGTOP_LIBS): Removed `-lgtop_names' and `-lgtop_guile_names'.
	(LIBGTOP_NAMES_LIBS): New variable. Use it to link your
	application with the names interface.
	(LIBGTOP_NAMES_INCS): New variable. Also #defines `GLIBTOP_NAMES'
	which is now required if your application wants to use the names
	interface.
	(LIBGTOP_GUILE_NAMES_LIBS): New variable. Use it to link your
	application with the guile names interface.
	(LIBGTOP_GUILE_NAMES_INCS): New variable. Also #defines
	`GLIBTOP_NAMES' and `GLIBTOP_GUILE_NAMES' which are now required
	if your application wants to use the guile names interface.
1998-07-29 22:01:31 +00:00
Martin Baulig
37eb76e767 *** empty log message *** 1998-07-29 21:39:50 +00:00
Martin Baulig
e2196888ca New files.
1998-07-29  Martin Baulig  <martin@home-of-linux.org>

	* dynamic.c, dynamic_names.c: New files.

	* Makefile.am: New file. Creates `libgtop.so' and
	`libnames.so' which will be installed in
	`$(datadir)/guile/libgtop'; just do a
	`(use-modules (libgtop libgtop) (libgtop names))' in
	guile to use them.
1998-07-29 21:36:49 +00:00