summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-06-14 02:26:32 +0000
committerMartin Baulig <martin@src.gnome.org>1998-06-14 02:26:32 +0000
commit7ffc53f45e5604440f6d763f07162a1854031700 (patch)
tree10a7424371a05286812f0958feabc48ba7d630de
parent6ea7e47194997023cb579d6e9216b32e228e2fe0 (diff)
downloadlibgtop-7ffc53f45e5604440f6d763f07162a1854031700.tar.gz
*** empty log message ***
-rw-r--r--examples/first.c2
-rw-r--r--examples/second.c10
-rw-r--r--examples/third.c10
-rw-r--r--lib/.cvsignore1
-rw-r--r--src/proxy/main.c10
-rw-r--r--sysdeps/guile/.cvsignore1
-rw-r--r--sysdeps/guile/Makefile.am6
-rw-r--r--sysdeps/guile/names/.cvsignore1
8 files changed, 35 insertions, 6 deletions
diff --git a/examples/first.c b/examples/first.c
index 2853eb2a..d65657e3 100644
--- a/examples/first.c
+++ b/examples/first.c
@@ -33,6 +33,7 @@
#define PROFILE_COUNT 1
#endif
+#ifdef HAVE_LINUX_TABLE
#include <unistd.h>
#include <linux/unistd.h>
#include <linux/table.h>
@@ -40,6 +41,7 @@
#include <syscall.h>
_syscall3 (int, table, int, type, union table *, tbl, const void *, param);
+#endif
int
main (int argc, char *argv [])
diff --git a/examples/second.c b/examples/second.c
index 423111ab..4ebffe1f 100644
--- a/examples/second.c
+++ b/examples/second.c
@@ -29,6 +29,16 @@
#include <glibtop/union.h>
#include <glibtop/sysdeps.h>
+#ifdef HAVE_LINUX_TABLE
+#include <unistd.h>
+#include <linux/unistd.h>
+#include <linux/table.h>
+
+#include <syscall.h>
+
+_syscall3 (int, table, int, type, union table *, tbl, const void *, param);
+#endif
+
int
main (int argc, char *argv [])
{
diff --git a/examples/third.c b/examples/third.c
index 261ba8c3..f5d41c0d 100644
--- a/examples/third.c
+++ b/examples/third.c
@@ -32,6 +32,16 @@
void main_prog(int argc, char *argv[]);
+#ifdef HAVE_LINUX_TABLE
+#include <unistd.h>
+#include <linux/unistd.h>
+#include <linux/table.h>
+
+#include <syscall.h>
+
+_syscall3 (int, table, int, type, union table *, tbl, const void *, param);
+#endif
+
int
main (int argc, char *argv[])
{
diff --git a/lib/.cvsignore b/lib/.cvsignore
index 221fbc2f..27fc4990 100644
--- a/lib/.cvsignore
+++ b/lib/.cvsignore
@@ -32,3 +32,4 @@ sysinfo.lo
uptime.lo
write.lo
xmalloc.lo
+lib.c
diff --git a/src/proxy/main.c b/src/proxy/main.c
index a71df0a2..dd7cd58d 100644
--- a/src/proxy/main.c
+++ b/src/proxy/main.c
@@ -36,6 +36,16 @@
#define GET_MAX_FDS() 256
#endif
+#ifdef HAVE_LINUX_TABLE
+#include <unistd.h>
+#include <linux/unistd.h>
+#include <linux/table.h>
+
+#include <syscall.h>
+
+_syscall3 (int, table, int, type, union table *, tbl, const void *, param);
+#endif
+
int
main(int argc, char *argv[])
{
diff --git a/sysdeps/guile/.cvsignore b/sysdeps/guile/.cvsignore
index 3956f7f4..80292200 100644
--- a/sysdeps/guile/.cvsignore
+++ b/sysdeps/guile/.cvsignore
@@ -23,3 +23,4 @@ so_locations
swap.lo
sysdeps.lo
uptime.lo
+guile.c
diff --git a/sysdeps/guile/Makefile.am b/sysdeps/guile/Makefile.am
index 50372156..ed83e8e0 100644
--- a/sysdeps/guile/Makefile.am
+++ b/sysdeps/guile/Makefile.am
@@ -14,12 +14,6 @@ CFLAGS = -Wall -W @CFLAGS@
lib_LTLIBRARIES = libgtop_guile.la
-libgtop_guile_la_SOURCES = boot.c sysdeps.c cpu.c mem.c swap.c uptime.c \
- loadavg.c shm_limits.c msg_limits.c \
- sem_limits.c proclist.c procstate.c procuid.c \
- proctime.c procmem.c procsignal.c prockernel.c \
- procsegment.c
-
libgtop_guile_la_SOURCES = guile.c
BUILT_SOURCES = guile.c
diff --git a/sysdeps/guile/names/.cvsignore b/sysdeps/guile/names/.cvsignore
index e5baa455..da876484 100644
--- a/sysdeps/guile/names/.cvsignore
+++ b/sysdeps/guile/names/.cvsignore
@@ -24,3 +24,4 @@ so_locations
swap.lo
sysdeps.lo
uptime.lo
+guile-names.c