From 9661c4becc48e0f30450a4e6fc2b14ad6a86955a Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sat, 13 Jun 1998 21:26:49 +0000 Subject: [PATCH] New directory. Contains some kernel code to implement a new system call 1998-06-13 Martin Baulig * 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. --- ChangeLog | 14 ++++++++++++++ configure.in | 14 ++------------ examples/first.c | 8 ++++++++ sysdeps/Makefile.am | 2 +- 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0128056d..31c702e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +1998-06-13 Martin Baulig + + * 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 * 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 +#include +#include + +#include + +_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