19313Ssos/*-
2230132Suqs * Copyright (c) 1994-1995 S��ren Schmidt
39313Ssos * All rights reserved.
49313Ssos *
59313Ssos * Redistribution and use in source and binary forms, with or without
69313Ssos * modification, are permitted provided that the following conditions
79313Ssos * are met:
89313Ssos * 1. Redistributions of source code must retain the above copyright
99313Ssos *    notice, this list of conditions and the following disclaimer
109313Ssos *    in this position and unchanged.
119313Ssos * 2. Redistributions in binary form must reproduce the above copyright
129313Ssos *    notice, this list of conditions and the following disclaimer in the
139313Ssos *    documentation and/or other materials provided with the distribution.
149313Ssos * 3. The name of the author may not be used to endorse or promote products
1597748Sschweikh *    derived from this software without specific prior written permission
169313Ssos *
179313Ssos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
189313Ssos * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
199313Ssos * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
209313Ssos * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
219313Ssos * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
229313Ssos * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
239313Ssos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
249313Ssos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
259313Ssos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
269313Ssos * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
279313Ssos */
289313Ssos
29115705Sobrien#include <sys/cdefs.h>
30115705Sobrien__FBSDID("$FreeBSD: releng/10.3/sys/i386/linux/linux_dummy.c 293592 2016-01-09 17:54:37Z dchagin $");
31115705Sobrien
32235063Snetchild#include "opt_compat.h"
33235063Snetchild#include "opt_kdtrace.h"
34235063Snetchild
359313Ssos#include <sys/param.h>
36235063Snetchild#include <sys/kernel.h>
37235063Snetchild#include <sys/sdt.h>
389313Ssos#include <sys/systm.h>
399313Ssos#include <sys/proc.h>
409313Ssos
4114331Speter#include <i386/linux/linux.h>
4268583Smarcel#include <i386/linux/linux_proto.h>
43235063Snetchild#include <compat/linux/linux_dtrace.h>
4483221Smarcel#include <compat/linux/linux_util.h>
4512458Sbde
46235063Snetchild/* DTrace init */
47235063SnetchildLIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
48235063Snetchild
4949850SmarcelDUMMY(stime);
5049850SmarcelDUMMY(fstat);
5149850SmarcelDUMMY(olduname);
5283221SmarcelDUMMY(syslog);
5349850SmarcelDUMMY(uname);
5449850SmarcelDUMMY(vhangup);
5550345SmarcelDUMMY(vm86old);
5649850SmarcelDUMMY(swapoff);
5749850SmarcelDUMMY(adjtimex);
5849850SmarcelDUMMY(create_module);
5949850SmarcelDUMMY(init_module);
6049850SmarcelDUMMY(delete_module);
6149850SmarcelDUMMY(get_kernel_syms);
6249850SmarcelDUMMY(quotactl);
6349850SmarcelDUMMY(bdflush);
6450345SmarcelDUMMY(sysfs);
6550345SmarcelDUMMY(vm86);
6650345SmarcelDUMMY(query_module);
6750345SmarcelDUMMY(nfsservctl);
68161310SnetchildDUMMY(sendfile);		/* different semantics */
6983221SmarcelDUMMY(setfsuid);
7083221SmarcelDUMMY(setfsgid);
7183221SmarcelDUMMY(pivot_root);
7283221SmarcelDUMMY(mincore);
73159799SnetchildDUMMY(lookup_dcookie);
74159799SnetchildDUMMY(remap_file_pages);
75159799SnetchildDUMMY(fstatfs64);
76159799SnetchildDUMMY(mbind);
77159799SnetchildDUMMY(get_mempolicy);
78159799SnetchildDUMMY(set_mempolicy);
79159799SnetchildDUMMY(kexec_load);
80232799Snetchild/* linux 2.6.11: */
81159799SnetchildDUMMY(add_key);
82159799SnetchildDUMMY(request_key);
83159799SnetchildDUMMY(keyctl);
84232799Snetchild/* linux 2.6.13: */
85159799SnetchildDUMMY(ioprio_set);
86159799SnetchildDUMMY(ioprio_get);
87159799SnetchildDUMMY(inotify_init);
88159799SnetchildDUMMY(inotify_add_watch);
89159799SnetchildDUMMY(inotify_rm_watch);
90232799Snetchild/* linux 2.6.16: */
91159799SnetchildDUMMY(migrate_pages);
92159799SnetchildDUMMY(unshare);
93232799Snetchild/* linux 2.6.17: */
94178257SjkimDUMMY(splice);
95178257SjkimDUMMY(sync_file_range);
96178257SjkimDUMMY(tee);
97178257SjkimDUMMY(vmsplice);
98232799Snetchild/* linux 2.6.18: */
99232799SnetchildDUMMY(move_pages);
100232799Snetchild/* linux 2.6.19: */
101232799SnetchildDUMMY(getcpu);
102232799Snetchild/* linux 2.6.22: */
103232799SnetchildDUMMY(signalfd);
104232799SnetchildDUMMY(timerfd_create);
105232799Snetchild/* linux 2.6.25: */
106232799SnetchildDUMMY(timerfd_settime);
107232799SnetchildDUMMY(timerfd_gettime);
108232799Snetchild/* linux 2.6.27: */
109232799SnetchildDUMMY(signalfd4);
110232799SnetchildDUMMY(inotify_init1);
111232799Snetchild/* linux 2.6.30: */
112232799SnetchildDUMMY(preadv);
113232799SnetchildDUMMY(pwritev);
114232799Snetchild/* linux 2.6.31 */
115232799SnetchildDUMMY(rt_tsigqueueinfo);
116232799SnetchildDUMMY(perf_event_open);
117232799Snetchild/* linux 2.6.33: */
118232799SnetchildDUMMY(fanotify_init);
119232799SnetchildDUMMY(fanotify_mark);
120232799Snetchild/* later: */
121232799SnetchildDUMMY(name_to_handle_at);
122232799SnetchildDUMMY(open_by_handle_at);
123232799SnetchildDUMMY(clock_adjtime);
124232799SnetchildDUMMY(setns);
125232799SnetchildDUMMY(process_vm_readv);
126232799SnetchildDUMMY(process_vm_writev);
127122802Ssobomax
128122802Ssobomax#define DUMMY_XATTR(s)						\
129122802Ssobomaxint								\
130122802Ssobomaxlinux_ ## s ## xattr(						\
131122802Ssobomax    struct thread *td, struct linux_ ## s ## xattr_args *arg)	\
132122802Ssobomax{								\
133122802Ssobomax								\
134122802Ssobomax	return (ENOATTR);					\
135122802Ssobomax}
136122802SsobomaxDUMMY_XATTR(set);
137122802SsobomaxDUMMY_XATTR(lset);
138122802SsobomaxDUMMY_XATTR(fset);
139122802SsobomaxDUMMY_XATTR(get);
140122802SsobomaxDUMMY_XATTR(lget);
141122802SsobomaxDUMMY_XATTR(fget);
142122802SsobomaxDUMMY_XATTR(list);
143122802SsobomaxDUMMY_XATTR(llist);
144122802SsobomaxDUMMY_XATTR(flist);
145122802SsobomaxDUMMY_XATTR(remove);
146122802SsobomaxDUMMY_XATTR(lremove);
147122802SsobomaxDUMMY_XATTR(fremove);
148