Deleted Added
full compact
linux_dummy.c (80180) linux_dummy.c (83221)
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/i386/linux/linux_dummy.c 80180 2001-07-23 06:22:10Z pirzyk $
28 * $FreeBSD: head/sys/i386/linux/linux_dummy.c 83221 2001-09-08 19:07:04Z 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>
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#include <compat/linux/linux_util.h>
37
38
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(stime);
58DUMMY(ptrace);
59DUMMY(fstat);
39DUMMY(stat);
40DUMMY(stime);
41DUMMY(ptrace);
42DUMMY(fstat);
60DUMMY(stty);
61DUMMY(gtty);
62DUMMY(ftime);
63DUMMY(prof);
64DUMMY(lock);
65DUMMY(mpx);
66DUMMY(ulimit);
67DUMMY(olduname);
43DUMMY(olduname);
68DUMMY(ksyslog);
44DUMMY(syslog);
69DUMMY(uname);
70DUMMY(vhangup);
45DUMMY(uname);
46DUMMY(vhangup);
71DUMMY(idle);
72DUMMY(vm86old);
73DUMMY(swapoff);
74DUMMY(adjtimex);
75DUMMY(create_module);
76DUMMY(init_module);
77DUMMY(delete_module);
78DUMMY(get_kernel_syms);
79DUMMY(quotactl);
80DUMMY(bdflush);
81DUMMY(sysfs);
47DUMMY(vm86old);
48DUMMY(swapoff);
49DUMMY(adjtimex);
50DUMMY(create_module);
51DUMMY(init_module);
52DUMMY(delete_module);
53DUMMY(get_kernel_syms);
54DUMMY(quotactl);
55DUMMY(bdflush);
56DUMMY(sysfs);
82DUMMY(afs_syscall);
83DUMMY(setfsuid);
84DUMMY(setfsgid);
85DUMMY(getsid);
57DUMMY(getsid);
86DUMMY(sysctl);
87DUMMY(getresuid);
88DUMMY(vm86);
89DUMMY(query_module);
90DUMMY(nfsservctl);
58DUMMY(vm86);
59DUMMY(query_module);
60DUMMY(nfsservctl);
91DUMMY(getresgid);
92DUMMY(prctl);
93DUMMY(rt_sigpending);
94DUMMY(rt_sigtimedwait);
95DUMMY(rt_sigqueueinfo);
96DUMMY(capget);
97DUMMY(capset);
98DUMMY(sendfile);
61DUMMY(prctl);
62DUMMY(rt_sigpending);
63DUMMY(rt_sigtimedwait);
64DUMMY(rt_sigqueueinfo);
65DUMMY(capget);
66DUMMY(capset);
67DUMMY(sendfile);
99DUMMY(getpmsg);
100DUMMY(putpmsg);
101DUMMY(ugetrlimit);
102DUMMY(mmap2);
103DUMMY(truncate64);
104DUMMY(ftruncate64);
68DUMMY(mmap2);
69DUMMY(truncate64);
70DUMMY(ftruncate64);
105DUMMY(stat64);
106DUMMY(lstat64);
107DUMMY(fstat64);
71DUMMY(lchown);
72DUMMY(fchown);
73DUMMY(chown);
74DUMMY(setfsuid);
75DUMMY(setfsgid);
76DUMMY(pivot_root);
77DUMMY(mincore);
78DUMMY(madvise);