2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 1994-1995 Søren Schmidt
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer
12 * in this position and unchanged.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. The name of the author may not be used to endorse or promote products
17 * derived from this software without specific prior written permission
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #include <sys/cdefs.h>
32 __FBSDID("$FreeBSD$");
34 #include "opt_compat.h"
36 #include <sys/param.h>
37 #include <sys/kernel.h>
39 #include <sys/systm.h>
42 #include <i386/linux/linux.h>
43 #include <i386/linux/linux_proto.h>
44 #include <compat/linux/linux_dtrace.h>
45 #include <compat/linux/linux_util.h>
48 LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
50 UNIMPLEMENTED(afs_syscall);
52 UNIMPLEMENTED(create_module); /* added in linux 1.0 removed in 2.6 */
54 UNIMPLEMENTED(get_kernel_syms); /* added in linux 1.0 removed in 2.6 */
55 UNIMPLEMENTED(getpmsg);
60 UNIMPLEMENTED(nfsservctl); /* added in linux 2.2 removed in 3.1 */
62 UNIMPLEMENTED(profil);
63 UNIMPLEMENTED(putpmsg);
64 UNIMPLEMENTED(query_module); /* added in linux 2.2 removed in 2.6 */
65 UNIMPLEMENTED(ulimit);
66 UNIMPLEMENTED(vserver);
83 DUMMY(sendfile); /* different semantics */
87 DUMMY(lookup_dcookie);
88 DUMMY(remap_file_pages);
101 DUMMY(inotify_add_watch);
102 DUMMY(inotify_rm_watch);
104 DUMMY(migrate_pages);
108 DUMMY(sync_file_range);
119 DUMMY(inotify_init1);
121 DUMMY(perf_event_open);
123 DUMMY(fanotify_init);
124 DUMMY(fanotify_mark);
126 DUMMY(name_to_handle_at);
127 DUMMY(open_by_handle_at);
128 DUMMY(clock_adjtime);
132 DUMMY(process_vm_readv);
133 DUMMY(process_vm_writev);
138 DUMMY(sched_setattr);
139 DUMMY(sched_getattr);
156 DUMMY(copy_file_range);
161 DUMMY(pkey_mprotect);
165 #define DUMMY_XATTR(s) \
167 linux_ ## s ## xattr( \
168 struct thread *td, struct linux_ ## s ## xattr_args *arg) \
183 DUMMY_XATTR(lremove);
184 DUMMY_XATTR(fremove);