Commit Graph

1128 Commits

Author SHA1 Message Date
Martin Baulig
6402efe196 This now compiles on a Solaris 7 system :) 2000-02-15 22:33:32 +00:00
Martin Baulig
00a32c887c Make sure we close all open files. 2000-02-14 14:25:34 +00:00
Martin Baulig
c92bf0f9a9 1.1.5 :) 2000-02-13 23:01:00 +00:00
Martin Baulig
44027f6bd2 Reflect latest interface changes.
2000-02-13  Martin Baulig  <martin@home-of-linux.org>

	* netinfo.c: Reflect latest interface changes.
2000-02-13 15:44:43 +00:00
Martin Baulig
3fec7a0946 kvm_nlist () returns -1 on error, but a positive return value does not
2000-02-13  Martin Baulig  <martin@home-of-linux.org>

	* *.c: kvm_nlist () returns -1 on error, but a positive return value
	does not necessarily mean failure. Fixes #3302 which was reported by
	Matthias Scheler some time ago.
2000-02-13 15:28:24 +00:00
Martin Baulig
47d4322965 Removed siglist.c. 2000-02-13 15:27:36 +00:00
Martin Baulig
7ae71b3d8f Added.
2000-02-13  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (AC_LIBTOOL_DLOPEN): Added.
2000-02-13 15:23:19 +00:00
Martin Baulig
a73800ae2d Added labels. Provide actual implementation.
2000-02-13  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-linux.c (glibtop_sys_siglist): Added labels.
	* lib/sysdeps-init-freebsd.c (glibtop_sys_siglist): Provide
	actual implementation.
2000-02-13 15:21:41 +00:00
Martin Baulig
b124998639 Removed the non-suid `libgtop-sysdeps.la'. Removed.
2000-02-06  Martin Baulig  <martin@home-of-linux.org>

	* Makefile.am: Removed the non-suid `libgtop-sysdeps.la'.
	* nosuid.c: Removed.
2000-02-06 18:24:39 +00:00
Martin Baulig
238d03677a *** empty log message *** 2000-02-06 18:21:10 +00:00
Martin Baulig
0f3babc8e9 Moved here from the sysdeps directories.
2000-02-06  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-*.c (glibtop_sys_siglist): Moved here from
	the sysdeps directories.

	* sysdeps/*/siglist.c: Removed.
2000-02-06 18:20:20 +00:00
Martin Baulig
55ff827b50 Removed method', server_command', server_host', server_user' and
2000-02-06  Martin Baulig  <martin@home-of-linux.org>

	* glibtop.h (glibtop): Removed `method', `server_command',
	`server_host', `server_user' and `server_rsh'.
	Added `glibtop_parameter _param' field and moved `error_method'
	there.

	* include/glibtop/parameter.h (glibtop_parameter): New structure.
	(GLIBTOP_PARAM_METHOD, GLIBTOP_PARAM_COMMAND): Removed.
	(GLIBTOP_PARAM_HOST, GLIBTOP_PARAM_PORT): Removed.
	(GLIBTOP_PARAM_REMOTE_USER, GLIBTOP_PARAM_PATH_RSH): Removed.
	(GLIBTOP_PARAM_NCPU, GLIBTOP_PARAM_OS_VERSION_CODE): Added.
2000-02-06 14:43:55 +00:00
Martin Baulig
0daf65ef73 Make this work with multiple ISDN devices.
2000-02-06  Martin Baulig  <martin@home-of-linux.org>

	* ppp.c: Make this work with multiple ISDN devices.
2000-02-06 13:36:45 +00:00
Martin Baulig
2eab7cfc48 Removed the `lockfile' argument; we now use a configure check to determine
2000-02-06  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/ppp.h (glibtop_get_ppp): Removed the `lockfile'
	argument; we now use a configure check to determine the modem
	lockfile.

	* include/glibtop/error.h (GLIBTOP_ERROR_NEED_MODEM_LOCKFILE):
	Removed this now obsolete error constant again.

	* configure.in (--with-modem-lockfile): New configure parameter
	to manually specify the modem lockfile.
	(LIBGTOP_MODEM_LOCKFILE): Define this to be a printf-format string
	for the modem lockfile; takes the interface number as argument.
2000-02-06 13:21:14 +00:00
Martin Baulig
a691993a86 *** empty log message *** 2000-02-04 23:13:46 +00:00
Martin Baulig
d3e83afb0a Started to update documentation.
2000-02-05  Martin Baulig  <martin@home-of-linux.org>

	* reference.texi: Started to update documentation.
2000-02-04 23:13:18 +00:00
Martin Baulig
129e4bc0ac New enum for the IPv6 address scope.
2000-02-05  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/interfaces.h (glibtop_ipv6_scope): New
	enum for the IPv6 address scope.
2000-02-04 23:10:58 +00:00
Martin Baulig
faec393b8d New enum for the IPv6 address scope.
2000-02-05  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/interfaces.h (glibtop_ipv6_scope): New
	enum for the IPv6 address scope.
2000-02-04 23:06:33 +00:00
Yuan-Chung Cheng
a7d39be2b5 Added po file from TurboLinux Chinese Develop Team. 2000-01-30 12:16:46 +00:00
Martin Baulig
8892637796 Correctly return multiple IPv6 addresses. 2000-01-28 22:25:59 +00:00
Martin Baulig
00a9f98ee0 *** empty log message *** 2000-01-28 22:25:45 +00:00
Martin Baulig
4b8a9ece16 *** empty log message *** 2000-01-28 19:54:01 +00:00
Martin Baulig
fc8645245a *** empty log message *** 2000-01-28 19:49:30 +00:00
Martin Baulig
2d4553adf2 Added.
2000-01-29  Martin Baulig  <martin@home-of-linux.org>

	* structures.def (glibtop_ifaddr): Added.
2000-01-28 19:15:57 +00:00
Martin Baulig
5f02295a63 address' and subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_t
2000-01-24  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/netinfo.h (glibtop_netinfo): `address' and
	`subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_t values.
	(glibtop_get_netinfo): `transport' is now `u_int64_t' and not
	`unsigned' to make it work with `GLIBTOP_TRANSPORT_ALL'.

	* include/glibtop/limits.h (GLIBTOP_IFADDR_LEN): New constant.
	This is the length of a network interface address in bytes.
2000-01-24 23:27:50 +00:00
Martin Baulig
8b1dd440ee *** empty log message *** 2000-01-24 01:49:54 +00:00
Martin Baulig
77a1a6a43d address' and subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_t
2000-01-24  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/netinfo.h (glibtop_netinfo): `address' and
	`subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_t values.
	(glibtop_get_netinfo): `transport' is now `u_int64_t' and not
	`unsigned' to make it work with `GLIBTOP_TRANSPORT_ALL'.

	* include/glibtop/limits.h (GLIBTOP_IFADDR_LEN): New constant.
	This is the length of a network interface address in bytes.
2000-01-24 01:42:32 +00:00
Martin Baulig
e9c8125828 Removed.
2000-01-24  Martin Baulig  <martin@home-of-linux.org>

	* interfaces.c, netinfo.c: Removed.
2000-01-24 01:38:23 +00:00
Martin Baulig
3212af2fb4 We need to add u_int8_t' and int8_t' _here_, but only here and no
longer in all client code.
2000-01-24 01:36:30 +00:00
Martin Baulig
52dbe1469d New macro. This is the same than `GNOME_LIBGTOP_TYPES' but also checks for
2000-01-24  Martin Baulig  <martin@home-of-linux.org>

	* libgtop-sysdeps.m4 (GNOME_LIBGTOP_TYPES_PRIVATE): New macro.
	This is the same than `GNOME_LIBGTOP_TYPES' but also checks for
	`u_int8_t' and `int8_t' and it doesn't force people to put this
	in their acconfig.h.

	* configure.in: Use GNOME_LIBGTOP_TYPES_PRIVATE instead of
	GNOME_LIBGTOP_TYPES.
2000-01-24 01:35:11 +00:00
Martin Baulig
837ee6bcc6 *** empty log message *** 2000-01-23 00:08:56 +00:00
Martin Baulig
8a85be8f00 Load the "glibtop-backend-kernel" before "glibtop-backend-command" and
2000-01-23  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-kernel.c: Load the "glibtop-backend-kernel" before
	"glibtop-backend-command" and "glibtop-backend-sysdeps".

	* libgtop-sysdeps.m4: "kernel" is now a backend and no longer a
	sysdeps port; we compile the normal "linux" sysdeps dir when we
	have it.

	* backends/Makefile.am: Only compile `server' and `sysdeps'
	directories if appropriate.
2000-01-22 23:58:55 +00:00
Martin Baulig
3455d025a2 This is now a LibGTop backend which can be loaded additionally to the
2000-01-23  Martin Baulig  <martin@home-of-linux.org>

	This is now a LibGTop backend which can be loaded additionally
	to the normal Linux sysdeps code.

	* open.c, close.c: Removed.
	* shm_limits.c, msg_limits.c, sem_limits.c, ppp.c: Removed.
	* siglist.c, sysinfo.c: Removed.

	* backend-kernel.c: New file.
	* glibtop-backend-private.h: New file.
	* libgtop-kernel.backend: New file.

	* backend-kernel.pl: New file. Automatically creates
	`backend-kernel.h'.

	* marshal.pl: New file. Automatically creates `marshal.c'.

	* glibtop_server.h: Replaced all `GLIBTOP_SUID_<feature>' constants
	with `GLIBTOP_IMPL_<feature>' ones; they're used in marshal.c to
	find out which features this backend implements.

	* *.c: Renamed all `glibtop_get_<feature>_s' functions to
	`glibtop_get_<feature>_k' and all `glibtop_init_<feature>_s' ones
	to `glibtop_init_<feature>_k'.
2000-01-22 23:32:49 +00:00
Martin Baulig
d2f4502e74 Added "ExtraLibs" section to load `-lgtop_sysdeps'.
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* libgtop-sysdeps.backend: Added "ExtraLibs" section to
	load `-lgtop_sysdeps'.
2000-01-22 22:17:26 +00:00
Martin Baulig
2144fab671 Added `extra_libs'.
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/backend.h (_glibtop_backend_module): Added
	`extra_libs'.
2000-01-22 22:15:48 +00:00
Martin Baulig
e8c90833e8 Removed `-lgtop_sysdeps'. This is gmodule loaded from the backend open
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (LIBGTOP_LIBS): Removed `-lgtop_sysdeps'. This
	is gmodule loaded from the backend open function.

	* lib/init.c (glibtop_init_s): Don't call glibtop_open_s () here.

	* init-backend.c: Added support for a "ExtraLibs" section in the
	backend description file.
2000-01-22 22:14:59 +00:00
Martin Baulig
d567c86818 Install the library in $(backenddir).
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* Makefile.am: Install the library in $(backenddir).
2000-01-22 22:14:36 +00:00
Martin Baulig
931ba0fa8d Added use_isdn' and lockfile' arguments. When `use_isdn' is TRUE, we
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/ppp.h (glibtop_get_ppp): Added `use_isdn' and
	`lockfile' arguments. When `use_isdn' is TRUE, we return ISDN
	statistics, otherwise `lockfile' is expected to be the modem
	lockfile and we return PPP statistics for that Modem.

	Note that for Modem statistics, you need to set both `device' and
	`lockfile' for some sysdeps ports; so if you have more than one PPP
	connection active and want to get statistics on the second one you
	need to set `device' to 1 and `lockfile' to the correct modem lockfile.

	* include/glibtop/error.h (GLIBTOP_ERROR_NEED_MODEM_LOCKFILE): New
	error constant; this is returned when you call glibtop_get_ppp ()
	without a modem lockfile and the current sysdeps port requires it.
2000-01-22 17:33:51 +00:00
Martin Baulig
8da7cfd032 Use `u_int64_t' arguments and return value to avoid long int overflows on
2000-01-20  Martin Baulig  <martin@home-of-linux.org>

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

	* fsusage.h (struct fs_usage): Use `u_int64_t' here as well.
libgtop_latest_1_0_merge
2000-01-20 21:42:24 +00:00
Martin Baulig
3fa1063b74 New file. Added sysdeps initialization code from DEC OSF/1.
2000-01-18  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-osf1.c: New file. Added sysdeps initialization
	code from DEC OSF/1.
2000-01-18 16:55:11 +00:00
Martin Baulig
e2d5319441 Only emit code for functions which are really suid/sgid.
2000-01-18  Martin Baulig  <martin@home-of-linux.org>

	* demarshal.pl: Only emit code for functions which are
	really suid/sgid.
2000-01-18 16:50:37 +00:00
Martin Baulig
85a7719f39 Don't attempt to #include the obsolete and already removed <glibtop/gnuserv.h>. 2000-01-18 16:36:45 +00:00
Martin Baulig
490a05d01c Reflect latest interface changes. 2000-01-18 15:55:11 +00:00
Martin Baulig
b54197c2e1 perl -pni -e 's,server->machine,server->_priv->machine,g' *.c *.h 2000-01-18 11:29:44 +00:00
Martin Baulig
86dbeab484 Reflect latest interface changes. 2000-01-18 11:29:44 +00:00
Martin Baulig
15da337d8a perl -pni -e 's,server->machine,server->_priv->machine,g' *.c *.h 2000-01-18 11:29:44 +00:00
Martin Baulig
992e064952 We now use `@LIBGTOP_PACKAGE@' as the translation domain so installed
2000-01-16  Martin Baulig  <martin@home-of-linux.org>

	We now use `@LIBGTOP_PACKAGE@' as the translation domain so
	installed `libgtop-1.1.mo' files won't conflict with the ones
	from LibGTop 1.0 and you can keep both versions installed.

	* po/Makefile.in.in.in: New file. This is a modified version of
	the usual `Makefile.in.in' which is created by gettextize; we
	copy this over `Makefile.in.in' in autogen.sh after gettextize'ing.

	* autogen.sh: Copy `po/Makefile.in.in.in' over `po/Makefile.in.in'
	after running `macros/autogen.sh'.

	* configure.in (LIBGTOP_PACKAGE): AC_SUBST and AC_DEFINE this.

	* include/glibtop/global.h (_): Use `LIBGTOP_PACKAGE' as our
	translation domain.

2000-01-16  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION (LIBGTOP_VERSION_SUFFIX): Added this so you can
	have your tarballs called `libgtop-1.x.y-snap.tar.gz' or whatever.
	This only affects the `VERSION' variable and thus how the resulting
	tarball will be called, but not `LIBGTOP_VERSION_CODE' etc.

	* Makefile.am: Make `aclocal.m4' also depend on `LIBGTOP-VERSION'
	when in maintainer-mode.
2000-01-16 00:48:08 +00:00
Martin Baulig
26ff5dbd79 Set version number to 1.1.5, binary age 0, interface age 0 and increase
2000-01-15  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION: Set version number to 1.1.5, binary age 0,
	interface age 0 and increase LIBGTOP_SERVER_VERSION to 53.
2000-01-15 19:51:53 +00:00
Martin Baulig
473ecd6b3a *** empty log message *** LIBGTOP_1_1_4 2000-01-15 19:04:12 +00:00
Martin Baulig
e5b75b86fc Released LibGTop 1.1.4 "Earthquake".
2000-01-14  Martin Baulig  <martin@home-of-linux.org>

	Released LibGTop 1.1.4 "Earthquake".
2000-01-14 19:26:59 +00:00