1 /* $NetBSD: linux_syscalls.c,v 1.30 2000/12/13 21:42:21 augustss Exp $ */ 2 3 /* 4 * System call names. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from NetBSD: syscalls.master,v 1.50 2000/12/13 21:41:46 augustss Exp 8 */ 9 10 #if defined(_KERNEL) && !defined(_LKM) 11 #if defined(_KERNEL) && !defined(_LKM) 12 #include "opt_compat_43.h" 13 #endif 14 #include <sys/param.h> 15 #include <sys/poll.h> 16 #include <sys/systm.h> 17 #include <sys/signal.h> 18 #include <sys/mount.h> 19 #include <sys/syscallargs.h> 20 #include <compat/linux/common/linux_types.h> 21 #include <compat/linux/common/linux_signal.h> 22 #include <compat/linux/common/linux_siginfo.h> 23 #include <compat/linux/common/linux_machdep.h> 24 #include <compat/linux/linux_syscallargs.h> 25 #endif /* _KERNEL && ! _LKM */ 26 27 const char *const linux_syscallnames[] = { 28 "syscall", /* 0 = syscall */ 29 "exit", /* 1 = exit */ 30 "fork", /* 2 = fork */ 31 "read", /* 3 = read */ 32 "write", /* 4 = write */ 33 "open", /* 5 = open */ 34 "close", /* 6 = close */ 35 "waitpid", /* 7 = waitpid */ 36 "creat", /* 8 = creat */ 37 "link", /* 9 = link */ 38 "unlink", /* 10 = unlink */ 39 "execve", /* 11 = execve */ 40 "chdir", /* 12 = chdir */ 41 "time", /* 13 = time */ 42 "mknod", /* 14 = mknod */ 43 "chmod", /* 15 = chmod */ 44 "lchown", /* 16 = lchown */ 45 "break", /* 17 = break */ 46 "#18 (obsolete ostat)", /* 18 = obsolete ostat */ 47 "lseek", /* 19 = lseek */ 48 "getpid", /* 20 = getpid */ 49 "#21 (unimplemented mount)", /* 21 = unimplemented mount */ 50 "#22 (unimplemented umount)", /* 22 = unimplemented umount */ 51 "setuid", /* 23 = setuid */ 52 "getuid", /* 24 = getuid */ 53 "stime", /* 25 = stime */ 54 "ptrace", /* 26 = ptrace */ 55 "alarm", /* 27 = alarm */ 56 "#28 (obsolete ofstat)", /* 28 = obsolete ofstat */ 57 "pause", /* 29 = pause */ 58 "utime", /* 30 = utime */ 59 "#31 (obsolete stty)", /* 31 = obsolete stty */ 60 "#32 (obsolete gtty)", /* 32 = obsolete gtty */ 61 "access", /* 33 = access */ 62 "nice", /* 34 = nice */ 63 "#35 (obsolete ftime)", /* 35 = obsolete ftime */ 64 "sync", /* 36 = sync */ 65 "kill", /* 37 = kill */ 66 "rename", /* 38 = rename */ 67 "mkdir", /* 39 = mkdir */ 68 "rmdir", /* 40 = rmdir */ 69 "dup", /* 41 = dup */ 70 "pipe", /* 42 = pipe */ 71 "times", /* 43 = times */ 72 "#44 (obsolete prof)", /* 44 = obsolete prof */ 73 "brk", /* 45 = brk */ 74 "setgid", /* 46 = setgid */ 75 "getgid", /* 47 = getgid */ 76 "signal", /* 48 = signal */ 77 "geteuid", /* 49 = geteuid */ 78 "getegid", /* 50 = getegid */ 79 "acct", /* 51 = acct */ 80 "#52 (obsolete phys)", /* 52 = obsolete phys */ 81 "#53 (obsolete lock)", /* 53 = obsolete lock */ 82 "ioctl", /* 54 = ioctl */ 83 "fcntl", /* 55 = fcntl */ 84 "#56 (obsolete mpx)", /* 56 = obsolete mpx */ 85 "setpgid", /* 57 = setpgid */ 86 "#58 (obsolete ulimit)", /* 58 = obsolete ulimit */ 87 "oldolduname", /* 59 = oldolduname */ 88 "umask", /* 60 = umask */ 89 "chroot", /* 61 = chroot */ 90 "#62 (unimplemented ustat)", /* 62 = unimplemented ustat */ 91 "dup2", /* 63 = dup2 */ 92 "getppid", /* 64 = getppid */ 93 "getpgrp", /* 65 = getpgrp */ 94 "setsid", /* 66 = setsid */ 95 "sigaction", /* 67 = sigaction */ 96 "siggetmask", /* 68 = siggetmask */ 97 "sigsetmask", /* 69 = sigsetmask */ 98 "setreuid", /* 70 = setreuid */ 99 "setregid", /* 71 = setregid */ 100 "sigsuspend", /* 72 = sigsuspend */ 101 "sigpending", /* 73 = sigpending */ 102 "sethostname", /* 74 = sethostname */ 103 "setrlimit", /* 75 = setrlimit */ 104 "getrlimit", /* 76 = getrlimit */ 105 "getrusage", /* 77 = getrusage */ 106 "gettimeofday", /* 78 = gettimeofday */ 107 "settimeofday", /* 79 = settimeofday */ 108 "getgroups", /* 80 = getgroups */ 109 "setgroups", /* 81 = setgroups */ 110 "oldselect", /* 82 = oldselect */ 111 "symlink", /* 83 = symlink */ 112 "oolstat", /* 84 = oolstat */ 113 "readlink", /* 85 = readlink */ 114 "uselib", /* 86 = uselib */ 115 "swapon", /* 87 = swapon */ 116 "reboot", /* 88 = reboot */ 117 "readdir", /* 89 = readdir */ 118 "old_mmap", /* 90 = old_mmap */ 119 "munmap", /* 91 = munmap */ 120 "truncate", /* 92 = truncate */ 121 "ftruncate", /* 93 = ftruncate */ 122 "fchmod", /* 94 = fchmod */ 123 "fchown", /* 95 = fchown */ 124 "getpriority", /* 96 = getpriority */ 125 "setpriority", /* 97 = setpriority */ 126 "profil", /* 98 = profil */ 127 "statfs", /* 99 = statfs */ 128 "fstatfs", /* 100 = fstatfs */ 129 "ioperm", /* 101 = ioperm */ 130 "socketcall", /* 102 = socketcall */ 131 "#103 (unimplemented syslog)", /* 103 = unimplemented syslog */ 132 "setitimer", /* 104 = setitimer */ 133 "getitimer", /* 105 = getitimer */ 134 "stat", /* 106 = stat */ 135 "lstat", /* 107 = lstat */ 136 "fstat", /* 108 = fstat */ 137 "olduname", /* 109 = olduname */ 138 "iopl", /* 110 = iopl */ 139 "#111 (unimplemented vhangup)", /* 111 = unimplemented vhangup */ 140 "#112 (unimplemented idle)", /* 112 = unimplemented idle */ 141 "#113 (unimplemented vm86old)", /* 113 = unimplemented vm86old */ 142 "wait4", /* 114 = wait4 */ 143 "swapoff", /* 115 = swapoff */ 144 "sysinfo", /* 116 = sysinfo */ 145 "ipc", /* 117 = ipc */ 146 "fsync", /* 118 = fsync */ 147 "sigreturn", /* 119 = sigreturn */ 148 "clone", /* 120 = clone */ 149 "setdomainname", /* 121 = setdomainname */ 150 "uname", /* 122 = uname */ 151 "modify_ldt", /* 123 = modify_ldt */ 152 "#124 (unimplemented adjtimex)", /* 124 = unimplemented adjtimex */ 153 "mprotect", /* 125 = mprotect */ 154 "sigprocmask", /* 126 = sigprocmask */ 155 "#127 (unimplemented create_module)", /* 127 = unimplemented create_module */ 156 "#128 (unimplemented init_module)", /* 128 = unimplemented init_module */ 157 "#129 (unimplemented delete_module)", /* 129 = unimplemented delete_module */ 158 "#130 (unimplemented get_kernel_syms)", /* 130 = unimplemented get_kernel_syms */ 159 "#131 (unimplemented quotactl)", /* 131 = unimplemented quotactl */ 160 "getpgid", /* 132 = getpgid */ 161 "fchdir", /* 133 = fchdir */ 162 "#134 (unimplemented bdflush)", /* 134 = unimplemented bdflush */ 163 "#135 (unimplemented sysfs)", /* 135 = unimplemented sysfs */ 164 "personality", /* 136 = personality */ 165 "#137 (unimplemented afs_syscall)", /* 137 = unimplemented afs_syscall */ 166 "setfsuid", /* 138 = setfsuid */ 167 "getfsuid", /* 139 = getfsuid */ 168 "llseek", /* 140 = llseek */ 169 "getdents", /* 141 = getdents */ 170 "select", /* 142 = select */ 171 "flock", /* 143 = flock */ 172 "msync", /* 144 = msync */ 173 "readv", /* 145 = readv */ 174 "writev", /* 146 = writev */ 175 "getsid", /* 147 = getsid */ 176 "fdatasync", /* 148 = fdatasync */ 177 "__sysctl", /* 149 = __sysctl */ 178 "mlock", /* 150 = mlock */ 179 "munlock", /* 151 = munlock */ 180 "mlockall", /* 152 = mlockall */ 181 "munlockall", /* 153 = munlockall */ 182 "sched_setparam", /* 154 = sched_setparam */ 183 "sched_getparam", /* 155 = sched_getparam */ 184 "sched_setscheduler", /* 156 = sched_setscheduler */ 185 "sched_getscheduler", /* 157 = sched_getscheduler */ 186 "sched_yield", /* 158 = sched_yield */ 187 "sched_get_priority_max", /* 159 = sched_get_priority_max */ 188 "sched_get_priority_min", /* 160 = sched_get_priority_min */ 189 "#161 (unimplemented sys_sched_rr_get_interval)", /* 161 = unimplemented sys_sched_rr_get_interval */ 190 "nanosleep", /* 162 = nanosleep */ 191 "mremap", /* 163 = mremap */ 192 "setresuid", /* 164 = setresuid */ 193 "getresuid", /* 165 = getresuid */ 194 "#166 (unimplemented vm86)", /* 166 = unimplemented vm86 */ 195 "#167 (unimplemented query_module)", /* 167 = unimplemented query_module */ 196 "poll", /* 168 = poll */ 197 "#169 (unimplemented nfsservctl)", /* 169 = unimplemented nfsservctl */ 198 "setresgid", /* 170 = setresgid */ 199 "getresgid", /* 171 = getresgid */ 200 "#172 (unimplemented prctl)", /* 172 = unimplemented prctl */ 201 "rt_sigreturn", /* 173 = rt_sigreturn */ 202 "rt_sigaction", /* 174 = rt_sigaction */ 203 "rt_sigprocmask", /* 175 = rt_sigprocmask */ 204 "rt_sigpending", /* 176 = rt_sigpending */ 205 "#177 (unimplemented rt_sigtimedwait)", /* 177 = unimplemented rt_sigtimedwait */ 206 "rt_queueinfo", /* 178 = rt_queueinfo */ 207 "rt_sigsuspend", /* 179 = rt_sigsuspend */ 208 "pread", /* 180 = pread */ 209 "pwrite", /* 181 = pwrite */ 210 "chown", /* 182 = chown */ 211 "__getcwd", /* 183 = __getcwd */ 212 "#184 (unimplemented capget)", /* 184 = unimplemented capget */ 213 "#185 (unimplemented capset)", /* 185 = unimplemented capset */ 214 "sigaltstack", /* 186 = sigaltstack */ 215 "#187 (unimplemented sendfile)", /* 187 = unimplemented sendfile */ 216 "#188 (unimplemented getpmsg)", /* 188 = unimplemented getpmsg */ 217 "#189 (unimplemented putpmsg)", /* 189 = unimplemented putpmsg */ 218 "__vfork14", /* 190 = __vfork14 */ 219 "#191 (unimplemented getrlimit)", /* 191 = unimplemented getrlimit */ 220 "#192 (unimplemented mmap2)", /* 192 = unimplemented mmap2 */ 221 "truncate64", /* 193 = truncate64 */ 222 "ftruncate64", /* 194 = ftruncate64 */ 223 "stat64", /* 195 = stat64 */ 224 "lstat64", /* 196 = lstat64 */ 225 "fstat64", /* 197 = fstat64 */ 226 "#198 (unimplemented lchown)", /* 198 = unimplemented lchown */ 227 "#199 (unimplemented getuid)", /* 199 = unimplemented getuid */ 228 "#200 (unimplemented getgid)", /* 200 = unimplemented getgid */ 229 "#201 (unimplemented geteuid)", /* 201 = unimplemented geteuid */ 230 "#202 (unimplemented getegid)", /* 202 = unimplemented getegid */ 231 "#203 (unimplemented getreuid)", /* 203 = unimplemented getreuid */ 232 "#204 (unimplemented getregid)", /* 204 = unimplemented getregid */ 233 "#205 (unimplemented getgroups)", /* 205 = unimplemented getgroups */ 234 "#206 (unimplemented setgroups)", /* 206 = unimplemented setgroups */ 235 "#207 (unimplemented fchown)", /* 207 = unimplemented fchown */ 236 "#208 (unimplemented setresuid)", /* 208 = unimplemented setresuid */ 237 "#209 (unimplemented getresuid)", /* 209 = unimplemented getresuid */ 238 "#210 (unimplemented setresgid)", /* 210 = unimplemented setresgid */ 239 "#211 (unimplemented getresgid)", /* 211 = unimplemented getresgid */ 240 "#212 (unimplemented chown)", /* 212 = unimplemented chown */ 241 "#213 (unimplemented setuid)", /* 213 = unimplemented setuid */ 242 "#214 (unimplemented setgid)", /* 214 = unimplemented setgid */ 243 "#215 (unimplemented setfsuid)", /* 215 = unimplemented setfsuid */ 244 "#216 (unimplemented setfsgid)", /* 216 = unimplemented setfsgid */ 245 "#217 (unimplemented pivot_root)", /* 217 = unimplemented pivot_root */ 246 }; 247