linux32_dummy.c revision 293567
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: stable/10/sys/amd64/linux32/linux32_dummy.c 293567 2016-01-09 17:13:43Z dchagin $"); 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 */ 47LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE); 48 49DUMMY(stime); 50DUMMY(olduname); 51DUMMY(syslog); 52DUMMY(uname); 53DUMMY(vhangup); 54DUMMY(swapoff); 55DUMMY(adjtimex); 56DUMMY(create_module); 57DUMMY(init_module); 58DUMMY(delete_module); 59DUMMY(get_kernel_syms); 60DUMMY(quotactl); 61DUMMY(bdflush); 62DUMMY(sysfs); 63DUMMY(query_module); 64DUMMY(nfsservctl); 65DUMMY(sendfile); 66DUMMY(setfsuid); 67DUMMY(setfsgid); 68DUMMY(pivot_root); 69DUMMY(mincore); 70DUMMY(ptrace); 71DUMMY(lookup_dcookie); 72DUMMY(remap_file_pages); 73DUMMY(fstatfs64); 74DUMMY(mbind); 75DUMMY(get_mempolicy); 76DUMMY(set_mempolicy); 77DUMMY(mq_open); 78DUMMY(mq_unlink); 79DUMMY(mq_timedsend); 80DUMMY(mq_timedreceive); 81DUMMY(mq_notify); 82DUMMY(mq_getsetattr); 83DUMMY(kexec_load); 84/* linux 2.6.11: */ 85DUMMY(add_key); 86DUMMY(request_key); 87DUMMY(keyctl); 88/* linux 2.6.13: */ 89DUMMY(ioprio_set); 90DUMMY(ioprio_get); 91DUMMY(inotify_init); 92DUMMY(inotify_add_watch); 93DUMMY(inotify_rm_watch); 94/* linux 2.6.16: */ 95DUMMY(migrate_pages); 96DUMMY(unshare); 97/* linux 2.6.17: */ 98DUMMY(splice); 99DUMMY(sync_file_range); 100DUMMY(tee); 101DUMMY(vmsplice); 102/* linux 2.6.18: */ 103DUMMY(move_pages); 104/* linux 2.6.19: */ 105DUMMY(getcpu); 106DUMMY(epoll_pwait); 107/* linux 2.6.22: */ 108DUMMY(utimensat); 109DUMMY(signalfd); 110DUMMY(timerfd_create); 111/* linux 2.6.25: */ 112DUMMY(timerfd_settime); 113DUMMY(timerfd_gettime); 114/* linux 2.6.27: */ 115DUMMY(signalfd4); 116DUMMY(inotify_init1); 117/* linux 2.6.30: */ 118DUMMY(preadv); 119DUMMY(pwritev); 120/* linux 2.6.31: */ 121DUMMY(rt_tsigqueueinfo); 122DUMMY(perf_event_open); 123/* linux 2.6.33: */ 124DUMMY(recvmmsg); 125DUMMY(fanotify_init); 126DUMMY(fanotify_mark); 127/* later: */ 128DUMMY(name_to_handle_at); 129DUMMY(open_by_handle_at); 130DUMMY(clock_adjtime); 131DUMMY(syncfs); 132DUMMY(sendmmsg); 133DUMMY(setns); 134DUMMY(process_vm_readv); 135DUMMY(process_vm_writev); 136 137#define DUMMY_XATTR(s) \ 138int \ 139linux_ ## s ## xattr( \ 140 struct thread *td, struct linux_ ## s ## xattr_args *arg) \ 141{ \ 142 \ 143 return (ENOATTR); \ 144} 145DUMMY_XATTR(set); 146DUMMY_XATTR(lset); 147DUMMY_XATTR(fset); 148DUMMY_XATTR(get); 149DUMMY_XATTR(lget); 150DUMMY_XATTR(fget); 151DUMMY_XATTR(list); 152DUMMY_XATTR(llist); 153DUMMY_XATTR(flist); 154DUMMY_XATTR(remove); 155DUMMY_XATTR(lremove); 156DUMMY_XATTR(fremove); 157