summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2000-11-01 23:13:49 +0000
committergallatin <gallatin@FreeBSD.org>2000-11-01 23:13:49 +0000
commitb8fdbf65c5514fbd472bc75315c7d69dd84619ed (patch)
tree3a4c85d985c061efccde2533d5bb311881e26d6e /sys
parent1174b5d169d1dae07cb6705060f07179c3ac8dc2 (diff)
downloadFreeBSD-src-b8fdbf65c5514fbd472bc75315c7d69dd84619ed.zip
FreeBSD-src-b8fdbf65c5514fbd472bc75315c7d69dd84619ed.tar.gz
use DUMMY macro and support from linux_util.h
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/linux/linux_dummy.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/alpha/linux/linux_dummy.c b/sys/alpha/linux/linux_dummy.c
index cf1e0cb..c44e628 100644
--- a/sys/alpha/linux/linux_dummy.c
+++ b/sys/alpha/linux/linux_dummy.c
@@ -35,22 +35,8 @@
#include <alpha/linux/linux.h>
#include <linux_proto.h>
+#include <compat/linux/linux_util.h>
-#define DUMMY(s) \
-int \
-linux_ ## s(struct proc *p, struct linux_ ## s ## _args *args) \
-{ \
- return (unsupported_msg(p, #s)); \
-} \
-struct __hack
-
-static int
-unsupported_msg(struct proc *p, const char *fname)
-{
- printf("linux: syscall %s is obsoleted or not implemented (pid=%ld)\n",
- fname, (long)p->p_pid);
- return (ENOSYS);
-}
DUMMY(mount);
DUMMY(umount);
OpenPOWER on IntegriCloud