Deleted Added
full compact
linux_dummy.c (302408) linux_dummy.c (314107)
1/*-
2 * Copyright (c) 2013 Dmitry Chagin
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

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2013 Dmitry Chagin
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

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/sys/amd64/linux/linux_dummy.c 291153 2015-11-22 02:01:01Z markj $");
28__FBSDID("$FreeBSD: stable/11/sys/amd64/linux/linux_dummy.c 314107 2017-02-22 19:57:59Z dchagin $");
29
30#include "opt_compat.h"
31
32#include <sys/param.h>
33#include <sys/kernel.h>
34#include <sys/sdt.h>
35#include <sys/systm.h>
36#include <sys/proc.h>

--- 40 unchanged lines hidden (view full) ---

77DUMMY(set_mempolicy);
78DUMMY(mq_open);
79DUMMY(mq_unlink);
80DUMMY(mq_timedsend);
81DUMMY(mq_timedreceive);
82DUMMY(mq_notify);
83DUMMY(mq_getsetattr);
84DUMMY(kexec_load);
29
30#include "opt_compat.h"
31
32#include <sys/param.h>
33#include <sys/kernel.h>
34#include <sys/sdt.h>
35#include <sys/systm.h>
36#include <sys/proc.h>

--- 40 unchanged lines hidden (view full) ---

77DUMMY(set_mempolicy);
78DUMMY(mq_open);
79DUMMY(mq_unlink);
80DUMMY(mq_timedsend);
81DUMMY(mq_timedreceive);
82DUMMY(mq_notify);
83DUMMY(mq_getsetattr);
84DUMMY(kexec_load);
85/* linux 2.6.11: */
85DUMMY(add_key);
86DUMMY(request_key);
87DUMMY(keyctl);
86DUMMY(add_key);
87DUMMY(request_key);
88DUMMY(keyctl);
89/* linux 2.6.13: */
88DUMMY(ioprio_set);
89DUMMY(ioprio_get);
90DUMMY(inotify_init);
91DUMMY(inotify_add_watch);
92DUMMY(inotify_rm_watch);
90DUMMY(ioprio_set);
91DUMMY(ioprio_get);
92DUMMY(inotify_init);
93DUMMY(inotify_add_watch);
94DUMMY(inotify_rm_watch);
95/* linux 2.6.16: */
93DUMMY(migrate_pages);
94DUMMY(unshare);
96DUMMY(migrate_pages);
97DUMMY(unshare);
98/* linux 2.6.17: */
95DUMMY(splice);
96DUMMY(tee);
97DUMMY(sync_file_range);
98DUMMY(vmsplice);
99DUMMY(splice);
100DUMMY(tee);
101DUMMY(sync_file_range);
102DUMMY(vmsplice);
103/* linux 2.6.18: */
99DUMMY(move_pages);
104DUMMY(move_pages);
105/* linux 2.6.22: */
100DUMMY(signalfd);
106DUMMY(signalfd);
101DUMMY(timerfd);
107DUMMY(timerfd_create);
108/* linux 2.6.25: */
102DUMMY(timerfd_settime);
103DUMMY(timerfd_gettime);
109DUMMY(timerfd_settime);
110DUMMY(timerfd_gettime);
111/* linux 2.6.27: */
104DUMMY(signalfd4);
105DUMMY(inotify_init1);
112DUMMY(signalfd4);
113DUMMY(inotify_init1);
114/* linux 2.6.30: */
106DUMMY(preadv);
107DUMMY(pwritev);
115DUMMY(preadv);
116DUMMY(pwritev);
108DUMMY(rt_tsigqueueinfo);
117/* linux 2.6.31: */
118DUMMY(rt_tgsigqueueinfo);
109DUMMY(perf_event_open);
119DUMMY(perf_event_open);
120/* linux 2.6.38: */
110DUMMY(fanotify_init);
111DUMMY(fanotify_mark);
121DUMMY(fanotify_init);
122DUMMY(fanotify_mark);
123/* linux 2.6.39: */
112DUMMY(name_to_handle_at);
113DUMMY(open_by_handle_at);
114DUMMY(clock_adjtime);
124DUMMY(name_to_handle_at);
125DUMMY(open_by_handle_at);
126DUMMY(clock_adjtime);
127/* linux 3.0: */
115DUMMY(setns);
128DUMMY(setns);
129DUMMY(getcpu);
130/* linux 3.2: */
116DUMMY(process_vm_readv);
117DUMMY(process_vm_writev);
131DUMMY(process_vm_readv);
132DUMMY(process_vm_writev);
133/* linux 3.5: */
118DUMMY(kcmp);
134DUMMY(kcmp);
135/* linux 3.8: */
119DUMMY(finit_module);
136DUMMY(finit_module);
137DUMMY(sched_setattr);
138DUMMY(sched_getattr);
139/* linux 3.14: */
140DUMMY(renameat2);
141/* linux 3.15: */
142DUMMY(seccomp);
143DUMMY(getrandom);
144DUMMY(memfd_create);
145DUMMY(kexec_file_load);
146/* linux 3.18: */
147DUMMY(bpf);
148/* linux 3.19: */
149DUMMY(execveat);
150/* linux 4.2: */
151DUMMY(userfaultfd);
152/* linux 4.3: */
153DUMMY(membarrier);
154/* linux 4.4: */
155DUMMY(mlock2);
156/* linux 4.5: */
157DUMMY(copy_file_range);
158/* linux 4.6: */
159DUMMY(preadv2);
160DUMMY(pwritev2);
161/* linux 4.8: */
162DUMMY(pkey_mprotect);
163DUMMY(pkey_alloc);
164DUMMY(pkey_free);
120
121#define DUMMY_XATTR(s) \
122int \
123linux_ ## s ## xattr( \
124 struct thread *td, struct linux_ ## s ## xattr_args *arg) \
125{ \
126 \
127 return (ENOATTR); \

--- 13 unchanged lines hidden ---
165
166#define DUMMY_XATTR(s) \
167int \
168linux_ ## s ## xattr( \
169 struct thread *td, struct linux_ ## s ## xattr_args *arg) \
170{ \
171 \
172 return (ENOATTR); \

--- 13 unchanged lines hidden ---