]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/amd64/linux32/linux32_dummy.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / amd64 / linux32 / linux32_dummy.c
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$");
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 */
47 LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
48
49 DUMMY(stime);
50 DUMMY(olduname);
51 DUMMY(syslog);
52 DUMMY(uname);
53 DUMMY(vhangup);
54 DUMMY(swapoff);
55 DUMMY(adjtimex);
56 DUMMY(create_module);
57 DUMMY(init_module);
58 DUMMY(delete_module);
59 DUMMY(get_kernel_syms);
60 DUMMY(quotactl);
61 DUMMY(bdflush);
62 DUMMY(sysfs);
63 DUMMY(query_module);
64 DUMMY(nfsservctl);
65 DUMMY(rt_sigqueueinfo);
66 DUMMY(sendfile);
67 DUMMY(setfsuid);
68 DUMMY(setfsgid);
69 DUMMY(pivot_root);
70 DUMMY(mincore);
71 DUMMY(ptrace);
72 DUMMY(lookup_dcookie);
73 DUMMY(epoll_create);
74 DUMMY(epoll_ctl);
75 DUMMY(epoll_wait);
76 DUMMY(remap_file_pages);
77 DUMMY(timer_create);
78 DUMMY(timer_settime);
79 DUMMY(timer_gettime);
80 DUMMY(timer_getoverrun);
81 DUMMY(timer_delete);
82 DUMMY(fstatfs64);
83 DUMMY(mbind);
84 DUMMY(get_mempolicy);
85 DUMMY(set_mempolicy);
86 DUMMY(mq_open);
87 DUMMY(mq_unlink);
88 DUMMY(mq_timedsend);
89 DUMMY(mq_timedreceive);
90 DUMMY(mq_notify);
91 DUMMY(mq_getsetattr);
92 DUMMY(kexec_load);
93 DUMMY(waitid);
94 /* linux 2.6.11: */
95 DUMMY(add_key);
96 DUMMY(request_key);
97 DUMMY(keyctl);
98 /* linux 2.6.13: */
99 DUMMY(ioprio_set);
100 DUMMY(ioprio_get);
101 DUMMY(inotify_init);
102 DUMMY(inotify_add_watch);
103 DUMMY(inotify_rm_watch);
104 /* linux 2.6.16: */
105 DUMMY(migrate_pages);
106 DUMMY(pselect6);
107 DUMMY(ppoll);
108 DUMMY(unshare);
109 /* linux 2.6.17: */
110 DUMMY(splice);
111 DUMMY(sync_file_range);
112 DUMMY(tee);
113 DUMMY(vmsplice);
114 /* linux 2.6.18: */
115 DUMMY(move_pages);
116 /* linux 2.6.19: */
117 DUMMY(getcpu);
118 DUMMY(epoll_pwait);
119 /* linux 2.6.22: */
120 DUMMY(utimensat);
121 DUMMY(signalfd);
122 DUMMY(timerfd_create);
123 DUMMY(eventfd);
124 /* linux 2.6.23: */
125 DUMMY(fallocate);
126 /* linux 2.6.25: */
127 DUMMY(timerfd_settime);
128 DUMMY(timerfd_gettime);
129 /* linux 2.6.27: */
130 DUMMY(signalfd4);
131 DUMMY(eventfd2);
132 DUMMY(epoll_create1);
133 DUMMY(dup3);
134 DUMMY(inotify_init1);
135 /* linux 2.6.30: */
136 DUMMY(preadv);
137 DUMMY(pwritev);
138 /* linux 2.6.31: */
139 DUMMY(rt_tsigqueueinfo);
140 DUMMY(perf_event_open);
141 /* linux 2.6.33: */
142 DUMMY(recvmmsg);
143 DUMMY(fanotify_init);
144 DUMMY(fanotify_mark);
145 /* linux 2.6.36: */
146 DUMMY(prlimit64);
147 /* later: */
148 DUMMY(name_to_handle_at);
149 DUMMY(open_by_handle_at);
150 DUMMY(clock_adjtime);
151 DUMMY(syncfs);
152 DUMMY(sendmmsg);
153 DUMMY(setns);
154 DUMMY(process_vm_readv);
155 DUMMY(process_vm_writev);
156
157 #define DUMMY_XATTR(s)                                          \
158 int                                                             \
159 linux_ ## s ## xattr(                                           \
160     struct thread *td, struct linux_ ## s ## xattr_args *arg)   \
161 {                                                               \
162                                                                 \
163         return (ENOATTR);                                       \
164 }
165 DUMMY_XATTR(set);
166 DUMMY_XATTR(lset);
167 DUMMY_XATTR(fset);
168 DUMMY_XATTR(get);
169 DUMMY_XATTR(lget);
170 DUMMY_XATTR(fget);
171 DUMMY_XATTR(list);
172 DUMMY_XATTR(llist);
173 DUMMY_XATTR(flist);
174 DUMMY_XATTR(remove);
175 DUMMY_XATTR(lremove);
176 DUMMY_XATTR(fremove);