linux_dummy.c revision 53954
1309302Snp/*-
2309302Snp * Copyright (c) 1994-1995 S�ren Schmidt
3309302Snp * All rights reserved.
4309302Snp *
5309302Snp * Redistribution and use in source and binary forms, with or without
6309302Snp * modification, are permitted provided that the following conditions
7309302Snp * are met:
8309302Snp * 1. Redistributions of source code must retain the above copyright
9309302Snp *    notice, this list of conditions and the following disclaimer
10309302Snp *    in this position and unchanged.
11309302Snp * 2. Redistributions in binary form must reproduce the above copyright
12309302Snp *    notice, this list of conditions and the following disclaimer in the
13309302Snp *    documentation and/or other materials provided with the distribution.
14309302Snp * 3. The name of the author may not be used to endorse or promote products
15309302Snp *    derived from this software withough specific prior written permission
16309302Snp *
17309302Snp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18309302Snp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19309302Snp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20353418Snp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21309302Snp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22309302Snp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23309302Snp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24309302Snp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25309302Snp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26309302Snp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27309302Snp *
28 * $FreeBSD: head/sys/i386/linux/linux_dummy.c 53954 1999-11-30 15:02:28Z marcel $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/proc.h>
34
35#include <i386/linux/linux.h>
36#include <i386/linux/linux_proto.h>
37
38#define DUMMY(s) 							\
39int									\
40linux_ ## s(struct proc *p, struct linux_ ## s ## _args *args)		\
41{									\
42	return (unsupported_msg(p, #s));				\
43}									\
44struct __hack
45
46static int
47unsupported_msg(struct proc *p, const char *fname)
48{
49	printf("linux: syscall %s is obsoleted or not implemented (pid=%ld)\n",
50	       fname, (long)p->p_pid);
51	return (ENOSYS);
52}
53
54DUMMY(setup);
55DUMMY(break);
56DUMMY(stat);
57DUMMY(mount);
58DUMMY(umount);
59DUMMY(stime);
60DUMMY(ptrace);
61DUMMY(fstat);
62DUMMY(stty);
63DUMMY(gtty);
64DUMMY(ftime);
65DUMMY(prof);
66DUMMY(umount2);
67DUMMY(lock);
68DUMMY(mpx);
69DUMMY(ulimit);
70DUMMY(olduname);
71DUMMY(ksyslog);
72DUMMY(uname);
73DUMMY(vhangup);
74DUMMY(idle);
75DUMMY(vm86old);
76DUMMY(swapoff);
77DUMMY(sysinfo);
78DUMMY(adjtimex);
79DUMMY(create_module);
80DUMMY(init_module);
81DUMMY(delete_module);
82DUMMY(get_kernel_syms);
83DUMMY(quotactl);
84DUMMY(bdflush);
85DUMMY(sysfs);
86DUMMY(afs_syscall);
87DUMMY(setfsuid);
88DUMMY(setfsgid);
89DUMMY(getsid);
90DUMMY(sysctl);
91DUMMY(setresuid);
92DUMMY(getresuid);
93DUMMY(vm86);
94DUMMY(query_module);
95DUMMY(nfsservctl);
96DUMMY(setresgid);
97DUMMY(getresgid);
98DUMMY(prctl);
99DUMMY(rt_sigreturn);
100DUMMY(rt_sigpending);
101DUMMY(rt_sigtimedwait);
102DUMMY(rt_sigqueueinfo);
103DUMMY(pread);
104DUMMY(pwrite);
105DUMMY(capget);
106DUMMY(capset);
107DUMMY(sendfile);
108DUMMY(getpmsg);
109DUMMY(putpmsg);
110