1 /* 2 * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl> 3 * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 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 without 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 29 #ifndef HAVE_STRUCT___OLD_KERNEL_STAT 30 #define sys_oldfstat printargs 31 #define sys_oldstat printargs 32 #endif 33 34 /* still unfinished */ 35 #define sys_ioperm printargs 36 #define sys_iopl printargs 37 #define sys_kcmp printargs 38 #define sys_lookup_dcookie printargs 39 #define sys_name_to_handle_at printargs 40 #define sys_open_by_handle_at printargs 41 #define sys_sysfs printargs 42 #define sys_vm86old printargs 43 #define sys_vm86 printargs 44 45 /* machine-specific */ 46 #if !(defined I386 || defined X86_64 || defined X32) 47 # define sys_modify_ldt printargs 48 # ifndef M68K 49 # define sys_get_thread_area printargs 50 # ifndef MIPS 51 # define sys_set_thread_area printargs 52 # endif 53 # endif 54 #endif 55 56 /* like another call */ 57 #define sys_acct sys_chdir 58 #define sys_chroot sys_chdir 59 #define sys_clock_getres sys_clock_gettime 60 #define sys_fchdir sys_close 61 #define sys_fdatasync sys_close 62 #define sys_fsync sys_close 63 #define sys_getegid sys_getuid 64 #define sys_geteuid sys_getuid 65 #define sys_getgid sys_getuid 66 #define sys_getresgid sys_getresuid 67 #define sys_lstat sys_stat 68 #define sys_lstat64 sys_stat64 69 #define sys_mlock sys_munmap 70 #define sys_mq_unlink sys_chdir 71 #define sys_munlock sys_munmap 72 #define sys_oldlstat sys_oldstat 73 #define sys_pivotroot sys_link 74 #define sys_rename sys_link 75 #define sys_rmdir sys_chdir 76 #define sys_sched_get_priority_max sys_sched_get_priority_min 77 #define sys_set_robust_list sys_munmap 78 #define sys_setfsgid sys_setfsuid 79 #define sys_setgid sys_setuid 80 #define sys_setregid sys_setreuid 81 #define sys_setresgid sys_setresuid 82 #define sys_swapoff sys_chdir 83 #define sys_symlink sys_link 84 #define sys_syncfs sys_close 85 #define sys_umount sys_chdir 86 #define sys_unlink sys_chdir 87 #define sys_uselib sys_chdir 88 #define sys_vfork sys_fork 89 90 /* printargs does the right thing */ 91 #define sys_getpgid printargs 92 #define sys_getpid printargs 93 #define sys_getppid printargs 94 #define sys_gettid printargs 95 #define sys_idle printargs 96 #define sys_inotify_init printargs 97 #define sys_munlockall printargs 98 #define sys_pause printargs 99 #define sys_rt_sigreturn printargs 100 #define sys_sched_yield printargs 101 #define sys_setsid printargs 102 #define sys_set_tid_address printargs 103 #define sys_setup printargs 104 #define sys_sync printargs 105 #define sys_timer_delete printargs 106 #define sys_timer_getoverrun printargs 107 #define sys_vhangup printargs 108 109 /* printargs_lu/ld does the right thing */ 110 #define sys_alarm printargs_lu 111 #define sys_getpgrp printargs_lu 112 #define sys_getsid printargs_lu 113 #define sys_nice printargs_ld 114 #define sys_setpgid printargs_lu 115 #define sys_setpgrp printargs_lu 116 117 /* unimplemented */ 118 #define sys_afs_syscall printargs 119 #define sys_break printargs 120 #define sys_ftime printargs 121 #define sys_get_kernel_syms printargs 122 #define sys_gtty printargs 123 #define sys_lock printargs 124 #define sys_mpx printargs 125 #define sys_nfsservctl printargs 126 #define sys_phys printargs 127 #define sys_profil printargs 128 #define sys_prof printargs 129 #define sys_security printargs 130 #define sys_stty printargs 131 #define sys_tuxcall printargs 132 #define sys_ulimit printargs 133 #define sys_ustat printargs 134 #define sys_vserver printargs 135 136 /* deprecated */ 137 #define sys_bdflush printargs 138 #define sys_oldolduname printargs 139 #define sys_olduname printargs 140 141 /* no library support */ 142 #ifndef HAVE_SENDMSG 143 #define sys_recvmsg printargs 144 #define sys_sendmsg printargs 145 #endif 146 147 /* Who has STREAMS syscalls? 148 * Linux hasn't. Solaris has (had?). 149 * Just in case I miss something, retain in for Sparc. 150 * Note: SYS_get/putpmsg may be defined even though syscalls 151 * return ENOSYS. Can't just check defined(SYS_getpmsg). 152 */ 153 #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_getpmsg) 154 #define sys_getpmsg printargs 155 #endif 156 #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_putpmsg) 157 #define sys_putpmsg printargs 158 #endif 159