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