linux_dummy.c revision 159799
19313Ssos/*- 29313Ssos * Copyright (c) 1994-1995 S�ren Schmidt 39313Ssos * All rights reserved. 49313Ssos * 59313Ssos * Redistribution and use in source and binary forms, with or without 69313Ssos * modification, are permitted provided that the following conditions 79313Ssos * are met: 89313Ssos * 1. Redistributions of source code must retain the above copyright 99313Ssos * notice, this list of conditions and the following disclaimer 109313Ssos * in this position and unchanged. 119313Ssos * 2. Redistributions in binary form must reproduce the above copyright 129313Ssos * notice, this list of conditions and the following disclaimer in the 139313Ssos * documentation and/or other materials provided with the distribution. 149313Ssos * 3. The name of the author may not be used to endorse or promote products 1597748Sschweikh * derived from this software without specific prior written permission 169313Ssos * 179313Ssos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 189313Ssos * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 199313Ssos * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 209313Ssos * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 219313Ssos * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 229313Ssos * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 239313Ssos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 249313Ssos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 259313Ssos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 269313Ssos * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 279313Ssos */ 289313Ssos 29115705Sobrien#include <sys/cdefs.h> 30115705Sobrien__FBSDID("$FreeBSD: head/sys/i386/linux/linux_dummy.c 159799 2006-06-20 20:38:44Z netchild $"); 31115705Sobrien 329313Ssos#include <sys/param.h> 339313Ssos#include <sys/systm.h> 349313Ssos#include <sys/proc.h> 359313Ssos 3614331Speter#include <i386/linux/linux.h> 3768583Smarcel#include <i386/linux/linux_proto.h> 3883221Smarcel#include <compat/linux/linux_util.h> 3912458Sbde 4049850SmarcelDUMMY(stime); 4149850SmarcelDUMMY(fstat); 4249850SmarcelDUMMY(olduname); 4383221SmarcelDUMMY(syslog); 4449850SmarcelDUMMY(uname); 4549850SmarcelDUMMY(vhangup); 4650345SmarcelDUMMY(vm86old); 4749850SmarcelDUMMY(swapoff); 4849850SmarcelDUMMY(adjtimex); 4949850SmarcelDUMMY(create_module); 5049850SmarcelDUMMY(init_module); 5149850SmarcelDUMMY(delete_module); 5249850SmarcelDUMMY(get_kernel_syms); 5349850SmarcelDUMMY(quotactl); 5449850SmarcelDUMMY(bdflush); 5550345SmarcelDUMMY(sysfs); 5650345SmarcelDUMMY(vm86); 5750345SmarcelDUMMY(query_module); 5850345SmarcelDUMMY(nfsservctl); 5950345SmarcelDUMMY(prctl); 6050345SmarcelDUMMY(rt_sigtimedwait); 6150345SmarcelDUMMY(rt_sigqueueinfo); 6250345SmarcelDUMMY(capget); 6350345SmarcelDUMMY(capset); 6450345SmarcelDUMMY(sendfile); 6555784SmarcelDUMMY(truncate64); 6683221SmarcelDUMMY(setfsuid); 6783221SmarcelDUMMY(setfsgid); 6883221SmarcelDUMMY(pivot_root); 6983221SmarcelDUMMY(mincore); 70122802SsobomaxDUMMY(fadvise64); 71159799SnetchildDUMMY(lookup_dcookie); 72159799SnetchildDUMMY(epoll_create); 73159799SnetchildDUMMY(epoll_ctl); 74159799SnetchildDUMMY(epoll_wait); 75159799SnetchildDUMMY(remap_file_pages); 76159799SnetchildDUMMY(set_tid_address); 77159799SnetchildDUMMY(timer_create); 78159799SnetchildDUMMY(timer_settime); 79159799SnetchildDUMMY(timer_gettime); 80159799SnetchildDUMMY(timer_getoverrun); 81159799SnetchildDUMMY(timer_delete); 82159799SnetchildDUMMY(clock_settime); 83159799SnetchildDUMMY(clock_gettime); 84159799SnetchildDUMMY(clock_getres); 85159799SnetchildDUMMY(clock_nanosleep); 86159799SnetchildDUMMY(statfs64); 87159799SnetchildDUMMY(fstatfs64); 88159799SnetchildDUMMY(tgkill); 89159799SnetchildDUMMY(utimes); 90159799SnetchildDUMMY(fadvise64_64); 91159799SnetchildDUMMY(mbind); 92159799SnetchildDUMMY(get_mempolicy); 93159799SnetchildDUMMY(set_mempolicy); 94159799SnetchildDUMMY(mq_open); 95159799SnetchildDUMMY(mq_unlink); 96159799SnetchildDUMMY(mq_timedsend); 97159799SnetchildDUMMY(mq_timedreceive); 98159799SnetchildDUMMY(mq_notify); 99159799SnetchildDUMMY(mq_getsetattr); 100159799SnetchildDUMMY(kexec_load); 101159799SnetchildDUMMY(waitid); 102159799SnetchildDUMMY(add_key); 103159799SnetchildDUMMY(request_key); 104159799SnetchildDUMMY(keyctl); 105159799SnetchildDUMMY(ioprio_set); 106159799SnetchildDUMMY(ioprio_get); 107159799SnetchildDUMMY(inotify_init); 108159799SnetchildDUMMY(inotify_add_watch); 109159799SnetchildDUMMY(inotify_rm_watch); 110159799SnetchildDUMMY(migrate_pages); 111159799SnetchildDUMMY(openat); 112159799SnetchildDUMMY(mkdirat); 113159799SnetchildDUMMY(mknodat); 114159799SnetchildDUMMY(fchownat); 115159799SnetchildDUMMY(futimesat); 116159799SnetchildDUMMY(fstatat64); 117159799SnetchildDUMMY(unlinkat); 118159799SnetchildDUMMY(renameat); 119159799SnetchildDUMMY(linkat); 120159799SnetchildDUMMY(symlinkat); 121159799SnetchildDUMMY(readlinkat); 122159799SnetchildDUMMY(fchmodat); 123159799SnetchildDUMMY(faccessat); 124159799SnetchildDUMMY(pselect6); 125159799SnetchildDUMMY(ppoll); 126159799SnetchildDUMMY(unshare); 127122802Ssobomax 128122802Ssobomax#define DUMMY_XATTR(s) \ 129122802Ssobomaxint \ 130122802Ssobomaxlinux_ ## s ## xattr( \ 131122802Ssobomax struct thread *td, struct linux_ ## s ## xattr_args *arg) \ 132122802Ssobomax{ \ 133122802Ssobomax \ 134122802Ssobomax return (ENOATTR); \ 135122802Ssobomax} 136122802SsobomaxDUMMY_XATTR(set); 137122802SsobomaxDUMMY_XATTR(lset); 138122802SsobomaxDUMMY_XATTR(fset); 139122802SsobomaxDUMMY_XATTR(get); 140122802SsobomaxDUMMY_XATTR(lget); 141122802SsobomaxDUMMY_XATTR(fget); 142122802SsobomaxDUMMY_XATTR(list); 143122802SsobomaxDUMMY_XATTR(llist); 144122802SsobomaxDUMMY_XATTR(flist); 145122802SsobomaxDUMMY_XATTR(remove); 146122802SsobomaxDUMMY_XATTR(lremove); 147122802SsobomaxDUMMY_XATTR(fremove); 148