linux_dummy.c revision 230132
19313Ssos/*- 2230132Suqs * 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 230132 2012-01-15 13:23:18Z uqs $"); 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); 60161310SnetchildDUMMY(sendfile); /* different semantics */ 6183221SmarcelDUMMY(setfsuid); 6283221SmarcelDUMMY(setfsgid); 6383221SmarcelDUMMY(pivot_root); 6483221SmarcelDUMMY(mincore); 65159799SnetchildDUMMY(lookup_dcookie); 66159799SnetchildDUMMY(epoll_create); 67159799SnetchildDUMMY(epoll_ctl); 68159799SnetchildDUMMY(epoll_wait); 69159799SnetchildDUMMY(remap_file_pages); 70159799SnetchildDUMMY(fstatfs64); 71159799SnetchildDUMMY(mbind); 72159799SnetchildDUMMY(get_mempolicy); 73159799SnetchildDUMMY(set_mempolicy); 74159799SnetchildDUMMY(kexec_load); 75159799SnetchildDUMMY(waitid); 76159799SnetchildDUMMY(add_key); 77159799SnetchildDUMMY(request_key); 78159799SnetchildDUMMY(keyctl); 79159799SnetchildDUMMY(ioprio_set); 80159799SnetchildDUMMY(ioprio_get); 81159799SnetchildDUMMY(inotify_init); 82159799SnetchildDUMMY(inotify_add_watch); 83159799SnetchildDUMMY(inotify_rm_watch); 84159799SnetchildDUMMY(migrate_pages); 85159799SnetchildDUMMY(pselect6); 86159799SnetchildDUMMY(ppoll); 87159799SnetchildDUMMY(unshare); 88178257SjkimDUMMY(splice); 89178257SjkimDUMMY(sync_file_range); 90178257SjkimDUMMY(tee); 91178257SjkimDUMMY(vmsplice); 92122802Ssobomax 93122802Ssobomax#define DUMMY_XATTR(s) \ 94122802Ssobomaxint \ 95122802Ssobomaxlinux_ ## s ## xattr( \ 96122802Ssobomax struct thread *td, struct linux_ ## s ## xattr_args *arg) \ 97122802Ssobomax{ \ 98122802Ssobomax \ 99122802Ssobomax return (ENOATTR); \ 100122802Ssobomax} 101122802SsobomaxDUMMY_XATTR(set); 102122802SsobomaxDUMMY_XATTR(lset); 103122802SsobomaxDUMMY_XATTR(fset); 104122802SsobomaxDUMMY_XATTR(get); 105122802SsobomaxDUMMY_XATTR(lget); 106122802SsobomaxDUMMY_XATTR(fget); 107122802SsobomaxDUMMY_XATTR(list); 108122802SsobomaxDUMMY_XATTR(llist); 109122802SsobomaxDUMMY_XATTR(flist); 110122802SsobomaxDUMMY_XATTR(remove); 111122802SsobomaxDUMMY_XATTR(lremove); 112122802SsobomaxDUMMY_XATTR(fremove); 113