• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_vm86		printargs
36 #define	sys_vm86old		printargs
37 
38 /* machine-specific */
39 #if !(defined I386 || defined X86_64 || defined X32)
40 # define	sys_modify_ldt		printargs
41 # ifndef M68K
42 #  define	sys_get_thread_area	printargs
43 #  ifndef MIPS
44 #   define	sys_set_thread_area	printargs
45 #  endif
46 # endif
47 #endif
48 
49 /* like another call */
50 #define	sys_acct		sys_chdir
51 #define	sys_chroot		sys_chdir
52 #define	sys_clock_getres	sys_clock_gettime
53 #define	sys_connect		sys_bind
54 #define	sys_fchdir		sys_close
55 #define	sys_fdatasync		sys_close
56 #define	sys_fsync		sys_close
57 #define	sys_getegid		sys_getuid
58 #define	sys_getegid16		sys_geteuid16
59 #define	sys_geteuid		sys_getuid
60 #define	sys_geteuid16		sys_getuid16
61 #define	sys_getgid		sys_getuid
62 #define	sys_getgid16		sys_getuid16
63 #define	sys_getpeername		sys_getsockname
64 #define	sys_getresgid		sys_getresuid
65 #define	sys_getresgid16		sys_getresuid16
66 #define	sys_lstat		sys_stat
67 #define	sys_lstat64		sys_stat64
68 #define	sys_mkdir		sys_chmod
69 #define	sys_mkdirat		sys_fchmodat
70 #define	sys_mlock		sys_munmap
71 #define	sys_mq_unlink		sys_chdir
72 #define	sys_munlock		sys_munmap
73 #define	sys_oldlstat		sys_oldstat
74 #define	sys_pivotroot		sys_link
75 #define	sys_rename		sys_link
76 #define	sys_rmdir		sys_chdir
77 #define	sys_sched_get_priority_max	sys_sched_get_priority_min
78 #define	sys_set_robust_list	sys_munmap
79 #define	sys_setdomainname	sys_sethostname
80 #define	sys_setfsgid		sys_setfsuid
81 #define	sys_setfsgid16		sys_setfsuid16
82 #define	sys_setgid		sys_setuid
83 #define	sys_setgid16		sys_setuid16
84 #define	sys_setregid		sys_setreuid
85 #define	sys_setregid16		sys_setreuid16
86 #define	sys_setresgid		sys_setresuid
87 #define	sys_setresgid16		sys_setresuid16
88 #define	sys_stime		sys_time
89 #define	sys_swapoff		sys_chdir
90 #define	sys_symlink		sys_link
91 #define	sys_syncfs		sys_close
92 #define	sys_umount		sys_chdir
93 #define	sys_unlink		sys_chdir
94 #define	sys_uselib		sys_chdir
95 #define	sys_vfork		sys_fork
96 
97 /* printargs does the right thing */
98 #define	sys_getpgid		printargs
99 #define	sys_getpid		printargs
100 #define	sys_getppid		printargs
101 #define	sys_gettid		printargs
102 #define	sys_idle		printargs
103 #define	sys_inotify_init	printargs
104 #define	sys_ipc			printargs
105 #define	sys_munlockall		printargs
106 #define	sys_pause		printargs
107 #define	sys_printargs		printargs
108 #define	sys_rt_sigreturn	printargs
109 #define	sys_sched_yield		printargs
110 #define	sys_setsid		printargs
111 #define	sys_set_tid_address	printargs
112 #define	sys_setup		printargs
113 #define	sys_socketcall		printargs
114 #define	sys_sync		printargs
115 #define	sys_timer_delete	printargs
116 #define	sys_timer_getoverrun	printargs
117 #define	sys_vhangup		printargs
118 
119 /* printargs_lu/ld does the right thing */
120 #define	sys_alarm		printargs_lu
121 #define	sys_getpgrp		printargs_lu
122 #define	sys_getsid		printargs_lu
123 #define	sys_nice		printargs_ld
124 #define	sys_setpgid		printargs_lu
125 #define	sys_setpgrp		printargs_lu
126 
127 /* unimplemented */
128 #define	sys_afs_syscall		printargs
129 #define	sys_break		printargs
130 #define	sys_ftime		printargs
131 #define	sys_get_kernel_syms	printargs
132 #define	sys_getpmsg		printargs
133 #define	sys_gtty		printargs
134 #define	sys_lock		printargs
135 #define	sys_mpx			printargs
136 #define	sys_nfsservctl		printargs
137 #define	sys_phys		printargs
138 #define	sys_prof		printargs
139 #define	sys_profil		printargs
140 #define	sys_putpmsg		printargs
141 #define	sys_query_module	printargs
142 #define	sys_security		printargs
143 #define	sys_stty		printargs
144 #define	sys_tuxcall		printargs
145 #define	sys_ulimit		printargs
146 #define	sys_ustat		printargs
147 #define	sys_vserver		printargs
148 
149 /* deprecated */
150 #define	sys_bdflush		printargs
151 #define	sys_oldolduname		printargs
152 #define	sys_olduname		printargs
153 #define	sys_sysfs		printargs
154