Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 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. |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 27 | */ |
| 28 | |
Dmitry V. Levin | 44f0ed1 | 2013-05-01 15:56:22 +0000 | [diff] [blame] | 29 | #ifndef HAVE_STRUCT___OLD_KERNEL_STAT |
| 30 | #define sys_oldfstat printargs |
| 31 | #define sys_oldstat printargs |
| 32 | #endif |
| 33 | |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 34 | /* still unfinished */ |
Dmitry V. Levin | cbd4e92 | 2013-05-08 16:36:29 +0000 | [diff] [blame] | 35 | #define sys_kcmp printargs |
Dmitry V. Levin | e78f02a | 2015-01-12 18:53:32 +0000 | [diff] [blame] | 36 | #define sys_kexec_file_load printargs |
Dmitry V. Levin | b9e897d | 2011-10-12 19:03:29 +0000 | [diff] [blame] | 37 | #define sys_lookup_dcookie printargs |
Dmitry V. Levin | 00ebeee | 2011-11-26 23:37:23 +0000 | [diff] [blame] | 38 | #define sys_name_to_handle_at printargs |
Dmitry V. Levin | 00ebeee | 2011-11-26 23:37:23 +0000 | [diff] [blame] | 39 | #define sys_open_by_handle_at printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 40 | #define sys_sysfs printargs |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 41 | #define sys_vm86 printargs |
Dmitry V. Levin | e78f02a | 2015-01-12 18:53:32 +0000 | [diff] [blame] | 42 | #define sys_vm86old printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 43 | |
Roland McGrath | 67ecd63 | 2002-12-15 23:58:21 +0000 | [diff] [blame] | 44 | /* machine-specific */ |
Dmitry V. Levin | 662221c | 2014-04-09 12:46:05 +0000 | [diff] [blame] | 45 | #if !(defined I386 || defined X86_64 || defined X32) |
| 46 | # define sys_modify_ldt printargs |
| 47 | # ifndef M68K |
| 48 | # define sys_get_thread_area printargs |
Dmitry V. Levin | 15bc281 | 2014-04-09 13:14:44 +0000 | [diff] [blame] | 49 | # ifndef MIPS |
| 50 | # define sys_set_thread_area printargs |
| 51 | # endif |
Dmitry V. Levin | 662221c | 2014-04-09 12:46:05 +0000 | [diff] [blame] | 52 | # endif |
Andreas Schwab | 5874322 | 2010-05-28 22:28:51 +0200 | [diff] [blame] | 53 | #endif |
Roland McGrath | 67ecd63 | 2002-12-15 23:58:21 +0000 | [diff] [blame] | 54 | |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 55 | /* like another call */ |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 56 | #define sys_acct sys_chdir |
Dmitry V. Levin | ad178c0 | 2011-11-28 22:48:53 +0000 | [diff] [blame] | 57 | #define sys_chroot sys_chdir |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 58 | #define sys_clock_getres sys_clock_gettime |
Dmitry V. Levin | 771c2a4 | 2015-07-19 22:55:56 +0000 | [diff] [blame] | 59 | #define sys_connect sys_bind |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 60 | #define sys_fchdir sys_close |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 61 | #define sys_fdatasync sys_close |
Dmitry V. Levin | 531af48 | 2012-03-11 15:28:03 +0000 | [diff] [blame] | 62 | #define sys_fsync sys_close |
Denys Vlasenko | 72879c6 | 2012-02-27 14:18:02 +0100 | [diff] [blame] | 63 | #define sys_getegid sys_getuid |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 64 | #define sys_getegid16 sys_geteuid16 |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 65 | #define sys_geteuid sys_getuid |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 66 | #define sys_geteuid16 sys_getuid16 |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 67 | #define sys_getgid sys_getuid |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 68 | #define sys_getgid16 sys_getuid16 |
Dmitry V. Levin | 37548c4 | 2014-12-02 21:36:04 +0000 | [diff] [blame] | 69 | #define sys_getpeername sys_getsockname |
Denys Vlasenko | 72879c6 | 2012-02-27 14:18:02 +0100 | [diff] [blame] | 70 | #define sys_getresgid sys_getresuid |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 71 | #define sys_getresgid16 sys_getresuid16 |
Dmitry V. Levin | 44f0ed1 | 2013-05-01 15:56:22 +0000 | [diff] [blame] | 72 | #define sys_lstat sys_stat |
| 73 | #define sys_lstat64 sys_stat64 |
Dmitry V. Levin | 6355a1f | 2014-12-01 18:24:55 +0000 | [diff] [blame] | 74 | #define sys_mkdir sys_chmod |
| 75 | #define sys_mkdirat sys_fchmodat |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 76 | #define sys_mlock sys_munmap |
Dmitry V. Levin | ad178c0 | 2011-11-28 22:48:53 +0000 | [diff] [blame] | 77 | #define sys_mq_unlink sys_chdir |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 78 | #define sys_munlock sys_munmap |
Dmitry V. Levin | 44f0ed1 | 2013-05-01 15:56:22 +0000 | [diff] [blame] | 79 | #define sys_oldlstat sys_oldstat |
Dmitry V. Levin | ad178c0 | 2011-11-28 22:48:53 +0000 | [diff] [blame] | 80 | #define sys_pivotroot sys_link |
| 81 | #define sys_rename sys_link |
| 82 | #define sys_rmdir sys_chdir |
Denys Vlasenko | aea4b87 | 2012-02-28 16:39:44 +0100 | [diff] [blame] | 83 | #define sys_sched_get_priority_max sys_sched_get_priority_min |
Dmitry V. Levin | 1e8ed07 | 2012-03-11 21:57:57 +0000 | [diff] [blame] | 84 | #define sys_set_robust_list sys_munmap |
Dmitry V. Levin | 907df1e | 2014-12-02 21:42:34 +0000 | [diff] [blame] | 85 | #define sys_setdomainname sys_sethostname |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 86 | #define sys_setfsgid sys_setfsuid |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 87 | #define sys_setfsgid16 sys_setfsuid16 |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 88 | #define sys_setgid sys_setuid |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 89 | #define sys_setgid16 sys_setuid16 |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 90 | #define sys_setregid sys_setreuid |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 91 | #define sys_setregid16 sys_setreuid16 |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 92 | #define sys_setresgid sys_setresuid |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 93 | #define sys_setresgid16 sys_setresuid16 |
Dmitry V. Levin | 8238590 | 2014-12-02 20:47:30 +0000 | [diff] [blame] | 94 | #define sys_stime sys_time |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 95 | #define sys_swapoff sys_chdir |
Dmitry V. Levin | ad178c0 | 2011-11-28 22:48:53 +0000 | [diff] [blame] | 96 | #define sys_symlink sys_link |
Dmitry V. Levin | 00ebeee | 2011-11-26 23:37:23 +0000 | [diff] [blame] | 97 | #define sys_syncfs sys_close |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 98 | #define sys_umount sys_chdir |
Dmitry V. Levin | ad178c0 | 2011-11-28 22:48:53 +0000 | [diff] [blame] | 99 | #define sys_unlink sys_chdir |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 100 | #define sys_uselib sys_chdir |
Dmitry V. Levin | 6556315 | 2014-05-12 13:43:10 +0000 | [diff] [blame] | 101 | #define sys_vfork sys_fork |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 102 | |
| 103 | /* printargs does the right thing */ |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 104 | #define sys_getpgid printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 105 | #define sys_getpid printargs |
| 106 | #define sys_getppid printargs |
Dmitry V. Levin | b9e897d | 2011-10-12 19:03:29 +0000 | [diff] [blame] | 107 | #define sys_gettid printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 108 | #define sys_idle printargs |
Dmitry V. Levin | b9e897d | 2011-10-12 19:03:29 +0000 | [diff] [blame] | 109 | #define sys_inotify_init printargs |
Elvira Khabirova | 483c15f | 2015-07-10 22:24:58 +0300 | [diff] [blame] | 110 | #define sys_ipc printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 111 | #define sys_munlockall printargs |
| 112 | #define sys_pause printargs |
Elvira Khabirova | 140ecf8 | 2015-07-10 22:24:48 +0300 | [diff] [blame] | 113 | #define sys_printargs printargs |
Dmitry V. Levin | b9e897d | 2011-10-12 19:03:29 +0000 | [diff] [blame] | 114 | #define sys_rt_sigreturn printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 115 | #define sys_sched_yield printargs |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 116 | #define sys_setsid printargs |
Dmitry V. Levin | b9e897d | 2011-10-12 19:03:29 +0000 | [diff] [blame] | 117 | #define sys_set_tid_address printargs |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 118 | #define sys_setup printargs |
Elvira Khabirova | 483c15f | 2015-07-10 22:24:58 +0300 | [diff] [blame] | 119 | #define sys_socketcall printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 120 | #define sys_sync printargs |
| 121 | #define sys_timer_delete printargs |
| 122 | #define sys_timer_getoverrun printargs |
| 123 | #define sys_vhangup printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 124 | |
Denys Vlasenko | 72879c6 | 2012-02-27 14:18:02 +0100 | [diff] [blame] | 125 | /* printargs_lu/ld does the right thing */ |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 126 | #define sys_alarm printargs_lu |
Denys Vlasenko | 72879c6 | 2012-02-27 14:18:02 +0100 | [diff] [blame] | 127 | #define sys_getpgrp printargs_lu |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 128 | #define sys_getsid printargs_lu |
| 129 | #define sys_nice printargs_ld |
Denys Vlasenko | 72879c6 | 2012-02-27 14:18:02 +0100 | [diff] [blame] | 130 | #define sys_setpgid printargs_lu |
| 131 | #define sys_setpgrp printargs_lu |
Denys Vlasenko | 72879c6 | 2012-02-27 14:18:02 +0100 | [diff] [blame] | 132 | |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 133 | /* unimplemented */ |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 134 | #define sys_afs_syscall printargs |
| 135 | #define sys_break printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 136 | #define sys_ftime printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 137 | #define sys_get_kernel_syms printargs |
| 138 | #define sys_gtty printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 139 | #define sys_lock printargs |
| 140 | #define sys_mpx printargs |
Dmitry V. Levin | f33ee91 | 2011-11-28 15:53:20 +0000 | [diff] [blame] | 141 | #define sys_nfsservctl printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 142 | #define sys_phys printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 143 | #define sys_profil printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 144 | #define sys_prof printargs |
Dmitry V. Levin | b9e897d | 2011-10-12 19:03:29 +0000 | [diff] [blame] | 145 | #define sys_security printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 146 | #define sys_stty printargs |
Dmitry V. Levin | b9e897d | 2011-10-12 19:03:29 +0000 | [diff] [blame] | 147 | #define sys_tuxcall printargs |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 148 | #define sys_ulimit printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 149 | #define sys_ustat printargs |
Dmitry V. Levin | b9e897d | 2011-10-12 19:03:29 +0000 | [diff] [blame] | 150 | #define sys_vserver printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 151 | |
| 152 | /* deprecated */ |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 153 | #define sys_bdflush printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 154 | #define sys_oldolduname printargs |
Dmitry V. Levin | 6bbe696 | 2012-03-11 15:43:04 +0000 | [diff] [blame] | 155 | #define sys_olduname printargs |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 156 | |
Denys Vlasenko | cc90291 | 2013-03-05 16:50:12 +0100 | [diff] [blame] | 157 | /* Who has STREAMS syscalls? |
| 158 | * Linux hasn't. Solaris has (had?). |
| 159 | * Just in case I miss something, retain in for Sparc. |
| 160 | * Note: SYS_get/putpmsg may be defined even though syscalls |
| 161 | * return ENOSYS. Can't just check defined(SYS_getpmsg). |
| 162 | */ |
| 163 | #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_getpmsg) |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 164 | #define sys_getpmsg printargs |
Roland McGrath | 8bcf357 | 2003-01-24 04:39:46 +0000 | [diff] [blame] | 165 | #endif |
Denys Vlasenko | cc90291 | 2013-03-05 16:50:12 +0100 | [diff] [blame] | 166 | #if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_putpmsg) |
Dmitry V. Levin | 9e38484 | 2011-10-12 16:40:17 +0000 | [diff] [blame] | 167 | #define sys_putpmsg printargs |
Roland McGrath | 8bcf357 | 2003-01-24 04:39:46 +0000 | [diff] [blame] | 168 | #endif |