linux_dummy.c revision 53758
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 withough 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 * $FreeBSD: head/sys/i386/linux/linux_dummy.c 53758 1999-11-27 16:55:14Z marcel $ 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/proc.h> 34 35#include <i386/linux/linux.h> 36#include <i386/linux/linux_proto.h> 37 38#define DUMMY(s) \ 39int \ 40linux_ ## s(struct proc *p, struct linux_ ## s ## _args *args) \ 41{ \ 42 return (unsupported_msg(p, #s)); \ 43} \ 44struct __hack 45 46static int 47unsupported_msg(struct proc *p, const char *fname) 48{ 49 printf("linux: syscall %s is obsoleted or not implemented (pid=%ld)\n", 50 fname, (long)p->p_pid); 51 return (ENOSYS); 52} 53 54DUMMY(setup); 55DUMMY(break); 56DUMMY(stat); 57DUMMY(mount); 58DUMMY(umount); 59DUMMY(stime); 60DUMMY(ptrace); 61DUMMY(fstat); 62DUMMY(stty); 63DUMMY(gtty); 64DUMMY(ftime); 65DUMMY(prof); 66DUMMY(umount2); 67DUMMY(lock); 68DUMMY(mpx); 69DUMMY(ulimit); 70DUMMY(olduname); 71DUMMY(ksyslog); 72DUMMY(uname); 73DUMMY(vhangup); 74DUMMY(idle); 75DUMMY(vm86old); 76DUMMY(swapoff); 77DUMMY(sysinfo); 78DUMMY(adjtimex); 79DUMMY(create_module); 80DUMMY(init_module); 81DUMMY(delete_module); 82DUMMY(get_kernel_syms); 83DUMMY(quotactl); 84DUMMY(bdflush); 85DUMMY(sysfs); 86DUMMY(afs_syscall); 87DUMMY(setfsuid); 88DUMMY(setfsgid); 89DUMMY(getsid); 90DUMMY(sysctl); 91DUMMY(setresuid); 92DUMMY(getresuid); 93DUMMY(vm86); 94DUMMY(query_module); 95DUMMY(nfsservctl); 96DUMMY(setresgid); 97DUMMY(getresgid); 98DUMMY(prctl); 99DUMMY(rt_sigreturn); 100DUMMY(rt_sigpending); 101DUMMY(rt_sigtimedwait); 102DUMMY(rt_sigqueueinfo); 103DUMMY(pread); 104DUMMY(pwrite); 105DUMMY(capget); 106DUMMY(capset); 107DUMMY(sigaltstack); 108DUMMY(sendfile); 109DUMMY(getpmsg); 110DUMMY(putpmsg); 111