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