2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
4 * Copyright (c) 2013 Dmitry Chagin <dchagin@FreeBSD.org>
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
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.
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 #include <sys/cdefs.h>
29 __FBSDID("$FreeBSD$");
31 #include <sys/param.h>
32 #include <sys/kernel.h>
34 #include <sys/systm.h>
38 * Including linux vs linux32 here is arbitrary -- the syscall args structures
39 * (proto.h) are not dereferenced by the DUMMY stub implementations, and
40 * suitable for use by both native and compat32 entrypoints.
42 #include <machine/../linux/linux.h>
43 #include <machine/../linux/linux_proto.h>
45 #include <compat/linux/linux_dtrace.h>
46 #include <compat/linux/linux_util.h>
49 LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
51 UNIMPLEMENTED(afs_syscall);
52 UNIMPLEMENTED(create_module); /* Added in Linux 1.0 removed in 2.6. */
53 UNIMPLEMENTED(epoll_ctl_old);
54 UNIMPLEMENTED(epoll_wait_old);
55 UNIMPLEMENTED(get_kernel_syms); /* Added in Linux 1.0 removed in 2.6. */
56 UNIMPLEMENTED(getpmsg);
57 UNIMPLEMENTED(nfsservctl); /* Added in Linux 2.2 removed in 3.1. */
58 UNIMPLEMENTED(putpmsg);
59 UNIMPLEMENTED(query_module); /* Added in Linux 2.2 removed in 2.6. */
60 UNIMPLEMENTED(security);
61 UNIMPLEMENTED(vserver);
71 DUMMY(lookup_dcookie);
72 DUMMY(remap_file_pages);
84 DUMMY(inotify_add_watch);
85 DUMMY(inotify_rm_watch);
98 DUMMY(perf_event_open);
100 DUMMY(fanotify_init);
101 DUMMY(fanotify_mark);
103 DUMMY(clock_adjtime);
107 DUMMY(process_vm_readv);
108 DUMMY(process_vm_writev);
113 DUMMY(sched_setattr);
114 DUMMY(sched_getattr);
131 DUMMY(pkey_mprotect);
144 DUMMY(process_madvise);
146 DUMMY(mount_setattr);
148 DUMMY(io_pgetevents);
151 DUMMY(pidfd_send_signal);
152 DUMMY(io_uring_setup);
153 DUMMY(io_uring_enter);
154 DUMMY(io_uring_register);
156 #define DUMMY_XATTR(s) \
158 linux_ ## s ## xattr( \
159 struct thread *td, struct linux_ ## s ## xattr_args *arg) \
162 return (EOPNOTSUPP); \
174 DUMMY_XATTR(lremove);
175 DUMMY_XATTR(fremove);