diff options
-rw-r--r-- | ChangeLog | 14 | ||||
-rw-r--r-- | configure.in | 14 | ||||
-rw-r--r-- | examples/first.c | 8 | ||||
-rw-r--r-- | sysdeps/Makefile.am | 2 |
4 files changed, 25 insertions, 13 deletions
@@ -1,3 +1,17 @@ +1998-06-13 Martin Baulig <martin@home-of-linux.org> + + * kernel: New directory. Contains some kernel code to + implement a new system call table () to fetch information + directly from the Linux kernel. + + * sysdeps/kernel: New directory. Uses the table () function + from the `kernel' directory to fetch things directly from + the Linux kernel. + + * sysdeps/Makefile.am (DIST_SUBDIRS): Added `kernel'. + + * configure.in: Removed `build_CC' again. + 1998-06-12 Martin Baulig <baulig@taurus.uni-trier.de> * include/glibtop/sysdeps.h (glibtop_types_sysdeps): diff --git a/configure.in b/configure.in index b79253c1..e64f7da0 100644 --- a/configure.in +++ b/configure.in @@ -8,23 +8,12 @@ AC_CANONICAL_SYSTEM AM_ACLOCAL_INCLUDE(macros) -dnl This is necessary for cross-compiling for programs -dnl that need to run on the build host. - -AC_CHECK_PROG(build_CC, gcc, gcc) -if test -z "$build_CC" ; then - AC_CHECK_PROG(build_CC, cc, cc, , , /usr/ucb/cc) - test -z "$build_CC" && \ - AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_CHECK_TOOL(CC,gcc) - AC_ISC_POSIX AC_PROG_CC AC_STDC_HEADERS AC_ARG_PROGRAM +AC_CHECK_TOOL(CC,gcc) AC_CHECK_TOOL(RANLIB,ranlib) AC_CHECK_TOOL(AS,as) AC_CHECK_TOOL(AR,ar) @@ -226,6 +215,7 @@ sysdeps/stub/Makefile sysdeps/sun4/Makefile sysdeps/osf1/Makefile sysdeps/linux/Makefile +sysdeps/kernel/Makefile src/Makefile src/server/Makefile src/proxy/Makefile diff --git a/examples/first.c b/examples/first.c index d93e8f3b..2853eb2a 100644 --- a/examples/first.c +++ b/examples/first.c @@ -33,6 +33,14 @@ #define PROFILE_COUNT 1 #endif +#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); + int main (int argc, char *argv []) { diff --git a/sysdeps/Makefile.am b/sysdeps/Makefile.am index 5625c33f..d12f6d78 100644 --- a/sysdeps/Makefile.am +++ b/sysdeps/Makefile.am @@ -12,4 +12,4 @@ endif SUBDIRS = @sysdeps_dir@ common $(names_SUBDIRS) $(guile_SUBDIRS) -DIST_SUBDIRS = common guile linux names osf1 stub sun4 +DIST_SUBDIRS = common guile linux kernel names osf1 stub sun4 |