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  * Copyright (c) 1995-2017 The strace developers.
      5  * All rights reserved.
      6  *
      7  * Redistribution and use in source and binary forms, with or without
      8  * modification, are permitted provided that the following conditions
      9  * are met:
     10  * 1. Redistributions of source code must retain the above copyright
     11  *    notice, this list of conditions and the following disclaimer.
     12  * 2. Redistributions in binary form must reproduce the above copyright
     13  *    notice, this list of conditions and the following disclaimer in the
     14  *    documentation and/or other materials provided with the distribution.
     15  * 3. The name of the author may not be used to endorse or promote products
     16  *    derived from this software without specific prior written permission.
     17  *
     18  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     19  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     20  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     21  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     22  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     23  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     24  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     25  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     27  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     28  */
     29 
     30 #ifndef STRACE_LINUX_DUMMY_H
     31 #define STRACE_LINUX_DUMMY_H
     32 
     33 #ifndef HAVE_STRUCT___OLD_KERNEL_STAT
     34 #define	sys_oldfstat		printargs
     35 #define	sys_oldstat		printargs
     36 #endif
     37 
     38 /* still unfinished */
     39 #define	sys_vm86		printargs
     40 #define	sys_vm86old		printargs
     41 
     42 /* machine-specific */
     43 #ifndef HAVE_STRUCT_USER_DESC
     44 # define	sys_modify_ldt		printargs
     45 #endif
     46 
     47 #if !(defined HAVE_STRUCT_USER_DESC || defined M68K || defined MIPS)
     48 # define	sys_set_thread_area	printargs
     49 #endif
     50 
     51 #if !(defined HAVE_STRUCT_USER_DESC || defined M68K)
     52 # define	sys_get_thread_area	printargs
     53 #endif
     54 
     55 #ifdef ALPHA
     56 # define	sys_getdtablesize	printargs
     57 #endif
     58 
     59 /* like another call */
     60 #define	sys_acct		sys_chdir
     61 #define	sys_chroot		sys_chdir
     62 #define	sys_clock_getres	sys_clock_gettime
     63 #define	sys_connect		sys_bind
     64 #define	sys_fchdir		sys_close
     65 #define	sys_fdatasync		sys_close
     66 #define	sys_fsync		sys_close
     67 #define	sys_getegid		sys_getuid
     68 #define	sys_getegid16		sys_geteuid16
     69 #define	sys_geteuid		sys_getuid
     70 #define	sys_geteuid16		sys_getuid16
     71 #define	sys_getgid		sys_getuid
     72 #define	sys_getgid16		sys_getuid16
     73 #define	sys_getpeername		sys_getsockname
     74 #define	sys_getresgid		sys_getresuid
     75 #define	sys_getresgid16		sys_getresuid16
     76 #define	sys_lstat		sys_stat
     77 #define	sys_lstat64		sys_stat64
     78 #define	sys_mkdir		sys_chmod
     79 #define	sys_mkdirat		sys_fchmodat
     80 #define	sys_mlock		sys_munmap
     81 #define	sys_mq_unlink		sys_chdir
     82 #define	sys_munlock		sys_munmap
     83 #define	sys_oldlstat		sys_oldstat
     84 #define	sys_pivotroot		sys_link
     85 #define	sys_rename		sys_link
     86 #define	sys_rmdir		sys_chdir
     87 #define	sys_sched_get_priority_max	sys_sched_get_priority_min
     88 #define	sys_set_robust_list	sys_munmap
     89 #define	sys_setdomainname	sys_sethostname
     90 #define	sys_setfsgid		sys_setfsuid
     91 #define	sys_setfsgid16		sys_setfsuid16
     92 #define	sys_setgid		sys_setuid
     93 #define	sys_setgid16		sys_setuid16
     94 #define	sys_setregid		sys_setreuid
     95 #define	sys_setregid16		sys_setreuid16
     96 #define	sys_setresgid		sys_setresuid
     97 #define	sys_setresgid16		sys_setresuid16
     98 #define	sys_stime		sys_time
     99 #define	sys_swapoff		sys_chdir
    100 #define	sys_symlink		sys_link
    101 #define	sys_syncfs		sys_close
    102 #define	sys_umount		sys_chdir
    103 #define	sys_unlink		sys_chdir
    104 #define	sys_uselib		sys_chdir
    105 #define	sys_vfork		sys_fork
    106 
    107 /* printargs does the right thing */
    108 #define	sys_getpgrp		printargs
    109 #define	sys_getpid		printargs
    110 #define	sys_getppid		printargs
    111 #define	sys_gettid		printargs
    112 #define	sys_idle		printargs
    113 #define	sys_inotify_init	printargs
    114 #define	sys_munlockall		printargs
    115 #define	sys_pause		printargs
    116 #define	sys_printargs		printargs
    117 #define	sys_sched_yield		printargs
    118 #define	sys_setsid		printargs
    119 #define	sys_set_tid_address	printargs
    120 #define	sys_setup		printargs
    121 #define	sys_sync		printargs
    122 #define	sys_syscall		printargs
    123 #define	sys_vhangup		printargs
    124 
    125 /* printargs_u does the right thing */
    126 #define	sys_alarm		printargs_u
    127 
    128 /* printargs_d does the right thing */
    129 #define	sys_exit		printargs_d
    130 #define	sys_getpgid		printargs_d
    131 #define	sys_getsid		printargs_d
    132 #define	sys_nice		printargs_d
    133 #define	sys_setpgid		printargs_d
    134 #define	sys_setpgrp		printargs_d
    135 #define	sys_timer_delete	printargs_d
    136 #define	sys_timer_getoverrun	printargs_d
    137 
    138 /* unimplemented */
    139 #define	sys_afs_syscall		printargs
    140 #define	sys_break		printargs
    141 #define	sys_create_module	printargs
    142 #define	sys_ftime		printargs
    143 #define	sys_get_kernel_syms	printargs
    144 #define	sys_getpmsg		printargs
    145 #define	sys_gtty		printargs
    146 #define	sys_lock		printargs
    147 #define	sys_mpx			printargs
    148 #define	sys_nfsservctl		printargs
    149 #define	sys_phys		printargs
    150 #define	sys_prof		printargs
    151 #define	sys_profil		printargs
    152 #define	sys_putpmsg		printargs
    153 #define	sys_query_module	printargs
    154 #define	sys_security		printargs
    155 #define	sys_stty		printargs
    156 #define	sys_timerfd		printargs
    157 #define	sys_tuxcall		printargs
    158 #define	sys_ulimit		printargs
    159 #define	sys_vserver		printargs
    160 
    161 /* deprecated */
    162 #define	sys_bdflush		printargs
    163 #define	sys_oldolduname		printargs
    164 #define	sys_olduname		printargs
    165 #define	sys_sysfs		printargs
    166 
    167 #endif /* !STRACE_LINUX_DUMMY_H */
    168