linux_dummy.c revision 12458
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 * 2812458Sbde * $Id: linux_dummy.c,v 1.1 1995/06/25 17:32:33 sos Exp $ 299313Ssos */ 309313Ssos 319313Ssos#include <sys/param.h> 3212458Sbde#include <sys/sysproto.h> 339313Ssos#include <sys/systm.h> 349313Ssos#include <sys/proc.h> 359313Ssos#include <sys/resourcevar.h> 369313Ssos 3712458Sbde#include <i386/linux/sysproto.h> 3812458Sbde 399313Ssosint 409313Ssoslinux_setup(struct proc *p, void *args, int *retval) 419313Ssos{ 429313Ssos printf("Linux-emul(%d): setup() not supported\n", p->p_pid); 439313Ssos return ENOSYS; 449313Ssos} 459313Ssos 469313Ssosint 479313Ssoslinux_break(struct proc *p, void *args, int *retval) 489313Ssos{ 499313Ssos printf("Linux-emul(%d): break() not supported\n", p->p_pid); 509313Ssos return ENOSYS; 519313Ssos} 529313Ssos 539313Ssosint 549313Ssoslinux_stat(struct proc *p, void *args, int *retval) 559313Ssos{ 569313Ssos printf("Linux-emul(%d): stat() not supported\n", p->p_pid); 579313Ssos return ENOSYS; 589313Ssos} 599313Ssos 609313Ssosint 619313Ssoslinux_fstat(struct proc *p, void *args, int *retval) 629313Ssos{ 639313Ssos printf("Linux-emul(%d): fstat() not supported\n", p->p_pid); 649313Ssos return ENOSYS; 659313Ssos} 669313Ssos 679313Ssosint 689313Ssoslinux_mount(struct proc *p, void *args, int *retval) 699313Ssos{ 709313Ssos printf("Linux-emul(%d): mount() not supported\n", p->p_pid); 719313Ssos return ENOSYS; 729313Ssos} 739313Ssos 749313Ssosint 759313Ssoslinux_umount(struct proc *p, void *args, int *retval) 769313Ssos{ 779313Ssos printf("Linux-emul(%d): umount() not supported\n", p->p_pid); 789313Ssos return ENOSYS; 799313Ssos} 809313Ssos 819313Ssosint 829313Ssoslinux_stime(struct proc *p, void *args, int *retval) 839313Ssos{ 849313Ssos printf("Linux-emul(%d): stime() not supported\n", p->p_pid); 859313Ssos return ENOSYS; 869313Ssos} 879313Ssos 889313Ssosint 899313Ssoslinux_ptrace(struct proc *p, void *args, int *retval) 909313Ssos{ 919313Ssos printf("Linux-emul(%d): ptrace() not supported\n", p->p_pid); 929313Ssos return ENOSYS; 939313Ssos} 949313Ssos 959313Ssosint 969313Ssoslinux_pause(struct proc *p, void *args, int *retval) 979313Ssos{ 989313Ssos printf("Linux-emul(%d): pause() not supported\n", p->p_pid); 999313Ssos return ENOSYS; 1009313Ssos} 1019313Ssos 1029313Ssosint 1039313Ssoslinux_stty(struct proc *p, void *args, int *retval) 1049313Ssos{ 1059313Ssos printf("Linux-emul(%d): stty() not supported\n", p->p_pid); 1069313Ssos return ENOSYS; 1079313Ssos} 1089313Ssos 1099313Ssosint 1109313Ssoslinux_gtty(struct proc *p, void *args, int *retval) 1119313Ssos{ 1129313Ssos printf("Linux-emul(%d): gtty() not supported\n", p->p_pid); 1139313Ssos return ENOSYS; 1149313Ssos} 1159313Ssos 1169313Ssosint 1179313Ssoslinux_nice(struct proc *p, void *args, int *retval) 1189313Ssos{ 1199313Ssos printf("Linux-emul(%d): nice() not supported\n", p->p_pid); 1209313Ssos return ENOSYS; 1219313Ssos} 1229313Ssos 1239313Ssosint 1249313Ssoslinux_ftime(struct proc *p, void *args, int *retval) 1259313Ssos{ 1269313Ssos printf("Linux-emul(%d): ftime() not supported\n", p->p_pid); 1279313Ssos return ENOSYS; 1289313Ssos} 1299313Ssos 1309313Ssosint 1319313Ssoslinux_prof(struct proc *p, void *args, int *retval) 1329313Ssos{ 1339313Ssos printf("Linux-emul(%d): prof() not supported\n", p->p_pid); 1349313Ssos return ENOSYS; 1359313Ssos} 1369313Ssos 1379313Ssosint 1389313Ssoslinux_signal(struct proc *p, void *args, int *retval) 1399313Ssos{ 1409313Ssos printf("Linux-emul(%d): signal() not supported\n", p->p_pid); 1419313Ssos return ENOSYS; 1429313Ssos} 1439313Ssos 1449313Ssosint 1459313Ssoslinux_phys(struct proc *p, void *args, int *retval) 1469313Ssos{ 1479313Ssos printf("Linux-emul(%d): phys() not supported\n", p->p_pid); 1489313Ssos return ENOSYS; 1499313Ssos} 1509313Ssos 1519313Ssosint 1529313Ssoslinux_lock(struct proc *p, void *args, int *retval) 1539313Ssos{ 1549313Ssos printf("Linux-emul(%d): lock() not supported\n", p->p_pid); 1559313Ssos return ENOSYS; 1569313Ssos} 1579313Ssos 1589313Ssosint 1599313Ssoslinux_mpx(struct proc *p, void *args, int *retval) 1609313Ssos{ 1619313Ssos printf("Linux-emul(%d): mpx() not supported\n", p->p_pid); 1629313Ssos return ENOSYS; 1639313Ssos} 1649313Ssos 1659313Ssosint 1669313Ssoslinux_ulimit(struct proc *p, void *args, int *retval) 1679313Ssos{ 1689313Ssos printf("Linux-emul(%d): ulimit() not supported\n", p->p_pid); 1699313Ssos return ENOSYS; 1709313Ssos} 1719313Ssos 1729313Ssosint 1739313Ssoslinux_olduname(struct proc *p, void *args, int *retval) 1749313Ssos{ 1759313Ssos printf("Linux-emul(%d): olduname() not supported\n", p->p_pid); 1769313Ssos return ENOSYS; 1779313Ssos} 1789313Ssos 1799313Ssosint 1809313Ssoslinux_ustat(struct proc *p, void *args, int *retval) 1819313Ssos{ 1829313Ssos printf("Linux-emul(%d): ustat() not supported\n", p->p_pid); 1839313Ssos return ENOSYS; 1849313Ssos} 1859313Ssos 1869313Ssosint 1879313Ssoslinux_ioperm(struct proc *p, void *args, int *retval) 1889313Ssos{ 1899313Ssos printf("Linux-emul(%d): ioperm() not supported\n", p->p_pid); 1909313Ssos return 0; /* EINVAL SOS XXX */ 1919313Ssos} 1929313Ssos 1939313Ssosint 1949313Ssoslinux_syslog(struct proc *p, void *args, int *retval) 1959313Ssos{ 1969313Ssos printf("Linux-emul(%d): syslog() not supported (BSD sigreturn)\n",p->p_pid); 1979313Ssos return sigreturn(p, args, retval); 1989313Ssos} 1999313Ssos 2009313Ssosint 2019313Ssoslinux_iopl(struct proc *p, void *args, int *retval) 2029313Ssos{ 2039313Ssos printf("Linux-emul(%d): iopl() not supported\n", p->p_pid); 2049313Ssos return ENOSYS; 2059313Ssos} 2069313Ssos 2079313Ssosint 2089313Ssoslinux_vhangup(struct proc *p, void *args, int *retval) 2099313Ssos{ 2109313Ssos printf("Linux-emul(%d): vhangup() not supported\n", p->p_pid); 2119313Ssos return ENOSYS; 2129313Ssos} 2139313Ssos 2149313Ssosint 2159313Ssoslinux_idle(struct proc *p, void *args, int *retval) 2169313Ssos{ 2179313Ssos printf("Linux-emul(%d): idle() not supported\n", p->p_pid); 2189313Ssos return ENOSYS; 2199313Ssos} 2209313Ssos 2219313Ssosint 2229313Ssoslinux_vm86(struct proc *p, void *args, int *retval) 2239313Ssos{ 2249313Ssos printf("Linux-emul(%d): vm86() not supported\n", p->p_pid); 2259313Ssos return ENOSYS; 2269313Ssos} 2279313Ssos 2289313Ssosint 2299313Ssoslinux_swapoff(struct proc *p, void *args, int *retval) 2309313Ssos{ 2319313Ssos printf("Linux-emul(%d): swapoff() not supported\n", p->p_pid); 2329313Ssos return ENOSYS; 2339313Ssos} 2349313Ssos 2359313Ssosint 2369313Ssoslinux_sysinfo(struct proc *p, void *args, int *retval) 2379313Ssos{ 2389313Ssos printf("Linux-emul(%d): sysinfo() not supported\n", p->p_pid); 2399313Ssos return ENOSYS; 2409313Ssos} 2419313Ssos 2429313Ssosint 2439313Ssoslinux_sigreturn(struct proc *p, void *args, int *retval) 2449313Ssos{ 2459313Ssos printf("Linux-emul(%d): sigreturn() not supported\n", p->p_pid); 2469313Ssos return ENOSYS; 2479313Ssos} 2489313Ssos 2499313Ssosint 2509313Ssoslinux_clone(struct proc *p, void *args, int *retval) 2519313Ssos{ 2529313Ssos printf("Linux-emul(%d): clone() not supported\n", p->p_pid); 2539313Ssos return ENOSYS; 2549313Ssos} 2559313Ssos 2569313Ssosint 2579313Ssoslinux_uname(struct proc *p, void *args, int *retval) 2589313Ssos{ 2599313Ssos printf("Linux-emul(%d): uname() not supported\n", p->p_pid); 2609313Ssos return ENOSYS; 2619313Ssos} 2629313Ssos 2639313Ssosint 2649313Ssoslinux_modify_ldt(struct proc *p, void *args, int *retval) 2659313Ssos{ 2669313Ssos printf("Linux-emul(%d): modify_ldt() not supported\n", p->p_pid); 2679313Ssos return ENOSYS; 2689313Ssos} 2699313Ssos 2709313Ssosint 2719313Ssoslinux_adjtimex(struct proc *p, void *args, int *retval) 2729313Ssos{ 2739313Ssos printf("Linux-emul(%d): adjtimex() not supported\n", p->p_pid); 2749313Ssos return ENOSYS; 2759313Ssos} 2769313Ssos 2779313Ssosint 2789313Ssoslinux_create_module(struct proc *p, void *args, int *retval) 2799313Ssos{ 2809313Ssos printf("Linux-emul(%d): create_module() not supported\n", p->p_pid); 2819313Ssos return ENOSYS; 2829313Ssos} 2839313Ssos 2849313Ssosint 2859313Ssoslinux_init_module(struct proc *p, void *args, int *retval) 2869313Ssos{ 2879313Ssos printf("Linux-emul(%d): init_module() not supported\n", p->p_pid); 2889313Ssos return ENOSYS; 2899313Ssos} 2909313Ssos 2919313Ssosint 2929313Ssoslinux_delete_module(struct proc *p, void *args, int *retval) 2939313Ssos{ 2949313Ssos printf("Linux-emul(%d): delete_module() not supported\n", p->p_pid); 2959313Ssos return ENOSYS; 2969313Ssos} 2979313Ssos 2989313Ssosint 2999313Ssoslinux_get_kernel_syms(struct proc *p, void *args, int *retval) 3009313Ssos{ 3019313Ssos printf("Linux-emul(%d): get_kernel_syms() not supported\n", p->p_pid); 3029313Ssos return ENOSYS; 3039313Ssos} 3049313Ssos 3059313Ssosint 3069313Ssoslinux_quotactl(struct proc *p, void *args, int *retval) 3079313Ssos{ 3089313Ssos printf("Linux-emul(%d): quotactl() not supported\n", p->p_pid); 3099313Ssos return ENOSYS; 3109313Ssos} 3119313Ssos 3129313Ssosint 3139313Ssoslinux_bdflush(struct proc *p, void *args, int *retval) 3149313Ssos{ 3159313Ssos printf("Linux-emul(%d): bdflush() not supported\n", p->p_pid); 3169313Ssos return ENOSYS; 3179313Ssos} 318