linux32_dummy.c revision 293505
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 without 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
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: stable/10/sys/amd64/linux32/linux32_dummy.c 293505 2016-01-09 15:31:15Z dchagin $");
31
32#include "opt_compat.h"
33#include "opt_kdtrace.h"
34
35#include <sys/param.h>
36#include <sys/kernel.h>
37#include <sys/sdt.h>
38#include <sys/systm.h>
39#include <sys/proc.h>
40
41#include <amd64/linux32/linux.h>
42#include <amd64/linux32/linux32_proto.h>
43#include <compat/linux/linux_dtrace.h>
44#include <compat/linux/linux_util.h>
45
46/* DTrace init */
47LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
48
49DUMMY(stime);
50DUMMY(olduname);
51DUMMY(syslog);
52DUMMY(uname);
53DUMMY(vhangup);
54DUMMY(swapoff);
55DUMMY(adjtimex);
56DUMMY(create_module);
57DUMMY(init_module);
58DUMMY(delete_module);
59DUMMY(get_kernel_syms);
60DUMMY(quotactl);
61DUMMY(bdflush);
62DUMMY(sysfs);
63DUMMY(query_module);
64DUMMY(nfsservctl);
65DUMMY(sendfile);
66DUMMY(setfsuid);
67DUMMY(setfsgid);
68DUMMY(pivot_root);
69DUMMY(mincore);
70DUMMY(ptrace);
71DUMMY(lookup_dcookie);
72DUMMY(epoll_create);
73DUMMY(epoll_ctl);
74DUMMY(epoll_wait);
75DUMMY(remap_file_pages);
76DUMMY(fstatfs64);
77DUMMY(mbind);
78DUMMY(get_mempolicy);
79DUMMY(set_mempolicy);
80DUMMY(mq_open);
81DUMMY(mq_unlink);
82DUMMY(mq_timedsend);
83DUMMY(mq_timedreceive);
84DUMMY(mq_notify);
85DUMMY(mq_getsetattr);
86DUMMY(kexec_load);
87/* linux 2.6.11: */
88DUMMY(add_key);
89DUMMY(request_key);
90DUMMY(keyctl);
91/* linux 2.6.13: */
92DUMMY(ioprio_set);
93DUMMY(ioprio_get);
94DUMMY(inotify_init);
95DUMMY(inotify_add_watch);
96DUMMY(inotify_rm_watch);
97/* linux 2.6.16: */
98DUMMY(migrate_pages);
99DUMMY(pselect6);
100DUMMY(ppoll);
101DUMMY(unshare);
102/* linux 2.6.17: */
103DUMMY(splice);
104DUMMY(sync_file_range);
105DUMMY(tee);
106DUMMY(vmsplice);
107/* linux 2.6.18: */
108DUMMY(move_pages);
109/* linux 2.6.19: */
110DUMMY(getcpu);
111DUMMY(epoll_pwait);
112/* linux 2.6.22: */
113DUMMY(utimensat);
114DUMMY(signalfd);
115DUMMY(timerfd_create);
116DUMMY(eventfd);
117/* linux 2.6.23: */
118DUMMY(fallocate);
119/* linux 2.6.25: */
120DUMMY(timerfd_settime);
121DUMMY(timerfd_gettime);
122/* linux 2.6.27: */
123DUMMY(signalfd4);
124DUMMY(eventfd2);
125DUMMY(epoll_create1);
126DUMMY(dup3);
127DUMMY(inotify_init1);
128/* linux 2.6.30: */
129DUMMY(preadv);
130DUMMY(pwritev);
131/* linux 2.6.31: */
132DUMMY(rt_tsigqueueinfo);
133DUMMY(perf_event_open);
134/* linux 2.6.33: */
135DUMMY(recvmmsg);
136DUMMY(fanotify_init);
137DUMMY(fanotify_mark);
138/* linux 2.6.36: */
139DUMMY(prlimit64);
140/* later: */
141DUMMY(name_to_handle_at);
142DUMMY(open_by_handle_at);
143DUMMY(clock_adjtime);
144DUMMY(syncfs);
145DUMMY(sendmmsg);
146DUMMY(setns);
147DUMMY(process_vm_readv);
148DUMMY(process_vm_writev);
149
150#define DUMMY_XATTR(s)						\
151int								\
152linux_ ## s ## xattr(						\
153    struct thread *td, struct linux_ ## s ## xattr_args *arg)	\
154{								\
155								\
156	return (ENOATTR);					\
157}
158DUMMY_XATTR(set);
159DUMMY_XATTR(lset);
160DUMMY_XATTR(fset);
161DUMMY_XATTR(get);
162DUMMY_XATTR(lget);
163DUMMY_XATTR(fget);
164DUMMY_XATTR(list);
165DUMMY_XATTR(llist);
166DUMMY_XATTR(flist);
167DUMMY_XATTR(remove);
168DUMMY_XATTR(lremove);
169DUMMY_XATTR(fremove);
170