Deleted Added
full compact
linux_dummy.c (346812) linux_dummy.c (346816)
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

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

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>
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

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

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/11/sys/i386/linux/linux_dummy.c 346812 2019-04-28 09:53:08Z dchagin $");
30__FBSDID("$FreeBSD: stable/11/sys/i386/linux/linux_dummy.c 346816 2019-04-28 13:19:28Z dchagin $");
31
32#include "opt_compat.h"
33
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/sdt.h>
37#include <sys/systm.h>
38#include <sys/proc.h>
39
40#include <i386/linux/linux.h>
41#include <i386/linux/linux_proto.h>
42#include <compat/linux/linux_dtrace.h>
43#include <compat/linux/linux_util.h>
44
45/* DTrace init */
46LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
47
48UNIMPLEMENTED(afs_syscall);
49UNIMPLEMENTED(break);
31
32#include "opt_compat.h"
33
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/sdt.h>
37#include <sys/systm.h>
38#include <sys/proc.h>
39
40#include <i386/linux/linux.h>
41#include <i386/linux/linux_proto.h>
42#include <compat/linux/linux_dtrace.h>
43#include <compat/linux/linux_util.h>
44
45/* DTrace init */
46LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
47
48UNIMPLEMENTED(afs_syscall);
49UNIMPLEMENTED(break);
50UNIMPLEMENTED(create_module); /* added in linux 1.0 removed in 2.6 */
50UNIMPLEMENTED(create_module); /* Added in Linux 1.0 removed in 2.6. */
51UNIMPLEMENTED(ftime);
51UNIMPLEMENTED(ftime);
52UNIMPLEMENTED(get_kernel_syms); /* added in linux 1.0 removed in 2.6 */
52UNIMPLEMENTED(get_kernel_syms); /* Added in Linux 1.0 removed in 2.6. */
53UNIMPLEMENTED(getpmsg);
54UNIMPLEMENTED(gtty);
55UNIMPLEMENTED(stty);
56UNIMPLEMENTED(lock);
57UNIMPLEMENTED(mpx);
53UNIMPLEMENTED(getpmsg);
54UNIMPLEMENTED(gtty);
55UNIMPLEMENTED(stty);
56UNIMPLEMENTED(lock);
57UNIMPLEMENTED(mpx);
58UNIMPLEMENTED(nfsservctl); /* added in linux 2.2 removed in 3.1 */
58UNIMPLEMENTED(nfsservctl); /* Added in Linux 2.2 removed in 3.1. */
59UNIMPLEMENTED(prof);
60UNIMPLEMENTED(profil);
61UNIMPLEMENTED(putpmsg);
59UNIMPLEMENTED(prof);
60UNIMPLEMENTED(profil);
61UNIMPLEMENTED(putpmsg);
62UNIMPLEMENTED(query_module); /* added in linux 2.2 removed in 2.6 */
62UNIMPLEMENTED(query_module); /* Added in Linux 2.2 removed in 2.6. */
63UNIMPLEMENTED(ulimit);
64UNIMPLEMENTED(vserver);
65
66DUMMY(stime);
67DUMMY(fstat);
68DUMMY(olduname);
69DUMMY(syslog);
70DUMMY(uname);

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

83DUMMY(setfsgid);
84DUMMY(pivot_root);
85DUMMY(lookup_dcookie);
86DUMMY(remap_file_pages);
87DUMMY(mbind);
88DUMMY(get_mempolicy);
89DUMMY(set_mempolicy);
90DUMMY(kexec_load);
63UNIMPLEMENTED(ulimit);
64UNIMPLEMENTED(vserver);
65
66DUMMY(stime);
67DUMMY(fstat);
68DUMMY(olduname);
69DUMMY(syslog);
70DUMMY(uname);

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

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

--- 16 unchanged lines hidden ---
159DUMMY(pkey_mprotect);
160DUMMY(pkey_alloc);
161DUMMY(pkey_free);
162
163#define DUMMY_XATTR(s) \
164int \
165linux_ ## s ## xattr( \
166 struct thread *td, struct linux_ ## s ## xattr_args *arg) \

--- 16 unchanged lines hidden ---