linux_dummy.c revision 178257
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 178257 2008-04-16 19:25:39Z jkim $"); 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(rt_sigqueueinfo); 6050345SmarcelDUMMY(capget); 6150345SmarcelDUMMY(capset); 62161310SnetchildDUMMY(sendfile); /* different semantics */ 6355784SmarcelDUMMY(truncate64); 6483221SmarcelDUMMY(setfsuid); 6583221SmarcelDUMMY(setfsgid); 6683221SmarcelDUMMY(pivot_root); 6783221SmarcelDUMMY(mincore); 68122802SsobomaxDUMMY(fadvise64); 69159799SnetchildDUMMY(lookup_dcookie); 70159799SnetchildDUMMY(epoll_create); 71159799SnetchildDUMMY(epoll_ctl); 72159799SnetchildDUMMY(epoll_wait); 73159799SnetchildDUMMY(remap_file_pages); 74159799SnetchildDUMMY(fstatfs64); 75159799SnetchildDUMMY(fadvise64_64); 76159799SnetchildDUMMY(mbind); 77159799SnetchildDUMMY(get_mempolicy); 78159799SnetchildDUMMY(set_mempolicy); 79159799SnetchildDUMMY(kexec_load); 80159799SnetchildDUMMY(waitid); 81159799SnetchildDUMMY(add_key); 82159799SnetchildDUMMY(request_key); 83159799SnetchildDUMMY(keyctl); 84159799SnetchildDUMMY(ioprio_set); 85159799SnetchildDUMMY(ioprio_get); 86159799SnetchildDUMMY(inotify_init); 87159799SnetchildDUMMY(inotify_add_watch); 88159799SnetchildDUMMY(inotify_rm_watch); 89159799SnetchildDUMMY(migrate_pages); 90159799SnetchildDUMMY(pselect6); 91159799SnetchildDUMMY(ppoll); 92159799SnetchildDUMMY(unshare); 93178257SjkimDUMMY(set_robust_list); 94178257SjkimDUMMY(get_robust_list); 95178257SjkimDUMMY(splice); 96178257SjkimDUMMY(sync_file_range); 97178257SjkimDUMMY(tee); 98178257SjkimDUMMY(vmsplice); 99122802Ssobomax 100122802Ssobomax#define DUMMY_XATTR(s) \ 101122802Ssobomaxint \ 102122802Ssobomaxlinux_ ## s ## xattr( \ 103122802Ssobomax struct thread *td, struct linux_ ## s ## xattr_args *arg) \ 104122802Ssobomax{ \ 105122802Ssobomax \ 106122802Ssobomax return (ENOATTR); \ 107122802Ssobomax} 108122802SsobomaxDUMMY_XATTR(set); 109122802SsobomaxDUMMY_XATTR(lset); 110122802SsobomaxDUMMY_XATTR(fset); 111122802SsobomaxDUMMY_XATTR(get); 112122802SsobomaxDUMMY_XATTR(lget); 113122802SsobomaxDUMMY_XATTR(fget); 114122802SsobomaxDUMMY_XATTR(list); 115122802SsobomaxDUMMY_XATTR(llist); 116122802SsobomaxDUMMY_XATTR(flist); 117122802SsobomaxDUMMY_XATTR(remove); 118122802SsobomaxDUMMY_XATTR(lremove); 119122802SsobomaxDUMMY_XATTR(fremove); 120