1 /*
2  * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
3  * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com>
4  * Copyright (c) 1995-2018 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_rseq		printargs
40 #define	sys_vm86		printargs
41 #define	sys_vm86old		printargs
42 
43 /* machine-specific */
44 #ifndef HAVE_STRUCT_USER_DESC
45 # define	sys_modify_ldt		printargs
46 #endif
47 
48 #if !(defined HAVE_STRUCT_USER_DESC || defined M68K || defined MIPS)
49 # define	sys_set_thread_area	printargs
50 #endif
51 
52 #if !(defined HAVE_STRUCT_USER_DESC || defined M68K)
53 # define	sys_get_thread_area	printargs
54 #endif
55 
56 #ifdef ALPHA
57 # define	sys_getdtablesize	printargs
58 #endif
59 
60 /* like another call */
61 #define	sys_acct		sys_chdir
62 #define	sys_chroot		sys_chdir
63 #define	sys_clock_getres	sys_clock_gettime
64 #define	sys_connect		sys_bind
65 #define	sys_fchdir		sys_close
66 #define	sys_fdatasync		sys_close
67 #define	sys_fsync		sys_close
68 #define	sys_getegid		sys_getuid
69 #define	sys_getegid16		sys_geteuid16
70 #define	sys_geteuid		sys_getuid
71 #define	sys_geteuid16		sys_getuid16
72 #define	sys_getgid		sys_getuid
73 #define	sys_getgid16		sys_getuid16
74 #define	sys_getpeername		sys_getsockname
75 #define	sys_getresgid		sys_getresuid
76 #define	sys_getresgid16		sys_getresuid16
77 #define	sys_lstat		sys_stat
78 #define	sys_lstat64		sys_stat64
79 #define	sys_mkdir		sys_chmod
80 #define	sys_mkdirat		sys_fchmodat
81 #define	sys_mlock		sys_munmap
82 #define	sys_mq_unlink		sys_chdir
83 #define	sys_munlock		sys_munmap
84 #define	sys_oldlstat		sys_oldstat
85 #define	sys_pivotroot		sys_link
86 #define	sys_rename		sys_link
87 #define	sys_rmdir		sys_chdir
88 #define	sys_sched_get_priority_max	sys_sched_get_priority_min
89 #define	sys_set_robust_list	sys_munmap
90 #define	sys_setdomainname	sys_sethostname
91 #define	sys_setfsgid		sys_setfsuid
92 #define	sys_setfsgid16		sys_setfsuid16
93 #define	sys_setgid		sys_setuid
94 #define	sys_setgid16		sys_setuid16
95 #define	sys_setregid		sys_setreuid
96 #define	sys_setregid16		sys_setreuid16
97 #define	sys_setresgid		sys_setresuid
98 #define	sys_setresgid16		sys_setresuid16
99 #define	sys_stime		sys_time
100 #define	sys_swapoff		sys_chdir
101 #define	sys_symlink		sys_link
102 #define	sys_syncfs		sys_close
103 #define	sys_umount		sys_chdir
104 #define	sys_unlink		sys_chdir
105 #define	sys_uselib		sys_chdir
106 #define	sys_vfork		sys_fork
107 
108 /* printargs does the right thing */
109 #define	sys_getpgrp		printargs
110 #define	sys_getpid		printargs
111 #define	sys_getppid		printargs
112 #define	sys_gettid		printargs
113 #define	sys_idle		printargs
114 #define	sys_inotify_init	printargs
115 #define	sys_munlockall		printargs
116 #define	sys_pause		printargs
117 #define	sys_printargs		printargs
118 #define	sys_sched_yield		printargs
119 #define	sys_setsid		printargs
120 #define	sys_set_tid_address	printargs
121 #define	sys_setup		printargs
122 #define	sys_sync		printargs
123 #define	sys_syscall		printargs
124 #define	sys_vhangup		printargs
125 
126 /* printargs_u does the right thing */
127 #define	sys_alarm		printargs_u
128 
129 /* printargs_d does the right thing */
130 #define	sys_exit		printargs_d
131 #define	sys_getpgid		printargs_d
132 #define	sys_getsid		printargs_d
133 #define	sys_nice		printargs_d
134 #define	sys_setpgid		printargs_d
135 #define	sys_setpgrp		printargs_d
136 #define	sys_timer_delete	printargs_d
137 #define	sys_timer_getoverrun	printargs_d
138 
139 /* unimplemented */
140 #define	sys_afs_syscall		printargs
141 #define	sys_break		printargs
142 #define	sys_create_module	printargs
143 #define	sys_ftime		printargs
144 #define	sys_get_kernel_syms	printargs
145 #define	sys_getpmsg		printargs
146 #define	sys_gtty		printargs
147 #define	sys_lock		printargs
148 #define	sys_mpx			printargs
149 #define	sys_nfsservctl		printargs
150 #define	sys_phys		printargs
151 #define	sys_prof		printargs
152 #define	sys_profil		printargs
153 #define	sys_putpmsg		printargs
154 #define	sys_query_module	printargs
155 #define	sys_security		printargs
156 #define	sys_stty		printargs
157 #define	sys_timerfd		printargs
158 #define	sys_tuxcall		printargs
159 #define	sys_ulimit		printargs
160 #define	sys_vserver		printargs
161 
162 /* deprecated */
163 #define	sys_bdflush		printargs
164 #define	sys_oldolduname		printargs
165 #define	sys_olduname		printargs
166 #define	sys_sysfs		printargs
167 
168 #endif /* !STRACE_LINUX_DUMMY_H */
169