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 * $FreeBSD$
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 int
39 linux_setup(struct proc *p, struct linux_setup_args *args)
40 {
41 printf("Linux-emul(%d): setup() not supported\n", p->p_pid);
42 return ENOSYS;
43 }
44
45 int
46 linux_break(struct proc *p, struct linux_break_args *args)
47 {
48 printf("Linux-emul(%d): break() not supported\n", p->p_pid);
49 return ENOSYS;
50 }
51
52 int
53 linux_stat(struct proc *p, struct linux_stat_args *args)
54 {
55 printf("Linux-emul(%d): stat() not supported\n", p->p_pid);
56 return ENOSYS;
57 }
58
59 int
60 linux_fstat(struct proc *p, struct linux_fstat_args *args)
61 {
62 printf("Linux-emul(%d): fstat() not supported\n", p->p_pid);
63 return ENOSYS;
64 }
65
66 int
67 linux_mount(struct proc *p, struct linux_mount_args *args)
68 {
69 printf("Linux-emul(%d): mount() not supported\n", p->p_pid);
70 return ENOSYS;
71 }
72
73 int
74 linux_umount(struct proc *p, struct linux_umount_args *args)
75 {
76 printf("Linux-emul(%d): umount() not supported\n", p->p_pid);
77 return ENOSYS;
78 }
79
80 int
81 linux_stime(struct proc *p, struct linux_stime_args *args)
82 {
83 printf("Linux-emul(%d): stime() not supported\n", p->p_pid);
84 return ENOSYS;
85 }
86
87 int
88 linux_ptrace(struct proc *p, struct linux_ptrace_args *args)
89 {
90 printf("Linux-emul(%d): ptrace() not supported\n", p->p_pid);
91 return ENOSYS;
92 }
93
94 int
95 linux_stty(struct proc *p, struct linux_stty_args *args)
96 {
97 printf("Linux-emul(%d): stty() not supported\n", p->p_pid);
98 return ENOSYS;
99 }
100
101 int
102 linux_gtty(struct proc *p, struct linux_gtty_args *args)
103 {
104 printf("Linux-emul(%d): gtty() not supported\n", p->p_pid);
105 return ENOSYS;
106 }
107
108 int
109 linux_ftime(struct proc *p, struct linux_ftime_args *args)
110 {
111 printf("Linux-emul(%d): ftime() not supported\n", p->p_pid);
112 return ENOSYS;
113 }
114
115 int
116 linux_prof(struct proc *p, struct linux_prof_args *args)
117 {
118 printf("Linux-emul(%d): prof() not supported\n", p->p_pid);
119 return ENOSYS;
120 }
121
122 int
123 linux_phys(struct proc *p, struct linux_phys_args *args)
124 {
125 printf("Linux-emul(%d): phys() not supported\n", p->p_pid);
126 return ENOSYS;
127 }
128
129 int
130 linux_lock(struct proc *p, struct linux_lock_args *args)
131 {
132 printf("Linux-emul(%d): lock() not supported\n", p->p_pid);
133 return ENOSYS;
134 }
135
136 int
137 linux_mpx(struct proc *p, struct linux_mpx_args *args)
138 {
139 printf("Linux-emul(%d): mpx() not supported\n", p->p_pid);
140 return ENOSYS;
141 }
142
143 int
144 linux_ulimit(struct proc *p, struct linux_ulimit_args *args)
145 {
146 printf("Linux-emul(%d): ulimit() not supported\n", p->p_pid);
147 return ENOSYS;
148 }
149
150 int
151 linux_olduname(struct proc *p, struct linux_olduname_args *args)
152 {
153 printf("Linux-emul(%d): olduname() not supported\n", p->p_pid);
154 return ENOSYS;
155 }
156
157 int
158 linux_ioperm(struct proc *p, struct linux_ioperm_args *args)
159 {
160 printf("Linux-emul(%d): ioperm() not supported\n", p->p_pid);
161 return 0; /* EINVAL SOS XXX */
162 }
163
164 int
165 linux_ksyslog(struct proc *p, struct linux_ksyslog_args *args)
166 {
167 printf("Linux-emul(%d): ksyslog(%x) not supported\n",
168 p->p_pid, args->what);
169 return ENOSYS; /* EPERM - Peter - it's a root-only thing */
170 }
171
172 int
173 linux_vhangup(struct proc *p, struct linux_vhangup_args *args)
174 {
175 printf("Linux-emul(%d): vhangup() not supported\n", p->p_pid);
176 return ENOSYS;
177 }
178
179 int
180 linux_idle(struct proc *p, struct linux_idle_args *args)
181 {
182 printf("Linux-emul(%d): idle() not supported\n", p->p_pid);
183 return ENOSYS;
184 }
185
186 int
187 linux_vm86(struct proc *p, struct linux_vm86_args *args)
188 {
189 printf("Linux-emul(%d): vm86() not supported\n", p->p_pid);
190 return ENOSYS;
191 }
192
193 int
194 linux_swapoff(struct proc *p, struct linux_swapoff_args *args)
195 {
196 printf("Linux-emul(%d): swapoff() not supported\n", p->p_pid);
197 return ENOSYS;
198 }
199
200 int
201 linux_sysinfo(struct proc *p, struct linux_sysinfo_args *args)
202 {
203 printf("Linux-emul(%d): sysinfo() not supported\n", p->p_pid);
204 return ENOSYS;
205 }
206
207 int
208 linux_uname(struct proc *p, struct linux_uname_args *args)
209 {
210 printf("Linux-emul(%d): uname() not supported\n", p->p_pid);
211 return ENOSYS;
212 }
213
214 int
215 linux_modify_ldt(struct proc *p, struct linux_modify_ldt_args *args)
216 {
217 printf("Linux-emul(%d): modify_ldt() not supported\n", p->p_pid);
218 return ENOSYS;
219 }
220
221 int
222 linux_adjtimex(struct proc *p, struct linux_adjtimex_args *args)
223 {
224 printf("Linux-emul(%d): adjtimex() not supported\n", p->p_pid);
225 return ENOSYS;
226 }
227
228 int
229 linux_create_module(struct proc *p, struct linux_create_module_args *args)
230 {
231 printf("Linux-emul(%d): create_module() not supported\n", p->p_pid);
232 return ENOSYS;
233 }
234
235 int
236 linux_init_module(struct proc *p, struct linux_init_module_args *args)
237 {
238 printf("Linux-emul(%d): init_module() not supported\n", p->p_pid);
239 return ENOSYS;
240 }
241
242 int
243 linux_delete_module(struct proc *p, struct linux_delete_module_args *args)
244 {
245 printf("Linux-emul(%d): delete_module() not supported\n", p->p_pid);
246 return ENOSYS;
247 }
248
249 int
250 linux_get_kernel_syms(struct proc *p, struct linux_get_kernel_syms_args *args)
251 {
252 printf("Linux-emul(%d): get_kernel_syms() not supported\n", p->p_pid);
253 return ENOSYS;
254 }
255
256 int
257 linux_quotactl(struct proc *p, struct linux_quotactl_args *args)
258 {
259 printf("Linux-emul(%d): quotactl() not supported\n", p->p_pid);
260 return ENOSYS;
261 }
262
263 int
264 linux_bdflush(struct proc *p, struct linux_bdflush_args *args)
265 {
266 printf("Linux-emul(%d): bdflush() not supported\n", p->p_pid);
267 return ENOSYS;
268 }
Cache object: 5a6b33e5cc90925771ada47bdf289c77
|