linux32_dummy.c (346812) | linux32_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/amd64/linux32/linux32_dummy.c 346812 2019-04-28 09:53:08Z dchagin $"); | 30__FBSDID("$FreeBSD: stable/11/sys/amd64/linux32/linux32_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 <amd64/linux32/linux.h> 41#include <amd64/linux32/linux32_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 <amd64/linux32/linux.h> 41#include <amd64/linux32/linux32_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(olduname); 68DUMMY(syslog); 69DUMMY(uname); 70DUMMY(vhangup); --- 16 unchanged lines hidden (view full) --- 87DUMMY(set_mempolicy); 88DUMMY(mq_open); 89DUMMY(mq_unlink); 90DUMMY(mq_timedsend); 91DUMMY(mq_timedreceive); 92DUMMY(mq_notify); 93DUMMY(mq_getsetattr); 94DUMMY(kexec_load); | 63UNIMPLEMENTED(ulimit); 64UNIMPLEMENTED(vserver); 65 66DUMMY(stime); 67DUMMY(olduname); 68DUMMY(syslog); 69DUMMY(uname); 70DUMMY(vhangup); --- 16 unchanged lines hidden (view full) --- 87DUMMY(set_mempolicy); 88DUMMY(mq_open); 89DUMMY(mq_unlink); 90DUMMY(mq_timedsend); 91DUMMY(mq_timedreceive); 92DUMMY(mq_notify); 93DUMMY(mq_getsetattr); 94DUMMY(kexec_load); |
95/* linux 2.6.11: */ | 95/* Linux 2.6.11: */ |
96DUMMY(add_key); 97DUMMY(request_key); 98DUMMY(keyctl); | 96DUMMY(add_key); 97DUMMY(request_key); 98DUMMY(keyctl); |
99/* linux 2.6.13: */ | 99/* Linux 2.6.13: */ |
100DUMMY(ioprio_set); 101DUMMY(ioprio_get); 102DUMMY(inotify_init); 103DUMMY(inotify_add_watch); 104DUMMY(inotify_rm_watch); | 100DUMMY(ioprio_set); 101DUMMY(ioprio_get); 102DUMMY(inotify_init); 103DUMMY(inotify_add_watch); 104DUMMY(inotify_rm_watch); |
105/* linux 2.6.16: */ | 105/* Linux 2.6.16: */ |
106DUMMY(migrate_pages); 107DUMMY(unshare); | 106DUMMY(migrate_pages); 107DUMMY(unshare); |
108/* linux 2.6.17: */ | 108/* Linux 2.6.17: */ |
109DUMMY(splice); 110DUMMY(sync_file_range); 111DUMMY(tee); 112DUMMY(vmsplice); | 109DUMMY(splice); 110DUMMY(sync_file_range); 111DUMMY(tee); 112DUMMY(vmsplice); |
113/* linux 2.6.18: */ | 113/* Linux 2.6.18: */ |
114DUMMY(move_pages); | 114DUMMY(move_pages); |
115/* linux 2.6.19: */ | 115/* Linux 2.6.19: */ |
116DUMMY(getcpu); | 116DUMMY(getcpu); |
117/* linux 2.6.22: */ | 117/* Linux 2.6.22: */ |
118DUMMY(signalfd); | 118DUMMY(signalfd); |
119/* linux 2.6.27: */ | 119/* Linux 2.6.27: */ |
120DUMMY(signalfd4); 121DUMMY(inotify_init1); | 120DUMMY(signalfd4); 121DUMMY(inotify_init1); |
122/* linux 2.6.31: */ | 122/* Linux 2.6.31: */ |
123DUMMY(perf_event_open); | 123DUMMY(perf_event_open); |
124/* linux 2.6.33: */ | 124/* Linux 2.6.33: */ |
125DUMMY(fanotify_init); 126DUMMY(fanotify_mark); | 125DUMMY(fanotify_init); 126DUMMY(fanotify_mark); |
127/* linux 2.6.39: */ | 127/* Linux 2.6.39: */ |
128DUMMY(name_to_handle_at); 129DUMMY(open_by_handle_at); 130DUMMY(clock_adjtime); | 128DUMMY(name_to_handle_at); 129DUMMY(open_by_handle_at); 130DUMMY(clock_adjtime); |
131/* linux 3.0: */ | 131/* Linux 3.0: */ |
132DUMMY(setns); | 132DUMMY(setns); |
133/* linux 3.2: */ | 133/* Linux 3.2: */ |
134DUMMY(process_vm_readv); 135DUMMY(process_vm_writev); | 134DUMMY(process_vm_readv); 135DUMMY(process_vm_writev); |
136/* linux 3.5: */ | 136/* Linux 3.5: */ |
137DUMMY(kcmp); | 137DUMMY(kcmp); |
138/* linux 3.8: */ | 138/* Linux 3.8: */ |
139DUMMY(finit_module); 140DUMMY(sched_setattr); 141DUMMY(sched_getattr); | 139DUMMY(finit_module); 140DUMMY(sched_setattr); 141DUMMY(sched_getattr); |
142/* linux 3.14: */ | 142/* Linux 3.14: */ |
143DUMMY(renameat2); | 143DUMMY(renameat2); |
144/* linux 3.15: */ | 144/* Linux 3.15: */ |
145DUMMY(seccomp); 146DUMMY(memfd_create); | 145DUMMY(seccomp); 146DUMMY(memfd_create); |
147/* linux 3.18: */ | 147/* Linux 3.18: */ |
148DUMMY(bpf); | 148DUMMY(bpf); |
149/* linux 3.19: */ | 149/* Linux 3.19: */ |
150DUMMY(execveat); | 150DUMMY(execveat); |
151/* linux 4.2: */ | 151/* Linux 4.2: */ |
152DUMMY(userfaultfd); | 152DUMMY(userfaultfd); |
153/* linux 4.3: */ | 153/* Linux 4.3: */ |
154DUMMY(membarrier); | 154DUMMY(membarrier); |
155/* linux 4.4: */ | 155/* Linux 4.4: */ |
156DUMMY(mlock2); | 156DUMMY(mlock2); |
157/* linux 4.5: */ | 157/* Linux 4.5: */ |
158DUMMY(copy_file_range); | 158DUMMY(copy_file_range); |
159/* linux 4.6: */ | 159/* Linux 4.6: */ |
160DUMMY(preadv2); 161DUMMY(pwritev2); | 160DUMMY(preadv2); 161DUMMY(pwritev2); |
162/* linux 4.8: */ | 162/* Linux 4.8: */ |
163DUMMY(pkey_mprotect); 164DUMMY(pkey_alloc); 165DUMMY(pkey_free); 166 167#define DUMMY_XATTR(s) \ 168int \ 169linux_ ## s ## xattr( \ 170 struct thread *td, struct linux_ ## s ## xattr_args *arg) \ --- 16 unchanged lines hidden --- | 163DUMMY(pkey_mprotect); 164DUMMY(pkey_alloc); 165DUMMY(pkey_free); 166 167#define DUMMY_XATTR(s) \ 168int \ 169linux_ ## s ## xattr( \ 170 struct thread *td, struct linux_ ## s ## xattr_args *arg) \ --- 16 unchanged lines hidden --- |