2 * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
3 * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com>
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
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.
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.
29 #ifndef HAVE_STRUCT___OLD_KERNEL_STAT
30 #define sys_oldfstat printargs
31 #define sys_oldstat printargs
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_sched_getattr printargs
42 #define sys_sched_setattr printargs
43 #define sys_sysfs printargs
44 #define sys_vm86old printargs
45 #define sys_vm86 printargs
47 /* machine-specific */
48 #if !(defined I386 || defined X86_64 || defined X32)
49 # define sys_modify_ldt printargs
51 # define sys_get_thread_area printargs
53 # define sys_set_thread_area printargs
58 /* like another call */
59 #define sys_acct sys_chdir
60 #define sys_chroot sys_chdir
61 #define sys_clock_getres sys_clock_gettime
62 #define sys_fchdir sys_close
63 #define sys_fdatasync sys_close
64 #define sys_fsync sys_close
65 #define sys_getegid sys_getuid
66 #define sys_getegid16 sys_geteuid16
67 #define sys_geteuid sys_getuid
68 #define sys_geteuid16 sys_getuid16
69 #define sys_getgid sys_getuid
70 #define sys_getgid16 sys_getuid16
71 #define sys_getpeername sys_getsockname
72 #define sys_getresgid sys_getresuid
73 #define sys_getresgid16 sys_getresuid16
74 #define sys_lstat sys_stat
75 #define sys_lstat64 sys_stat64
76 #define sys_mkdir sys_chmod
77 #define sys_mkdirat sys_fchmodat
78 #define sys_mlock sys_munmap
79 #define sys_mq_unlink sys_chdir
80 #define sys_munlock sys_munmap
81 #define sys_oldlstat sys_oldstat
82 #define sys_pivotroot sys_link
83 #define sys_rename sys_link
84 #define sys_rmdir sys_chdir
85 #define sys_sched_get_priority_max sys_sched_get_priority_min
86 #define sys_set_robust_list sys_munmap
87 #define sys_setdomainname sys_sethostname
88 #define sys_setfsgid sys_setfsuid
89 #define sys_setfsgid16 sys_setfsuid16
90 #define sys_setgid sys_setuid
91 #define sys_setgid16 sys_setuid16
92 #define sys_setregid sys_setreuid
93 #define sys_setregid16 sys_setreuid16
94 #define sys_setresgid sys_setresuid
95 #define sys_setresgid16 sys_setresuid16
96 #define sys_stime sys_time
97 #define sys_swapoff sys_chdir
98 #define sys_symlink sys_link
99 #define sys_syncfs sys_close
100 #define sys_umount sys_chdir
101 #define sys_unlink sys_chdir
102 #define sys_uselib sys_chdir
103 #define sys_vfork sys_fork
105 /* printargs does the right thing */
106 #define sys_getpgid printargs
107 #define sys_getpid printargs
108 #define sys_getppid printargs
109 #define sys_gettid printargs
110 #define sys_idle printargs
111 #define sys_inotify_init printargs
112 #define sys_munlockall printargs
113 #define sys_pause printargs
114 #define sys_rt_sigreturn printargs
115 #define sys_sched_yield printargs
116 #define sys_setsid printargs
117 #define sys_set_tid_address printargs
118 #define sys_setup printargs
119 #define sys_sync printargs
120 #define sys_timer_delete printargs
121 #define sys_timer_getoverrun printargs
122 #define sys_vhangup printargs
124 /* printargs_lu/ld does the right thing */
125 #define sys_alarm printargs_lu
126 #define sys_getpgrp printargs_lu
127 #define sys_getsid printargs_lu
128 #define sys_nice printargs_ld
129 #define sys_setpgid printargs_lu
130 #define sys_setpgrp printargs_lu
133 #define sys_afs_syscall printargs
134 #define sys_break printargs
135 #define sys_ftime printargs
136 #define sys_get_kernel_syms printargs
137 #define sys_gtty printargs
138 #define sys_lock printargs
139 #define sys_mpx printargs
140 #define sys_nfsservctl printargs
141 #define sys_phys printargs
142 #define sys_profil printargs
143 #define sys_prof printargs
144 #define sys_security printargs
145 #define sys_stty printargs
146 #define sys_tuxcall printargs
147 #define sys_ulimit printargs
148 #define sys_ustat printargs
149 #define sys_vserver printargs
152 #define sys_bdflush printargs
153 #define sys_oldolduname printargs
154 #define sys_olduname printargs
156 /* no library support */
158 #define sys_recvmsg printargs
159 #define sys_sendmsg printargs
162 /* Who has STREAMS syscalls?
163 * Linux hasn't. Solaris has (had?).
164 * Just in case I miss something, retain in for Sparc.
165 * Note: SYS_get/putpmsg may be defined even though syscalls
166 * return ENOSYS. Can't just check defined(SYS_getpmsg).
168 #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_getpmsg)
169 #define sys_getpmsg printargs
171 #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_putpmsg)
172 #define sys_putpmsg printargs