linux_dummy.c revision 14331
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
9 *    notice, this list of conditions and the following disclaimer
10 *    in this position and unchanged.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 *    notice, this list of conditions and the following disclaimer in the
13 *    documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 *    derived from this software withough specific prior written permission
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
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 *  $Id: linux_dummy.c,v 1.2 1995/11/22 07:43:44 bde Exp $
29 */
30
31#include <sys/param.h>
32#include <sys/sysproto.h>
33#include <sys/systm.h>
34#include <sys/proc.h>
35#include <sys/resourcevar.h>
36
37#include <i386/linux/linux.h>
38#include <i386/linux/linux_proto.h>
39
40int
41linux_setup(struct proc *p, struct linux_setup_args *args, int *retval)
42{
43    printf("Linux-emul(%d): setup() not supported\n", p->p_pid);
44    return ENOSYS;
45}
46
47int
48linux_break(struct proc *p, struct linux_break_args *args, int *retval)
49{
50    printf("Linux-emul(%d): break() not supported\n", p->p_pid);
51    return ENOSYS;
52}
53
54int
55linux_stat(struct proc *p, struct linux_stat_args *args, int *retval)
56{
57    printf("Linux-emul(%d): stat() not supported\n", p->p_pid);
58    return ENOSYS;
59}
60
61int
62linux_fstat(struct proc *p, struct linux_fstat_args *args, int *retval)
63{
64    printf("Linux-emul(%d): fstat() not supported\n", p->p_pid);
65    return ENOSYS;
66}
67
68int
69linux_mount(struct proc *p, struct linux_mount_args *args, int *retval)
70{
71    printf("Linux-emul(%d): mount() not supported\n", p->p_pid);
72    return ENOSYS;
73}
74
75int
76linux_umount(struct proc *p, struct linux_umount_args *args, int *retval)
77{
78    printf("Linux-emul(%d): umount() not supported\n", p->p_pid);
79    return ENOSYS;
80}
81
82int
83linux_stime(struct proc *p, struct linux_stime_args *args, int *retval)
84{
85    printf("Linux-emul(%d): stime() not supported\n", p->p_pid);
86    return ENOSYS;
87}
88
89int
90linux_ptrace(struct proc *p, struct linux_ptrace_args *args, int *retval)
91{
92    printf("Linux-emul(%d): ptrace() not supported\n", p->p_pid);
93    return ENOSYS;
94}
95
96int
97linux_stty(struct proc *p, struct linux_stty_args *args, int *retval)
98{
99    printf("Linux-emul(%d): stty() not supported\n", p->p_pid);
100    return ENOSYS;
101}
102
103int
104linux_gtty(struct proc *p, struct linux_gtty_args *args, int *retval)
105{
106    printf("Linux-emul(%d): gtty() not supported\n", p->p_pid);
107    return ENOSYS;
108}
109
110int
111linux_nice(struct proc *p, struct linux_nice_args *args, int *retval)
112{
113    printf("Linux-emul(%d): nice() not supported\n", p->p_pid);
114    return ENOSYS;
115}
116
117int
118linux_ftime(struct proc *p, struct linux_ftime_args *args, int *retval)
119{
120    printf("Linux-emul(%d): ftime() not supported\n", p->p_pid);
121    return ENOSYS;
122}
123
124int
125linux_prof(struct proc *p, struct linux_prof_args *args, int *retval)
126{
127    printf("Linux-emul(%d): prof() not supported\n", p->p_pid);
128    return ENOSYS;
129}
130
131int
132linux_phys(struct proc *p, struct linux_phys_args *args, int *retval)
133{
134    printf("Linux-emul(%d): phys() not supported\n", p->p_pid);
135    return ENOSYS;
136}
137
138int
139linux_lock(struct proc *p, struct linux_lock_args *args, int *retval)
140{
141    printf("Linux-emul(%d): lock() not supported\n", p->p_pid);
142    return ENOSYS;
143}
144
145int
146linux_mpx(struct proc *p, struct linux_mpx_args *args, int *retval)
147{
148    printf("Linux-emul(%d): mpx() not supported\n", p->p_pid);
149    return ENOSYS;
150}
151
152int
153linux_ulimit(struct proc *p, struct linux_ulimit_args *args, int *retval)
154{
155    printf("Linux-emul(%d): ulimit() not supported\n", p->p_pid);
156    return ENOSYS;
157}
158
159int
160linux_olduname(struct proc *p, struct linux_olduname_args *args, int *retval)
161{
162    printf("Linux-emul(%d): olduname() not supported\n", p->p_pid);
163    return ENOSYS;
164}
165
166int
167linux_ustat(struct proc *p, struct linux_ustat_args *args, int *retval)
168{
169    printf("Linux-emul(%d): ustat() not supported\n", p->p_pid);
170    return ENOSYS;
171}
172
173int
174linux_ioperm(struct proc *p, struct linux_ioperm_args *args, int *retval)
175{
176    printf("Linux-emul(%d): ioperm() not supported\n", p->p_pid);
177    return 0; /* EINVAL SOS XXX */
178}
179
180int
181linux_ksyslog(struct proc *p, struct linux_ksyslog_args *args, int *retval)
182{
183    printf("Linux-emul(%d): ksyslog(%x) not supported\n",
184	p->p_pid, args->what);
185    return ENOSYS;	/* EPERM - Peter - it's a root-only thing */
186}
187
188int
189linux_iopl(struct proc *p, struct linux_iopl_args *args, int *retval)
190{
191    printf("Linux-emul(%d): iopl() not supported\n", p->p_pid);
192    return ENOSYS;
193}
194
195int
196linux_vhangup(struct proc *p, struct linux_vhangup_args *args, int *retval)
197{
198    printf("Linux-emul(%d): vhangup() not supported\n", p->p_pid);
199    return ENOSYS;
200}
201
202int
203linux_idle(struct proc *p, struct linux_idle_args *args, int *retval)
204{
205    printf("Linux-emul(%d): idle() not supported\n", p->p_pid);
206    return ENOSYS;
207}
208
209int
210linux_vm86(struct proc *p, struct linux_vm86_args *args, int *retval)
211{
212    printf("Linux-emul(%d): vm86() not supported\n", p->p_pid);
213    return ENOSYS;
214}
215
216int
217linux_swapoff(struct proc *p, struct linux_swapoff_args *args, int *retval)
218{
219    printf("Linux-emul(%d): swapoff() not supported\n", p->p_pid);
220    return ENOSYS;
221}
222
223int
224linux_sysinfo(struct proc *p, struct linux_sysinfo_args *args, int *retval)
225{
226    printf("Linux-emul(%d): sysinfo() not supported\n", p->p_pid);
227    return ENOSYS;
228}
229
230int
231linux_clone(struct proc *p, struct linux_clone_args *args, int *retval)
232{
233    printf("Linux-emul(%d): clone() not supported\n", p->p_pid);
234    return ENOSYS;
235}
236
237int
238linux_uname(struct proc *p, struct linux_uname_args *args, int *retval)
239{
240    printf("Linux-emul(%d): uname() not supported\n", p->p_pid);
241    return ENOSYS;
242}
243
244int
245linux_modify_ldt(struct proc *p, struct linux_modify_ldt_args *args, int *retval)
246{
247    printf("Linux-emul(%d): modify_ldt() not supported\n", p->p_pid);
248    return ENOSYS;
249}
250
251int
252linux_adjtimex(struct proc *p, struct linux_adjtimex_args *args, int *retval)
253{
254    printf("Linux-emul(%d): adjtimex() not supported\n", p->p_pid);
255    return ENOSYS;
256}
257
258int
259linux_create_module(struct proc *p, struct linux_create_module_args *args, int *retval)
260{
261    printf("Linux-emul(%d): create_module() not supported\n", p->p_pid);
262    return ENOSYS;
263}
264
265int
266linux_init_module(struct proc *p, struct linux_init_module_args *args, int *retval)
267{
268    printf("Linux-emul(%d): init_module() not supported\n", p->p_pid);
269    return ENOSYS;
270}
271
272int
273linux_delete_module(struct proc *p, struct linux_delete_module_args *args, int *retval)
274{
275    printf("Linux-emul(%d): delete_module() not supported\n", p->p_pid);
276    return ENOSYS;
277}
278
279int
280linux_get_kernel_syms(struct proc *p, struct linux_get_kernel_syms_args *args, int *retval)
281{
282    printf("Linux-emul(%d): get_kernel_syms() not supported\n", p->p_pid);
283    return ENOSYS;
284}
285
286int
287linux_quotactl(struct proc *p, struct linux_quotactl_args *args, int *retval)
288{
289    printf("Linux-emul(%d): quotactl() not supported\n", p->p_pid);
290    return ENOSYS;
291}
292
293int
294linux_bdflush(struct proc *p, struct linux_bdflush_args *args, int *retval)
295{
296    printf("Linux-emul(%d): bdflush() not supported\n", p->p_pid);
297    return ENOSYS;
298}
299