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 <amd64/linux32/linux.h>
43 #include <amd64/linux32/linux32_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);
85 DUMMY(lookup_dcookie);
86 DUMMY(remap_file_pages);
93 DUMMY(mq_timedreceive);
105 DUMMY(inotify_add_watch);
106 DUMMY(inotify_rm_watch);
108 DUMMY(migrate_pages);
112 DUMMY(sync_file_range);
123 DUMMY(inotify_init1);
125 DUMMY(perf_event_open);
127 DUMMY(fanotify_init);
128 DUMMY(fanotify_mark);
130 DUMMY(name_to_handle_at);
131 DUMMY(open_by_handle_at);
132 DUMMY(clock_adjtime);
136 DUMMY(process_vm_readv);
137 DUMMY(process_vm_writev);
142 DUMMY(sched_setattr);
143 DUMMY(sched_getattr);
160 DUMMY(copy_file_range);
165 DUMMY(pkey_mprotect);
169 #define DUMMY_XATTR(s) \
171 linux_ ## s ## xattr( \
172 struct thread *td, struct linux_ ## s ## xattr_args *arg) \
187 DUMMY_XATTR(lremove);
188 DUMMY_XATTR(fremove);