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.
This commit is contained in:
Martin Baulig
1998-08-06 21:57:45 +00:00
committed by Martin Baulig
parent 2e454140f1
commit 0a7bd78704
50 changed files with 1030 additions and 28 deletions

View File

@@ -65,7 +65,7 @@ extern void glibtop_get_cpu_p __P((glibtop *, glibtop_cpu *));
extern void glibtop_get_cpu_s __P((glibtop *, glibtop_cpu *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -55,7 +55,7 @@ extern void glibtop_get_fsusage_l __P((glibtop *, glibtop_fsusage *, const char
extern void glibtop_get_fsusage_s __P((glibtop *, glibtop_fsusage *, const char *));
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -63,11 +63,11 @@
#endif
#ifdef WITHOUT_GUILE
#undef HAVE_GUILE
#undef GLIBTOP_GUILE
#undef GLIBTOP_GUILE_NAMES
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
#include <guile/gh.h>
#endif

View File

@@ -55,7 +55,7 @@ extern void glibtop_get_loadavg_p __P((glibtop *, glibtop_loadavg *));
extern void glibtop_get_loadavg_s __P((glibtop *, glibtop_loadavg *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -69,7 +69,7 @@ extern void glibtop_get_mem_p __P((glibtop *, glibtop_mem *));
extern void glibtop_get_mem_s __P((glibtop *, glibtop_mem *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -63,7 +63,7 @@ extern glibtop_mountentry *glibtop_get_mountlist_l __P((glibtop *, glibtop_mount
extern glibtop_mountentry *glibtop_get_mountlist_s __P((glibtop *, glibtop_mountlist *, int));
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -67,7 +67,7 @@ extern void glibtop_get_msg_limits_p __P((glibtop *, glibtop_msg_limits *));
extern void glibtop_get_msg_limits_s __P((glibtop *, glibtop_msg_limits *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -76,7 +76,7 @@ extern void glibtop_get_proc_kernel_p __P((glibtop *, glibtop_proc_kernel *, pid
extern void glibtop_get_proc_kernel_s __P((glibtop *, glibtop_proc_kernel *, pid_t));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -59,7 +59,7 @@ extern unsigned *glibtop_get_proclist_p __P((glibtop *, glibtop_proclist *));
extern unsigned *glibtop_get_proclist_s __P((glibtop *, glibtop_proclist *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -69,7 +69,7 @@ extern void glibtop_get_proc_mem_p __P((glibtop *, glibtop_proc_mem *, pid_t));
extern void glibtop_get_proc_mem_s __P((glibtop *, glibtop_proc_mem *, pid_t));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -70,7 +70,7 @@ extern void glibtop_get_proc_segment_p __P((glibtop *, glibtop_proc_segment *, p
extern void glibtop_get_proc_segment_s __P((glibtop *, glibtop_proc_segment *, pid_t));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -63,7 +63,7 @@ extern void glibtop_get_proc_signal_p __P((glibtop *, glibtop_proc_signal *, pid
extern void glibtop_get_proc_signal_s __P((glibtop *, glibtop_proc_signal *, pid_t));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -70,7 +70,7 @@ extern void glibtop_get_proc_state_p __P((glibtop *, glibtop_proc_state *, pid_t
extern void glibtop_get_proc_state_s __P((glibtop *, glibtop_proc_state *, pid_t));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -75,7 +75,7 @@ extern void glibtop_get_proc_time_p __P((glibtop *, glibtop_proc_time *, pid_t))
extern void glibtop_get_proc_time_s __P((glibtop *, glibtop_proc_time *, pid_t));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -79,7 +79,7 @@ extern void glibtop_get_proc_uid_p __P((glibtop *, glibtop_proc_uid *, pid_t));
extern void glibtop_get_proc_uid_s __P((glibtop *, glibtop_proc_uid *, pid_t));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -73,7 +73,7 @@ extern void glibtop_get_sem_limits_p __P((glibtop *, glibtop_sem_limits *));
extern void glibtop_get_sem_limits_s __P((glibtop *, glibtop_sem_limits *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -63,7 +63,7 @@ extern void glibtop_get_shm_limits_p __P((glibtop *, glibtop_shm_limits *));
extern void glibtop_get_shm_limits_s __P((glibtop *, glibtop_shm_limits *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -63,7 +63,7 @@ extern void glibtop_get_swap_p __P((glibtop *, glibtop_swap *));
extern void glibtop_get_swap_s __P((glibtop *, glibtop_swap *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -81,7 +81,7 @@ struct _glibtop_sysdeps
extern void glibtop_get_sysdeps_r __P((glibtop *, glibtop_sysdeps *));
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */

View File

@@ -57,7 +57,7 @@ extern void glibtop_get_uptime_p __P((glibtop *, glibtop_uptime *));
extern void glibtop_get_uptime_s __P((glibtop *, glibtop_uptime *));
#endif
#ifdef HAVE_GUILE
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */