Home | History | Annotate | Download | only in linux
      1 /*
      2  * Copyright (c) 1993 Branko Lankester <branko (at) hacktic.nl>
      3  * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs (at) 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_bpf			printargs
     36 #define	sys_execveat		printargs
     37 #define	sys_ioperm		printargs
     38 #define	sys_iopl		printargs
     39 #define	sys_kcmp		printargs
     40 #define	sys_kexec_file_load	printargs
     41 #define	sys_lookup_dcookie	printargs
     42 #define	sys_memfd_create	printargs
     43 #define	sys_name_to_handle_at	printargs
     44 #define	sys_open_by_handle_at	printargs
     45 #define	sys_sched_getattr	printargs
     46 #define	sys_sched_setattr	printargs
     47 #define	sys_sysfs		printargs
     48 #define	sys_vm86		printargs
     49 #define	sys_vm86old		printargs
     50 
     51 /* machine-specific */
     52 #if !(defined I386 || defined X86_64 || defined X32)
     53 # define	sys_modify_ldt		printargs
     54 # ifndef M68K
     55 #  define	sys_get_thread_area	printargs
     56 #  ifndef MIPS
     57 #   define	sys_set_thread_area	printargs
     58 #  endif
     59 # endif
     60 #endif
     61 
     62 /* like another call */
     63 #define	sys_acct		sys_chdir
     64 #define	sys_chroot		sys_chdir
     65 #define	sys_clock_getres	sys_clock_gettime
     66 #define	sys_fchdir		sys_close
     67 #define	sys_fdatasync		sys_close
     68 #define	sys_fsync		sys_close
     69 #define	sys_getegid		sys_getuid
     70 #define	sys_getegid16		sys_geteuid16
     71 #define	sys_geteuid		sys_getuid
     72 #define	sys_geteuid16		sys_getuid16
     73 #define	sys_getgid		sys_getuid
     74 #define	sys_getgid16		sys_getuid16
     75 #define	sys_getpeername		sys_getsockname
     76 #define	sys_getresgid		sys_getresuid
     77 #define	sys_getresgid16		sys_getresuid16
     78 #define	sys_lstat		sys_stat
     79 #define	sys_lstat64		sys_stat64
     80 #define	sys_mkdir		sys_chmod
     81 #define	sys_mkdirat		sys_fchmodat
     82 #define	sys_mlock		sys_munmap
     83 #define	sys_mq_unlink		sys_chdir
     84 #define	sys_munlock		sys_munmap
     85 #define	sys_oldlstat		sys_oldstat
     86 #define	sys_pivotroot		sys_link
     87 #define	sys_rename		sys_link
     88 #define	sys_rmdir		sys_chdir
     89 #define	sys_sched_get_priority_max	sys_sched_get_priority_min
     90 #define	sys_set_robust_list	sys_munmap
     91 #define	sys_setdomainname	sys_sethostname
     92 #define	sys_setfsgid		sys_setfsuid
     93 #define	sys_setfsgid16		sys_setfsuid16
     94 #define	sys_setgid		sys_setuid
     95 #define	sys_setgid16		sys_setuid16
     96 #define	sys_setregid		sys_setreuid
     97 #define	sys_setregid16		sys_setreuid16
     98 #define	sys_setresgid		sys_setresuid
     99 #define	sys_setresgid16		sys_setresuid16
    100 #define	sys_stime		sys_time
    101 #define	sys_swapoff		sys_chdir
    102 #define	sys_symlink		sys_link
    103 #define	sys_syncfs		sys_close
    104 #define	sys_umount		sys_chdir
    105 #define	sys_unlink		sys_chdir
    106 #define	sys_uselib		sys_chdir
    107 #define	sys_vfork		sys_fork
    108 
    109 /* printargs does the right thing */
    110 #define	sys_getpgid		printargs
    111 #define	sys_getpid		printargs
    112 #define	sys_getppid		printargs
    113 #define	sys_gettid		printargs
    114 #define	sys_idle		printargs
    115 #define	sys_inotify_init	printargs
    116 #define	sys_munlockall		printargs
    117 #define	sys_pause		printargs
    118 #define	sys_rt_sigreturn	printargs
    119 #define	sys_sched_yield		printargs
    120 #define	sys_setsid		printargs
    121 #define	sys_set_tid_address	printargs
    122 #define	sys_setup		printargs
    123 #define	sys_sync		printargs
    124 #define	sys_timer_delete	printargs
    125 #define	sys_timer_getoverrun	printargs
    126 #define	sys_vhangup		printargs
    127 
    128 /* printargs_lu/ld does the right thing */
    129 #define	sys_alarm		printargs_lu
    130 #define	sys_getpgrp		printargs_lu
    131 #define	sys_getsid		printargs_lu
    132 #define	sys_nice		printargs_ld
    133 #define	sys_setpgid		printargs_lu
    134 #define	sys_setpgrp		printargs_lu
    135 
    136 /* unimplemented */
    137 #define	sys_afs_syscall		printargs
    138 #define	sys_break		printargs
    139 #define	sys_ftime		printargs
    140 #define	sys_get_kernel_syms	printargs
    141 #define	sys_gtty		printargs
    142 #define	sys_lock		printargs
    143 #define	sys_mpx			printargs
    144 #define	sys_nfsservctl		printargs
    145 #define	sys_phys		printargs
    146 #define	sys_profil		printargs
    147 #define	sys_prof		printargs
    148 #define	sys_security		printargs
    149 #define	sys_stty		printargs
    150 #define	sys_tuxcall		printargs
    151 #define	sys_ulimit		printargs
    152 #define	sys_ustat		printargs
    153 #define	sys_vserver		printargs
    154 
    155 /* deprecated */
    156 #define	sys_bdflush		printargs
    157 #define	sys_oldolduname		printargs
    158 #define	sys_olduname		printargs
    159 
    160 /* no library support */
    161 #ifndef HAVE_SENDMSG
    162 #define	sys_recvmsg		printargs
    163 #define	sys_sendmsg		printargs
    164 #endif
    165 
    166 /* Who has STREAMS syscalls?
    167  * Linux hasn't. Solaris has (had?).
    168  * Just in case I miss something, retain in for Sparc.
    169  * Note: SYS_get/putpmsg may be defined even though syscalls
    170  * return ENOSYS. Can't just check defined(SYS_getpmsg).
    171  */
    172 #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_getpmsg)
    173 #define	sys_getpmsg		printargs
    174 #endif
    175 #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_putpmsg)
    176 #define	sys_putpmsg		printargs
    177 #endif
    178