1 /* $NetBSD: linux_syscalls.c,v 1.81 2008/11/19 18:39:44 ad 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.96 2008/11/19 18:36:03 ad Exp 8 */ 9 10 #include <sys/cdefs.h> 11 __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.81 2008/11/19 18:39:44 ad Exp $"); 12 13 #if defined(_KERNEL_OPT) 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_mmap.h> 22 #include <compat/linux/common/linux_signal.h> 23 #include <compat/linux/common/linux_siginfo.h> 24 #include <compat/linux/common/linux_machdep.h> 25 #include <compat/linux/linux_syscallargs.h> 26 #endif /* _KERNEL_OPT */ 27 28 const char *const linux_syscallnames[] = { 29 /* 0 */ "syscall", 30 /* 1 */ "exit", 31 /* 2 */ "fork", 32 /* 3 */ "read", 33 /* 4 */ "write", 34 /* 5 */ "open", 35 /* 6 */ "close", 36 /* 7 */ "waitpid", 37 /* 8 */ "creat", 38 /* 9 */ "link", 39 /* 10 */ "unlink", 40 /* 11 */ "execve", 41 /* 12 */ "chdir", 42 /* 13 */ "time", 43 /* 14 */ "mknod", 44 /* 15 */ "chmod", 45 /* 16 */ "lchown16", 46 /* 17 */ "break", 47 /* 18 */ "#18 (obsolete ostat)", 48 /* 19 */ "lseek", 49 #ifdef LINUX_NPTL 50 /* 20 */ "getpid", 51 #else 52 /* 20 */ "getpid", 53 #endif 54 /* 21 */ "#21 (unimplemented mount)", 55 /* 22 */ "#22 (unimplemented umount)", 56 /* 23 */ "linux_setuid16", 57 /* 24 */ "linux_getuid16", 58 /* 25 */ "stime", 59 /* 26 */ "ptrace", 60 /* 27 */ "alarm", 61 /* 28 */ "#28 (obsolete ofstat)", 62 /* 29 */ "pause", 63 /* 30 */ "utime", 64 /* 31 */ "#31 (obsolete stty)", 65 /* 32 */ "#32 (obsolete gtty)", 66 /* 33 */ "access", 67 /* 34 */ "nice", 68 /* 35 */ "#35 (obsolete ftime)", 69 /* 36 */ "sync", 70 /* 37 */ "kill", 71 /* 38 */ "__posix_rename", 72 /* 39 */ "mkdir", 73 /* 40 */ "rmdir", 74 /* 41 */ "dup", 75 /* 42 */ "pipe", 76 /* 43 */ "times", 77 /* 44 */ "#44 (obsolete prof)", 78 /* 45 */ "brk", 79 /* 46 */ "linux_setgid16", 80 /* 47 */ "linux_getgid16", 81 /* 48 */ "signal", 82 /* 49 */ "linux_geteuid16", 83 /* 50 */ "linux_getegid16", 84 /* 51 */ "acct", 85 /* 52 */ "#52 (obsolete phys)", 86 /* 53 */ "#53 (obsolete lock)", 87 /* 54 */ "ioctl", 88 /* 55 */ "fcntl", 89 /* 56 */ "#56 (obsolete mpx)", 90 /* 57 */ "setpgid", 91 /* 58 */ "#58 (obsolete ulimit)", 92 /* 59 */ "oldolduname", 93 /* 60 */ "umask", 94 /* 61 */ "chroot", 95 /* 62 */ "#62 (unimplemented ustat)", 96 /* 63 */ "dup2", 97 #ifdef LINUX_NPTL 98 /* 64 */ "getppid", 99 #else 100 /* 64 */ "getppid", 101 #endif 102 /* 65 */ "getpgrp", 103 /* 66 */ "setsid", 104 /* 67 */ "sigaction", 105 /* 68 */ "siggetmask", 106 /* 69 */ "sigsetmask", 107 /* 70 */ "setreuid16", 108 /* 71 */ "setregid16", 109 /* 72 */ "sigsuspend", 110 /* 73 */ "sigpending", 111 /* 74 */ "sethostname", 112 /* 75 */ "setrlimit", 113 /* 76 */ "getrlimit", 114 /* 77 */ "getrusage", 115 /* 78 */ "gettimeofday", 116 /* 79 */ "settimeofday", 117 /* 80 */ "getgroups16", 118 /* 81 */ "setgroups16", 119 /* 82 */ "oldselect", 120 /* 83 */ "symlink", 121 /* 84 */ "oolstat", 122 /* 85 */ "readlink", 123 #ifdef EXEC_AOUT 124 /* 86 */ "uselib", 125 #else 126 /* 86 */ "#86 (unimplemented sys_uselib)", 127 #endif 128 /* 87 */ "swapon", 129 /* 88 */ "reboot", 130 /* 89 */ "readdir", 131 /* 90 */ "old_mmap", 132 /* 91 */ "munmap", 133 /* 92 */ "truncate", 134 /* 93 */ "ftruncate", 135 /* 94 */ "fchmod", 136 /* 95 */ "fchown16", 137 /* 96 */ "getpriority", 138 /* 97 */ "setpriority", 139 /* 98 */ "profil", 140 /* 99 */ "statfs", 141 /* 100 */ "fstatfs", 142 /* 101 */ "ioperm", 143 /* 102 */ "socketcall", 144 /* 103 */ "#103 (unimplemented syslog)", 145 /* 104 */ "setitimer", 146 /* 105 */ "getitimer", 147 /* 106 */ "stat", 148 /* 107 */ "lstat", 149 /* 108 */ "fstat", 150 /* 109 */ "olduname", 151 /* 110 */ "iopl", 152 /* 111 */ "#111 (unimplemented vhangup)", 153 /* 112 */ "#112 (unimplemented idle)", 154 /* 113 */ "#113 (unimplemented vm86old)", 155 /* 114 */ "wait4", 156 /* 115 */ "swapoff", 157 /* 116 */ "sysinfo", 158 /* 117 */ "ipc", 159 /* 118 */ "fsync", 160 /* 119 */ "sigreturn", 161 /* 120 */ "clone", 162 /* 121 */ "setdomainname", 163 /* 122 */ "uname", 164 /* 123 */ "modify_ldt", 165 /* 124 */ "#124 (unimplemented adjtimex)", 166 /* 125 */ "mprotect", 167 /* 126 */ "sigprocmask", 168 /* 127 */ "#127 (unimplemented create_module)", 169 /* 128 */ "#128 (unimplemented init_module)", 170 /* 129 */ "#129 (unimplemented delete_module)", 171 /* 130 */ "#130 (unimplemented get_kernel_syms)", 172 /* 131 */ "#131 (unimplemented quotactl)", 173 /* 132 */ "getpgid", 174 /* 133 */ "fchdir", 175 /* 134 */ "#134 (unimplemented bdflush)", 176 /* 135 */ "#135 (unimplemented sysfs)", 177 /* 136 */ "personality", 178 /* 137 */ "#137 (unimplemented afs_syscall)", 179 /* 138 */ "linux_setfsuid16", 180 /* 139 */ "linux_setfsgid16", 181 /* 140 */ "llseek", 182 /* 141 */ "getdents", 183 /* 142 */ "select", 184 /* 143 */ "flock", 185 /* 144 */ "__msync13", 186 /* 145 */ "readv", 187 /* 146 */ "writev", 188 /* 147 */ "getsid", 189 /* 148 */ "fdatasync", 190 /* 149 */ "__sysctl", 191 /* 150 */ "mlock", 192 /* 151 */ "munlock", 193 /* 152 */ "mlockall", 194 /* 153 */ "munlockall", 195 /* 154 */ "sched_setparam", 196 /* 155 */ "sched_getparam", 197 /* 156 */ "sched_setscheduler", 198 /* 157 */ "sched_getscheduler", 199 /* 158 */ "sched_yield", 200 /* 159 */ "sched_get_priority_max", 201 /* 160 */ "sched_get_priority_min", 202 /* 161 */ "#161 (unimplemented sys_sched_rr_get_interval)", 203 /* 162 */ "nanosleep", 204 /* 163 */ "mremap", 205 /* 164 */ "setresuid16", 206 /* 165 */ "getresuid16", 207 /* 166 */ "#166 (unimplemented vm86)", 208 /* 167 */ "#167 (unimplemented query_module)", 209 /* 168 */ "poll", 210 /* 169 */ "#169 (unimplemented nfsservctl)", 211 /* 170 */ "setresgid16", 212 /* 171 */ "getresgid16", 213 /* 172 */ "#172 (unimplemented prctl)", 214 /* 173 */ "rt_sigreturn", 215 /* 174 */ "rt_sigaction", 216 /* 175 */ "rt_sigprocmask", 217 /* 176 */ "rt_sigpending", 218 /* 177 */ "#177 (unimplemented rt_sigtimedwait)", 219 /* 178 */ "rt_queueinfo", 220 /* 179 */ "rt_sigsuspend", 221 /* 180 */ "pread", 222 /* 181 */ "pwrite", 223 /* 182 */ "chown16", 224 /* 183 */ "__getcwd", 225 /* 184 */ "#184 (unimplemented capget)", 226 /* 185 */ "#185 (unimplemented capset)", 227 /* 186 */ "sigaltstack", 228 /* 187 */ "#187 (unimplemented sendfile)", 229 /* 188 */ "#188 (unimplemented getpmsg)", 230 /* 189 */ "#189 (unimplemented putpmsg)", 231 /* 190 */ "__vfork14", 232 /* 191 */ "ugetrlimit", 233 #define linux_sys_mmap2_args linux_sys_mmap_args 234 /* 192 */ "mmap2", 235 /* 193 */ "truncate64", 236 /* 194 */ "ftruncate64", 237 /* 195 */ "stat64", 238 /* 196 */ "lstat64", 239 /* 197 */ "fstat64", 240 /* 198 */ "__posix_lchown", 241 /* 199 */ "getuid", 242 /* 200 */ "getgid", 243 /* 201 */ "geteuid", 244 /* 202 */ "getegid", 245 /* 203 */ "setreuid", 246 /* 204 */ "setregid", 247 /* 205 */ "getgroups", 248 /* 206 */ "setgroups", 249 /* 207 */ "__posix_fchown", 250 /* 208 */ "setresuid", 251 /* 209 */ "getresuid", 252 /* 210 */ "setresgid", 253 /* 211 */ "getresgid", 254 /* 212 */ "__posix_chown", 255 /* 213 */ "setuid", 256 /* 214 */ "setgid", 257 /* 215 */ "setfsuid", 258 /* 216 */ "setfsgid", 259 /* 217 */ "#217 (unimplemented pivot_root)", 260 /* 218 */ "mincore", 261 /* 219 */ "madvise", 262 /* 220 */ "getdents64", 263 /* 221 */ "fcntl64", 264 /* 222 */ "#222 (unimplemented / * unused * /)", 265 /* 223 */ "#223 (unimplemented / * unused * /)", 266 #ifdef LINUX_NPTL 267 /* 224 */ "gettid", 268 #else 269 /* 224 */ "#224 (unimplemented gettid)", 270 #endif 271 /* 225 */ "#225 (unimplemented readahead)", 272 /* 226 */ "setxattr", 273 /* 227 */ "lsetxattr", 274 /* 228 */ "fsetxattr", 275 /* 229 */ "getxattr", 276 /* 230 */ "lgetxattr", 277 /* 231 */ "fgetxattr", 278 /* 232 */ "listxattr", 279 /* 233 */ "llistxattr", 280 /* 234 */ "flistxattr", 281 /* 235 */ "removexattr", 282 /* 236 */ "lremovexattr", 283 /* 237 */ "fremovexattr", 284 #ifdef LINUX_NPTL 285 /* 238 */ "tkill", 286 #else 287 /* 238 */ "#238 (unimplemented tkill)", 288 #endif 289 /* 239 */ "#239 (unimplemented sendfile64)", 290 /* 240 */ "futex", 291 #ifdef LINUX_NPTL 292 /* 241 */ "sched_setaffinity", 293 /* 242 */ "sched_getaffinity", 294 #else 295 /* 241 */ "#241 (unimplemented setaffinity)", 296 /* 242 */ "#242 (unimplemented getaffinity)", 297 #endif 298 #ifdef LINUX_NPTL 299 /* 243 */ "set_thread_area", 300 /* 244 */ "get_thread_area", 301 #else 302 /* 243 */ "#243 (unimplemented set_thread_area)", 303 /* 244 */ "#244 (unimplemented get_thread_area)", 304 #endif 305 /* 245 */ "#245 (unimplemented io_setup)", 306 /* 246 */ "#246 (unimplemented io_destroy)", 307 /* 247 */ "#247 (unimplemented io_getevents)", 308 /* 248 */ "#248 (unimplemented io_submit)", 309 /* 249 */ "#249 (unimplemented io_cancel)", 310 /* 250 */ "#250 (unimplemented fadvise64)", 311 /* 251 */ "#251 (unimplemented / * unused * /)", 312 /* 252 */ "exit_group", 313 /* 253 */ "#253 (unimplemented lookup_dcookie)", 314 /* 254 */ "#254 (unimplemented epoll_create)", 315 /* 255 */ "#255 (unimplemented epoll_ctl)", 316 /* 256 */ "#256 (unimplemented epoll_wait)", 317 /* 257 */ "#257 (unimplemented remap_file_pages)", 318 #ifdef LINUX_NPTL 319 /* 258 */ "set_tid_address", 320 #else 321 /* 258 */ "#258 (unimplemented set_tid_address)", 322 #endif 323 /* 259 */ "#259 (unimplemented timer_create)", 324 /* 260 */ "#260 (unimplemented timer_settime)", 325 /* 261 */ "#261 (unimplemented timer_gettime)", 326 /* 262 */ "#262 (unimplemented timer_getoverrun)", 327 /* 263 */ "#263 (unimplemented timer_delete)", 328 /* 264 */ "clock_settime", 329 /* 265 */ "clock_gettime", 330 /* 266 */ "clock_getres", 331 /* 267 */ "clock_nanosleep", 332 /* 268 */ "statfs64", 333 /* 269 */ "fstatfs64", 334 #ifdef LINUX_NPTL 335 /* 270 */ "tgkill", 336 #else 337 /* 270 */ "#270 (unimplemented tgkill)", 338 #endif 339 /* 271 */ "#271 (unimplemented utimes)", 340 /* 272 */ "#272 (unimplemented fadvise64_64)", 341 /* 273 */ "#273 (unimplemented vserver)", 342 /* 274 */ "#274 (unimplemented mbind)", 343 /* 275 */ "#275 (unimplemented get_mempolicy)", 344 /* 276 */ "#276 (unimplemented set_mempolicy)", 345 /* 277 */ "#277 (unimplemented mq_open)", 346 /* 278 */ "#278 (unimplemented mq_unlink)", 347 /* 279 */ "#279 (unimplemented mq_timedsend)", 348 /* 280 */ "#280 (unimplemented mq_timedreceive)", 349 /* 281 */ "#281 (unimplemented mq_notify)", 350 /* 282 */ "#282 (unimplemented mq_getsetattr)", 351 /* 283 */ "#283 (unimplemented sys_kexec_load)", 352 /* 284 */ "#284 (unimplemented waitid)", 353 /* 285 */ "#285 (obsolete / * XXXJDM really? * /)", 354 /* 286 */ "#286 (unimplemented add_key)", 355 /* 287 */ "#287 (unimplemented request_key)", 356 /* 288 */ "#288 (unimplemented keyctl)", 357 /* 289 */ "#289 (unimplemented ioprio_set)", 358 /* 290 */ "#290 (unimplemented ioprio_get)", 359 /* 291 */ "#291 (unimplemented inotify_init)", 360 /* 292 */ "#292 (unimplemented inotify_add_watch)", 361 /* 293 */ "#293 (unimplemented inotify_rm_watch)", 362 /* 294 */ "#294 (unimplemented migrate_pages)", 363 /* 295 */ "#295 (unimplemented openat)", 364 /* 296 */ "#296 (unimplemented mkdirat)", 365 /* 297 */ "#297 (unimplemented mknodat)", 366 /* 298 */ "#298 (unimplemented fchownat)", 367 /* 299 */ "#299 (unimplemented futimesat)", 368 /* 300 */ "#300 (unimplemented fstatat64)", 369 /* 301 */ "#301 (unimplemented unlinkat)", 370 /* 302 */ "#302 (unimplemented renameat)", 371 /* 303 */ "#303 (unimplemented linkat)", 372 /* 304 */ "#304 (unimplemented symlinkat)", 373 /* 305 */ "#305 (unimplemented readlinkat)", 374 /* 306 */ "#306 (unimplemented fchmodat)", 375 /* 307 */ "#307 (unimplemented faccessat)", 376 /* 308 */ "#308 (unimplemented pselect6)", 377 /* 309 */ "#309 (unimplemented ppoll)", 378 /* 310 */ "#310 (unimplemented unshare)", 379 /* 311 */ "set_robust_list", 380 /* 312 */ "get_robust_list", 381 /* 313 */ "#313 (unimplemented splice)", 382 /* 314 */ "#314 (unimplemented sync_file_range)", 383 /* 315 */ "#315 (unimplemented tee)", 384 /* 316 */ "#316 (unimplemented vmsplice)", 385 }; 386