587 Commits

Author SHA1 Message Date
Martin Baulig
b4d0ee6df2 Released LibGTop 0.30.0 which is a feature-freezed version for GNOME 1.0.
1998-12-15  Martin Baulig  <martin@home-of-linux.org>

	Released LibGTop 0.30.0 which is a feature-freezed version
	for GNOME 1.0.
1998-12-15 13:13:41 +00:00
Martin Baulig
3daeda7307 We need to define LIBSUPPORT and SUPPORTINCS under all circumstances as it
1998-12-09  Martin Baulig  <martin@home-of-linux.org>

	* configure.in: We need to define LIBSUPPORT and SUPPORTINCS under
	all circumstances as it is in gnome-libs.
1998-12-09 21:19:44 +00:00
Martin Baulig
1520ee7083 Make the return value a char *' instead of a const char *'.
1998-12-09  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/procargs.h (glibtop_get_proc_args): Make the
	return value a `char *' instead of a `const char *'.
1998-12-09 11:38:49 +00:00
Martin Baulig
dd4ec711a9 Set version number to 0.29.1.
1998-12-09  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION: Set version number to 0.29.1.
1998-12-08 23:55:13 +00:00
Martin Baulig
d6e0aa2942 Moved here from the macros directory, formerly known as
1998-12-09  Martin Baulig  <martin@home-of-linux.org>

	* libgtop-sysdeps.m4: Moved here from the macros directory,
	formerly known as `macros/gnome-libgtop-sysdeps.m4'.
	(--enable-hacker-mode): New command line parameter to configure,
	enables building of unstable sysdeps directories.
	(LIBGTOP_HACKER_TESTS): New macro to check for unsafe things when
	hacker mode was enabled.
1998-12-08 23:40:11 +00:00
Martin Baulig
cd7ca97fc5 Moved here from the macros directory, formerly known as
1998-12-09  Martin Baulig  <martin@home-of-linux.org>

	* libgtop-sysdeps.m4: Moved here from the macros directory,
	formerly known as `macros/gnome-libgtop-sysdeps.m4'.
1998-12-08 23:01:44 +00:00
Martin Baulig
151c5ee80e Make it abort if GNOME cannot be found and the --without-gnome parameter
1998-12-06  Martin Baulig  <martin@home-of-linux.org>

	* configure.in: Make it abort if GNOME cannot be found and
	the --without-gnome parameter was not given.
1998-12-06 13:38:28 +00:00
Martin Baulig
0b315c266b Pipe the expression through `dc' so we get a real number.
1998-12-03  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION (LIBGTOP_VERSION_CODE): Pipe the expression
	through `dc' so we get a real number.
1998-12-03 16:14:48 +00:00
Martin Baulig
6760a41ad9 *** empty log message *** 1998-12-03 14:43:49 +00:00
Martin Baulig
079ddfae31 Set version number to 0.29.0.
1998-11-27  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION: Set version number to 0.29.0.

	* TODO: Add things that need to be done before Dec 15.

	This is basically a feature freeze for the C language part
	of LibGTop except for things that are marked with (***) in
	the TODO.
1998-11-27 12:56:12 +00:00
Martin Baulig
4ac6972be6 Applied a patch from Kenneth Stailey to make it work on OpenBSD.
1998-11-20  Martin Baulig  <baulig@merkur.uni-trier.de>

	* sysdeps/common/mountlist.c: Applied a patch from Kenneth Stailey to
	make it work on OpenBSD.
1998-11-20 14:35:29 +00:00
Martin Baulig
92f1bf261c We need to set argv[0] in call to execl () to avoid a core dump in _init
1998-11-18  Martin Baulig  <martin@home-of-linux.org>

	* lib/open.c (glibtop_open_l): We need to set argv[0] in call
	to execl () to avoid a core dump in _init () on FreeBSD 3.0.
1998-11-17 23:12:35 +00:00
Martin Baulig
a637c8b406 Don't define this any longer, we now use the port the daemon is listening
1998-11-11  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/gnuserv.h (MCOOKIE_SCREEN): Don't define this
	any longer, we now use the port the daemon is listening on instead
	of a fixed screen.
1998-11-11 20:56:09 +00:00
Martin Baulig
44b03ba60b Define LIBGTOP_ENABLE_DEBUG if this parameter is given.
1998-11-11  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (--enable-debug): Define LIBGTOP_ENABLE_DEBUG
	if this parameter is given.
	(--enable-fatal-warnings): New parameter to make all warnings
	fatal; define `LIBGTOP_FATAL_WARNINGS' if given.

	* sysdeps/common/error.c (glibtop_error_r): Use abort () instead
	of exit () if LIBGTOP_ENABLE_DEBUG.
	(glibtop_error_io_r): Likewise.
	(glibtop_warn_r): Call abort () if LIBGTOP_FATAL_WARNINGS.
	(glibtop_warn_io_r): Likewise.

	[NOTE: To get a core dump of the libgtop_server, you need to
	remove all suid/sgid bits and invoke it as a priviledged user.]
1998-11-11 16:02:01 +00:00
Raja R Harinath
ecaa9d9a35 Don't build if not BUILD_GNOME_SUPPORT.
* Makefile.am (support): Don't build if not BUILD_GNOME_SUPPORT.
1998-11-08 21:45:33 +00:00
Martin Baulig
b3262820c5 Added `GLIBTOP_PARAM_REQUIRED'.
1998-11-02  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/parameter.h: Added `GLIBTOP_PARAM_REQUIRED'.

	* lib/parameter.c (glibtop_set_parameter_l): It's no longer
	allowed to set GLIBTOP_PARAM_FEATURES.
	(glibtop_get_parameter_l): You can use `GLIBTOP_PARAM_REQUIRED'
	to read server->required and ...
	(glibtop_set_parameter_l): ... set it here.
1998-11-02 21:19:56 +00:00
Martin Baulig
1289b92d06 Added new features to get network load:
typedef struct _glibtop_netload	glibtop_netload;

struct _glibtop_netload
{
	u_int64_t	flags,
		mtu,			/* GLIBTOP_NETLOAD_MTU		*/
		address,		/* GLIBTOP_NETLOAD_ADDRESS	*/
		packets_in,		/* GLIBTOP_NETLOAD_PACKETS_IN	*/
		packets_out,		/* GLIBTOP_NETLOAD_PACKETS_OUT	*/
		bytes_in,		/* GLIBTOP_NETLOAD_BYTES_IN	*/
		bytes_out,		/* GLIBTOP_NETLOAD_BYTES_OUT	*/
		errors_in,		/* GLIBTOP_NETLOAD_ERRORS_IN	*/
		errors_out,		/* GLIBTOP_NETLOAD_ERRORS_OUT	*/
		collisions;		/* GLIBTOP_NETLOAD_COLLISIONS	*/
};

Returns network load of the given interface, it is specified as string
like `isppp' or `ippp0':

extern void glibtop_get_netload_l __P((glibtop *, glibtop_netload *, const char *));
1998-10-26 10:39:14 +00:00
Martin Baulig
bdc4e08454 Added new feature (proc_args) to get command line arguments:
typedef struct _glibtop_proc_args	glibtop_proc_args;

struct _glibtop_proc_args
{
	u_int64_t	flags,
		size;			/* GLIBTOP_PROC_ARGS_SIZE	*/
};

Returns a string containing all command line arguments of the process,
the `unsigned' parameter is the maximum length of this string; if it
is zero then no limit will be set.

extern const char  *glibtop_get_proc_args_l __P((glibtop *, glibtop_proc_args *, pid_t, unsigned));
1998-10-26 09:53:08 +00:00
Martin Baulig
9114af9fdf Added new feature to get PPP/ISDN support:
enum {
	GLIBTOP_PPP_STATE_UNKNOWN = 0,
	GLIBTOP_PPP_STATE_HANGUP,
	GLIBTOP_PPP_STATE_ONLINE
};

struct _glibtop_ppp
{
	u_int64_t	flags,
		state,			/* GLIBTOP_PPP_STATE		*/
		bytes_in,		/* GLIBTOP_PPP_BYTES_IN		*/
		bytes_out;		/* GLIBTOP_PPP_BYTES_OUT	*/
};

Currently only implemented in the FreeBSD port with ISDN via I4B. - Martin
1998-10-25 17:07:16 +00:00
Martin Baulig
afe57f9ee9 Use a 2-element-array of type `u_int64_t' for all signal masks instead of
1998-10-20  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/proc_signal.h: Use a 2-element-array of
	type `u_int64_t' for all signal masks instead of just
	scalar numbers. This avoids problems on systems with more
	than 64 signals.

	If there is any operating system out there with even more than
	128 signals, we can simply increase the number of array elements
	here.

	[NOTE for people porting libgtop:

 	 Please use all 64 bits of the `u_int64_t' and not just 32 - the
	 signal number (as it is used in calls to kill () ...) should be
	 a bit-index into this field; if a process ignores for instance
	 signal 64, it has the 0-bit of sigcatch[1] set, if it ignores 63,
	 this is the 63-bit of sigcatch[0] and so on ...

	 The mapping between signal numbers and their names is done via the
	 glibtop_sys_siglist [] field which should be declared in
	 sysdeps/@sysdeps_dir@/siglist.c - see linux for an example.
	]

	* features.def: It's now safe to put things like `loadavg[3]'
	here - the awk skripts should correctly threat this as an array.
1998-10-20 20:08:49 +00:00
Martin Baulig
260ecffab8 Let the user enable compiler warnings. (--with-libgtop-guile): Make the
1998-10-12  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (GNOME_COMPILE_WARNINGS): Let the user enable
	compiler warnings.
	(--with-libgtop-guile): Make the default to build the guile
	interface if guile can be found.
1998-10-12 12:28:05 +00:00
Martin Baulig
492c7788d0 Install feature.def' as libgtop-features.def'. Added
1998-10-12  Martin Baulig  <martin@home-of-linux.org>

	* Makefile.am (confexec_DATA): Install `feature.def' as
	`libgtop-features.def'.
	* libgtop.spec: Added `%{prefix}/lib/*.def' to the file list.
1998-10-11 22:31:11 +00:00
Martin Baulig
46779ed121 Don't create guile/Makefile'. Removed. (SUBDIRS): Removed guile'.
1998-10-11  Martin Baulig  <martin@home-of-linux.org>

	* configure.in: Don't create `guile/Makefile'.
	* Makefile.am (DIST_SUBDIRS): Removed.
	(SUBDIRS): Removed `guile'.
1998-10-11 20:22:35 +00:00
Martin Baulig
63e37821f3 Removed external delarations of all `glibtop_guile_*' functions that were
1998-10-11  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/*.h: Removed external delarations of all
	`glibtop_guile_*' functions that were formerly defined in
	sysdeps/guile/guile.c and sysdeps/guile/names/guile-names.c.
1998-10-11 18:14:17 +00:00
Martin Baulig
77e926d754 New file.
1998-10-11  Martin Baulig  <martin@home-of-linux.org>

	* sysdeps/guile/ChangeLog: New file.
1998-10-11 16:22:47 +00:00
Martin Baulig
d27d97d07b Set version number to 0.26.3. Likewise.
1998-10-11  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION: Set version number to 0.26.3.
	* libgtop.spec: Likewise.
1998-10-11 11:41:14 +00:00
Martin Baulig
3af9d90f4a Added features.def'. Added --features-def-file' parameter to get
1998-10-11  Martin Baulig  <martin@home-of-linux.org>

	* Makefile.am (confexec_DATA): Added `features.def'.
	* libgtop-config.in: Added `--features-def-file' parameter
	to get pathname of installed `features.def' file.
1998-10-11 11:21:09 +00:00
Martin Baulig
70bbae9b75 Removed everything in this subdirectory. This was only experimental. The
1998-10-11  Martin Baulig  <martin@home-of-linux.org>

	* perl: Removed everything in this subdirectory. This was
	only experimental. The real perl bindings for LibGTop are
	in the libgtop-bindings module.
1998-10-11 09:59:16 +00:00
Martin Baulig
754a69a79a Removed @libs_xauth@ and -lgdbm from the _LDADD variables since libtool
1998-10-11  Martin Baulig  <martin@home-of-linux.org>

	* src/inodedb/Makefile.am: Removed @libs_xauth@ and -lgdbm
	from the _LDADD variables since libtool automatically gets
	the dependencies.
	* src/daemon/Makefile.am: Likewise.
	* examples/Makefile.am: Likewise.
1998-10-10 23:18:40 +00:00
Martin Baulig
3b22c01a66 Added `GLIB_LIBS'.
1998-10-10  Martin Baulig  <martin@home-of-linux.org>

	* configure (LIBGTOP_EXTRA_LIBS): Added `GLIB_LIBS'.
1998-10-10 18:15:10 +00:00
Martin Baulig
9b0aa47f17 New file.
1998-10-10  Martin Baulig  <martin@home-of-linux.org>

	* perl/ChangeLog: New file.
1998-10-10 17:24:14 +00:00
Martin Baulig
ac2bd3eda8 Added `de'.
1998-10-07  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (ALL_LINGUAS): Added `de'.
1998-10-07 08:36:02 +00:00
Martin Baulig
06d907146d Only include system header files if we are `_IN_LIBGTOP'.
1998-10-03  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/global.h: Only include system header files
	if we are `_IN_LIBGTOP'.
	(G_GNUC_NORETURN, G_GNUC_CONST, G_GNUC_UNUSED): Added those
	definitions if we are `_IN_LIBGTOP'.
1998-10-03 03:00:13 +00:00
Nam SungHyun
17a37aa394 add 'ko' new file.
* configure.in (ALL_LINGUAS): add 'ko'
* po/ko.po: new file.
1998-09-29 10:14:45 +00:00
Martin Baulig
fce4841810 Make it really *require* GLIB >= 1.1.3.
1998-09-27  Martin Baulig  <martin@home-of-linux.org>

	* configure.in: Make it really *require* GLIB >= 1.1.3.
1998-09-27 21:25:20 +00:00
Raja R Harinath
02dfde47ab Move check for -lresolv', -lsocket' and `-lnsl' after X11 checks.
* configure.in: Move check for `-lresolv', `-lsocket' and `-lnsl'
after X11 checks.
1998-09-27 21:01:46 +00:00
Martin Baulig
6eed554232 Do not even check for guile if it is disabled.
1998-09-27  Martin Baulig  <martin@home-of-linux.org>

	* configure.in: Do not even check for guile if it is disabled.
1998-09-27 14:15:47 +00:00
Martin Baulig
7cadf4450c New file. This is used in guname to fetch as many information about the
1998-09-12  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/sysinfo.h: New file. This is used in guname to
	fetch as many information about the system as possible like detailed
	information about hardware etc.
1998-09-12 17:55:52 +00:00
Martin Baulig
37283cfdad LibGTop now requires glib.
1998-09-12  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (AM_PATH_GLIB): LibGTop now requires glib.
1998-09-12 13:53:59 +00:00
Martin Baulig
0d3113e6b9 Added xcpu_utime' and xcpu_stime'.
1998-09-09  Martin Baulig <baulig@Stud.Informatik.uni-trier.de>

	* include/glibtop/proctime.h (glibtop_proc_time): Added `xcpu_utime' and
	`xcpu_stime'.
1998-09-09 16:51:12 +00:00
Martin Baulig
88c34d1415 *** empty log message *** 1998-09-09 15:32:44 +00:00
Martin Baulig
a331fb8e03 Added `ncpu'. This is zero for single processor systems and the number of
1998-09-09  Martin Baulig <baulig@Stud.Informatik.uni-trier.de>

	* glibtop.h (glibtop): Added `ncpu'. This is zero for single processor
	systems and the number of CPUs otherwise.

	* include/glibtop/cpu.h (glibtop_cpu): Added `xcpu_total', `xcpu_user',
	`xcpu_nice', `xcpu_sys' and `xcpu_idle'.
	(GLIBTOP_NCPU): #define this to 4.
1998-09-09 15:19:24 +00:00
Martin Baulig
2bf9475dda Make the default to disable guile.
1998-09-08  Martin Baulig  <baulig@merkur.uni-trier.de>

	* configure.in: Make the default to disable guile.
1998-09-08 13:25:36 +00:00
Martin Baulig
a6584c2f75 Added. This is a numerical constant ("1.234.567" -> 1234567) to be used in
1998-08-30  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION (LIBGTOP_VERSION_CODE): Added. This is a numerical
	constant ("1.234.567" -> 1234567) to be used in C preprocessor
	conditionals.
1998-08-30 12:44:29 +00:00
Martin Baulig
af50e25023 Added. AC_SUBST. (LT_RELEASE, LT_CURRENT, LT_REVISION, LT_AGE): AC_SUBST.
1998-08-29  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION (LIBGTOP_INTERFACE_AGE, LIBGTOP_BINARY_AGE): Added.
	* configure.in (LIBGTOP_INTERFACE_AGE, LIBGTOP_BINARY_AGE): AC_SUBST.
	(LT_RELEASE, LT_CURRENT, LT_REVISION, LT_AGE): AC_SUBST.
	(LT_VERSION_INFO): Sets `-version-info' for libtool.

	* */Makefile.am: We now use the correct `-version-info' parameter
	for libtool.
1998-08-29 21:08:52 +00:00
Martin Baulig
abfda54900 This caused too much problems, so I reverted it.
1998-08-25  Martin Baulig  <martin@home-of-linux.org>

        * configure.in (LIBGTOP_EXTRA_LIBS): Added $(LIBSUPPORT).
1998-08-27 15:18:32 +00:00
Martin Baulig
0ea8e591f4 Third argument is now `const void *'.
1998-08-25  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/command.h (glibtop_call): Third argument is
	now `const void *'.

	* include/glibtop/xmalloc.h (glibtop_free): Now taking a
	`const void *'.
1998-08-25 08:41:02 +00:00
Martin Baulig
db3d7adbaa New file.
1998-08-25  Martin Baulig  <martin@home-of-linux.org>

	* src/daemon/ChangeLog: New file.

	* sysdeps/sun4/ChangeLog: New file.

	* sysdeps/stub/ChangeLog: New file.

	* configure.in: Added check for `-lsocket'.
	(LIBGTOP_INCS): Added $(SUPPORTINCS).
	(INCLUDES): Added $(SUPPORTINCS).
	(LIBGTOP_EXTRA_LIBS): Added $(LIBSUPPORT).

	* acconfig.h: Added `NEED_DECLARATION_GETHOSTNAME',
	`NEED_DECLARATION_SETREUID', `NEED_DECLARATION_SETREGID'
	and `NEED_DECLARATION_GETPAGESIZE'.

	* includue/glibtop/global.h (<gnomesupport.h>): Include this.

	* lib/init.c (_init_server): Declared `static'.

	* lib/read_data.c: Added cast to `const void *' in calls to
	`recv' and `read' to avoid compiler warnings.
1998-08-25 08:39:14 +00:00
Martin Baulig
fb552b8e31 Merged from LIBGTOP_0_25_PATCHES. 1998-08-24 13:09:49 +00:00
Martin Baulig
a0b502df75 Merged from `LIBGTOP_0_25_PATCHES'. 1998-08-23 12:26:32 +00:00