linux_dummy.c revision 161310
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 161310 2006-08-15 12:54:30Z 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); 64161310SnetchildDUMMY(sendfile); /* different semantics */ 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(statfs64); 77159799SnetchildDUMMY(fstatfs64); 78159799SnetchildDUMMY(utimes); 79159799SnetchildDUMMY(fadvise64_64); 80159799SnetchildDUMMY(mbind); 81159799SnetchildDUMMY(get_mempolicy); 82159799SnetchildDUMMY(set_mempolicy); 83159799SnetchildDUMMY(kexec_load); 84159799SnetchildDUMMY(waitid); 85159799SnetchildDUMMY(add_key); 86159799SnetchildDUMMY(request_key); 87159799SnetchildDUMMY(keyctl); 88159799SnetchildDUMMY(ioprio_set); 89159799SnetchildDUMMY(ioprio_get); 90159799SnetchildDUMMY(inotify_init); 91159799SnetchildDUMMY(inotify_add_watch); 92159799SnetchildDUMMY(inotify_rm_watch); 93159799SnetchildDUMMY(migrate_pages); 94159799SnetchildDUMMY(openat); 95159799SnetchildDUMMY(mkdirat); 96159799SnetchildDUMMY(mknodat); 97159799SnetchildDUMMY(fchownat); 98159799SnetchildDUMMY(futimesat); 99159799SnetchildDUMMY(fstatat64); 100159799SnetchildDUMMY(unlinkat); 101159799SnetchildDUMMY(renameat); 102159799SnetchildDUMMY(linkat); 103159799SnetchildDUMMY(symlinkat); 104159799SnetchildDUMMY(readlinkat); 105159799SnetchildDUMMY(fchmodat); 106159799SnetchildDUMMY(faccessat); 107159799SnetchildDUMMY(pselect6); 108159799SnetchildDUMMY(ppoll); 109159799SnetchildDUMMY(unshare); 110122802Ssobomax 111122802Ssobomax#define DUMMY_XATTR(s) \ 112122802Ssobomaxint \ 113122802Ssobomaxlinux_ ## s ## xattr( \ 114122802Ssobomax struct thread *td, struct linux_ ## s ## xattr_args *arg) \ 115122802Ssobomax{ \ 116122802Ssobomax \ 117122802Ssobomax return (ENOATTR); \ 118122802Ssobomax} 119122802SsobomaxDUMMY_XATTR(set); 120122802SsobomaxDUMMY_XATTR(lset); 121122802SsobomaxDUMMY_XATTR(fset); 122122802SsobomaxDUMMY_XATTR(get); 123122802SsobomaxDUMMY_XATTR(lget); 124122802SsobomaxDUMMY_XATTR(fget); 125122802SsobomaxDUMMY_XATTR(list); 126122802SsobomaxDUMMY_XATTR(llist); 127122802SsobomaxDUMMY_XATTR(flist); 128122802SsobomaxDUMMY_XATTR(remove); 129122802SsobomaxDUMMY_XATTR(lremove); 130122802SsobomaxDUMMY_XATTR(fremove); 131