linux_dummy.c revision 72539
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 72539 2001-02-16 14:46:16Z jlemon $ 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(stime); 58DUMMY(ptrace); 59DUMMY(fstat); 60DUMMY(stty); 61DUMMY(gtty); 62DUMMY(ftime); 63DUMMY(prof); 64DUMMY(lock); 65DUMMY(mpx); 66DUMMY(ulimit); 67DUMMY(olduname); 68DUMMY(ksyslog); 69DUMMY(uname); 70DUMMY(vhangup); 71DUMMY(idle); 72DUMMY(vm86old); 73DUMMY(swapoff); 74DUMMY(sysinfo); 75DUMMY(adjtimex); 76DUMMY(create_module); 77DUMMY(init_module); 78DUMMY(delete_module); 79DUMMY(get_kernel_syms); 80DUMMY(quotactl); 81DUMMY(bdflush); 82DUMMY(sysfs); 83DUMMY(afs_syscall); 84DUMMY(setfsuid); 85DUMMY(setfsgid); 86DUMMY(getsid); 87DUMMY(sysctl); 88DUMMY(getresuid); 89DUMMY(vm86); 90DUMMY(query_module); 91DUMMY(nfsservctl); 92DUMMY(getresgid); 93DUMMY(prctl); 94DUMMY(rt_sigpending); 95DUMMY(rt_sigtimedwait); 96DUMMY(rt_sigqueueinfo); 97DUMMY(capget); 98DUMMY(capset); 99DUMMY(sendfile); 100DUMMY(getpmsg); 101DUMMY(putpmsg); 102DUMMY(ugetrlimit); 103DUMMY(mmap2); 104DUMMY(truncate64); 105DUMMY(ftruncate64); 106DUMMY(stat64); 107DUMMY(lstat64); 108DUMMY(fstat64); 109