linux_dummy.c revision 49850
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 159313Ssos * derived from this software withough 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 * 2849850Smarcel * $Id: linux_dummy.c,v 1.9 1998/12/19 02:55:33 julian Exp $ 299313Ssos */ 309313Ssos 319313Ssos#include <sys/param.h> 329313Ssos#include <sys/systm.h> 339313Ssos#include <sys/proc.h> 349313Ssos 3514331Speter#include <i386/linux/linux.h> 3614331Speter#include <i386/linux/linux_proto.h> 3712458Sbde 3849850Smarcel#define DUMMY(s) \ 3949850Smarcelint \ 4049850Smarcellinux_ ## s(struct proc *p, struct linux_ ## s ## _args *args) \ 4149850Smarcel{ \ 4249850Smarcel return (unsupported_msg(p, #s)); \ 4349850Smarcel} \ 4449850Smarcelstruct __hack 459313Ssos 4649850Smarcelstatic int 4749850Smarcelunsupported_msg(struct proc *p, const char *fname) 489313Ssos{ 4949850Smarcel printf("Linux-emul(%ld): %s() not supported\n", (long)p->p_pid, fname); 5049850Smarcel return (ENOSYS); 519313Ssos} 529313Ssos 5349850SmarcelDUMMY(setup); 5449850SmarcelDUMMY(break); 5549850SmarcelDUMMY(stat); 5649850SmarcelDUMMY(mount); 5749850SmarcelDUMMY(umount); 5849850SmarcelDUMMY(stime); 5949850SmarcelDUMMY(ptrace); 6049850SmarcelDUMMY(fstat); 6149850SmarcelDUMMY(stty); 6249850SmarcelDUMMY(gtty); 6349850SmarcelDUMMY(ftime); 6449850SmarcelDUMMY(prof); 6549850SmarcelDUMMY(phys); 6649850SmarcelDUMMY(lock); 6749850SmarcelDUMMY(mpx); 6849850SmarcelDUMMY(ulimit); 6949850SmarcelDUMMY(olduname); 7049850SmarcelDUMMY(ustat); 7149850SmarcelDUMMY(ioperm); 7249850SmarcelDUMMY(ksyslog); 7349850SmarcelDUMMY(uname); 7449850SmarcelDUMMY(vhangup); 7549850SmarcelDUMMY(idle); 7649850SmarcelDUMMY(vm86); 7749850SmarcelDUMMY(swapoff); 7849850SmarcelDUMMY(sysinfo); 7949850SmarcelDUMMY(modify_ldt); 8049850SmarcelDUMMY(adjtimex); 8149850SmarcelDUMMY(create_module); 8249850SmarcelDUMMY(init_module); 8349850SmarcelDUMMY(delete_module); 8449850SmarcelDUMMY(get_kernel_syms); 8549850SmarcelDUMMY(quotactl); 8649850SmarcelDUMMY(bdflush); 87