linux_syscalls.c revision 1.24
1/* $NetBSD: linux_syscalls.c,v 1.24 2008/10/26 20:26:53 christos 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.24 2008/10/26 20:25:49 christos Exp 8 */ 9 10#include <sys/cdefs.h> 11__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.24 2008/10/26 20:26:53 christos Exp $"); 12 13#if defined(_KERNEL_OPT) 14#if defined(_KERNEL_OPT) 15#include "opt_sysv.h" 16#include "opt_compat_43.h" 17#endif 18#include <sys/param.h> 19#include <sys/poll.h> 20#include <sys/systm.h> 21#include <sys/signal.h> 22#include <sys/mount.h> 23#include <sys/syscallargs.h> 24#include <compat/linux/common/linux_types.h> 25#include <compat/linux/common/linux_mmap.h> 26#include <compat/linux/common/linux_ipc.h> 27#include <compat/linux/common/linux_msg.h> 28#include <compat/linux/common/linux_sem.h> 29#include <compat/linux/common/linux_shm.h> 30#include <compat/linux/common/linux_signal.h> 31#include <compat/linux/common/linux_siginfo.h> 32#include <compat/linux/common/linux_machdep.h> 33#include <compat/linux/linux_syscallargs.h> 34#endif /* _KERNEL_OPT */ 35 36const char *const linux_syscallnames[] = { 37 /* 0 */ "read", 38 /* 1 */ "write", 39 /* 2 */ "open", 40 /* 3 */ "close", 41 /* 4 */ "stat64", 42 /* 5 */ "fstat64", 43 /* 6 */ "lstat64", 44 /* 7 */ "poll", 45 /* 8 */ "lseek", 46 /* 9 */ "mmap", 47 /* 10 */ "mprotect", 48 /* 11 */ "munmap", 49 /* 12 */ "brk", 50 /* 13 */ "rt_sigaction", 51 /* 14 */ "rt_sigprocmask", 52 /* 15 */ "rt_sigreturn", 53 /* 16 */ "ioctl", 54 /* 17 */ "pread", 55 /* 18 */ "pwrite", 56 /* 19 */ "readv", 57 /* 20 */ "writev", 58 /* 21 */ "access", 59 /* 22 */ "pipe", 60 /* 23 */ "select", 61 /* 24 */ "sched_yield", 62 /* 25 */ "mremap", 63 /* 26 */ "__msync13", 64 /* 27 */ "mincore", 65 /* 28 */ "madvise", 66#ifdef SYSVSHM 67 /* 29 */ "shmget", 68 /* 30 */ "shmat", 69 /* 31 */ "shmctl", 70#else 71 /* 29 */ "#29 (unimplemented shmget)", 72 /* 30 */ "#30 (unimplemented shmat)", 73 /* 31 */ "#31 (unimplemented shmctl)", 74#endif 75 /* 32 */ "dup", 76 /* 33 */ "dup2", 77 /* 34 */ "pause", 78 /* 35 */ "nanosleep", 79 /* 36 */ "getitimer", 80 /* 37 */ "alarm", 81 /* 38 */ "setitimer", 82 /* 39 */ "getpid", 83 /* 40 */ "#40 (unimplemented sendfile)", 84 /* 41 */ "socket", 85 /* 42 */ "connect", 86 /* 43 */ "oaccept", 87 /* 44 */ "sendto", 88 /* 45 */ "recvfrom", 89 /* 46 */ "sendmsg", 90 /* 47 */ "recvmsg", 91 /* 48 */ "shutdown", 92 /* 49 */ "bind", 93 /* 50 */ "listen", 94 /* 51 */ "getsockname", 95 /* 52 */ "getpeername", 96 /* 53 */ "socketpair", 97 /* 54 */ "setsockopt", 98 /* 55 */ "getsockopt", 99 /* 56 */ "clone", 100 /* 57 */ "fork", 101 /* 58 */ "__vfork14", 102 /* 59 */ "execve", 103 /* 60 */ "exit", 104 /* 61 */ "wait4", 105 /* 62 */ "kill", 106 /* 63 */ "uname", 107#ifdef SYSVSEM 108 /* 64 */ "semget", 109 /* 65 */ "semop", 110 /* 66 */ "semctl", 111#else 112 /* 64 */ "#64 (unimplemented semget)", 113 /* 65 */ "#65 (unimplemented semop)", 114 /* 66 */ "#66 (unimplemented semctl)", 115#endif 116#ifdef SYSVSHM 117 /* 67 */ "shmdt", 118#else 119 /* 67 */ "#67 (unimplemented shmdt)", 120#endif 121#ifdef SYSVMSG 122 /* 68 */ "msgget", 123 /* 69 */ "msgsnd", 124 /* 70 */ "msgrcv", 125 /* 71 */ "msgctl", 126#else 127 /* 68 */ "#68 (unimplemented msgget)", 128 /* 69 */ "#69 (unimplemented msgsnd)", 129 /* 70 */ "#70 (unimplemented msgrcv)", 130 /* 71 */ "#71 (unimplemented msgctl)", 131#endif 132 /* 72 */ "fcntl", 133 /* 73 */ "flock", 134 /* 74 */ "fsync", 135 /* 75 */ "fdatasync", 136 /* 76 */ "truncate64", 137 /* 77 */ "ftruncate64", 138 /* 78 */ "getdents", 139 /* 79 */ "__getcwd", 140 /* 80 */ "chdir", 141 /* 81 */ "fchdir", 142 /* 82 */ "__posix_rename", 143 /* 83 */ "mkdir", 144 /* 84 */ "rmdir", 145 /* 85 */ "creat", 146 /* 86 */ "link", 147 /* 87 */ "unlink", 148 /* 88 */ "symlink", 149 /* 89 */ "readlink", 150 /* 90 */ "chmod", 151 /* 91 */ "fchmod", 152 /* 92 */ "__posix_chown", 153 /* 93 */ "__posix_fchown", 154 /* 94 */ "__posix_lchown", 155 /* 95 */ "umask", 156 /* 96 */ "gettimeofday", 157 /* 97 */ "getrlimit", 158 /* 98 */ "getrusage", 159 /* 99 */ "sysinfo", 160 /* 100 */ "times", 161 /* 101 */ "ptrace", 162 /* 102 */ "getuid", 163 /* 103 */ "#103 (unimplemented syslog)", 164 /* 104 */ "getgid", 165 /* 105 */ "setuid", 166 /* 106 */ "setgid", 167 /* 107 */ "geteuid", 168 /* 108 */ "getegid", 169 /* 109 */ "setpgid", 170 /* 110 */ "getppid", 171 /* 111 */ "getpgrp", 172 /* 112 */ "setsid", 173 /* 113 */ "setreuid", 174 /* 114 */ "setregid", 175 /* 115 */ "getgroups", 176 /* 116 */ "setgroups", 177 /* 117 */ "setresuid", 178 /* 118 */ "getresuid", 179 /* 119 */ "setresgid", 180 /* 120 */ "getresgid", 181 /* 121 */ "getpgid", 182 /* 122 */ "setfsuid", 183 /* 123 */ "setfsgid", 184 /* 124 */ "getsid", 185 /* 125 */ "#125 (unimplemented capget)", 186 /* 126 */ "#126 (unimplemented capset)", 187 /* 127 */ "rt_sigpending", 188 /* 128 */ "#128 (unimplemented rt_sigtimedwait)", 189 /* 129 */ "rt_queueinfo", 190 /* 130 */ "rt_sigsuspend", 191 /* 131 */ "sigaltstack", 192 /* 132 */ "utime", 193 /* 133 */ "mknod", 194#ifdef EXEC_AOUT 195 /* 134 */ "uselib", 196#else 197 /* 134 */ "#134 (unimplemented sys_uselib)", 198#endif 199 /* 135 */ "personality", 200 /* 136 */ "#136 (unimplemented ustat)", 201 /* 137 */ "statfs", 202 /* 138 */ "fstatfs", 203 /* 139 */ "#139 (unimplemented sysfs)", 204 /* 140 */ "getpriority", 205 /* 141 */ "setpriority", 206 /* 142 */ "sched_setparam", 207 /* 143 */ "sched_getparam", 208 /* 144 */ "sched_setscheduler", 209 /* 145 */ "sched_getscheduler", 210 /* 146 */ "sched_get_priority_max", 211 /* 147 */ "sched_get_priority_min", 212 /* 148 */ "#148 (unimplemented sys_sched_rr_get_interval)", 213 /* 149 */ "mlock", 214 /* 150 */ "munlock", 215 /* 151 */ "mlockall", 216 /* 152 */ "munlockall", 217 /* 153 */ "#153 (unimplemented vhangup)", 218 /* 154 */ "modify_ldt", 219 /* 155 */ "#155 (unimplemented pivot_root)", 220 /* 156 */ "__sysctl", 221 /* 157 */ "#157 (unimplemented prctl)", 222 /* 158 */ "arch_prctl", 223 /* 159 */ "#159 (unimplemented adjtimex)", 224 /* 160 */ "setrlimit", 225 /* 161 */ "chroot", 226 /* 162 */ "sync", 227 /* 163 */ "acct", 228 /* 164 */ "settimeofday", 229 /* 165 */ "#165 (unimplemented mount)", 230 /* 166 */ "#166 (unimplemented umount2)", 231 /* 167 */ "swapon", 232 /* 168 */ "swapoff", 233 /* 169 */ "reboot", 234 /* 170 */ "sethostname", 235 /* 171 */ "setdomainname", 236 /* 172 */ "iopl", 237 /* 173 */ "ioperm", 238 /* 174 */ "#174 (unimplemented create_module)", 239 /* 175 */ "#175 (unimplemented init_module)", 240 /* 176 */ "#176 (unimplemented delete_module)", 241 /* 177 */ "#177 (unimplemented get_kernel_syms)", 242 /* 178 */ "#178 (unimplemented query_module)", 243 /* 179 */ "#179 (unimplemented quotactl)", 244 /* 180 */ "#180 (unimplemented nfsservctl)", 245 /* 181 */ "#181 (unimplemented getpmsg)", 246 /* 182 */ "#182 (unimplemented putpmsg)", 247 /* 183 */ "#183 (unimplemented afs_syscall)", 248 /* 184 */ "#184 (unimplemented tuxcall)", 249 /* 185 */ "#185 (unimplemented security)", 250 /* 186 */ "gettid", 251 /* 187 */ "#187 (unimplemented readahead)", 252 /* 188 */ "setxattr", 253 /* 189 */ "lsetxattr", 254 /* 190 */ "fsetxattr", 255 /* 191 */ "getxattr", 256 /* 192 */ "lgetxattr", 257 /* 193 */ "fgetxattr", 258 /* 194 */ "listxattr", 259 /* 195 */ "llistxattr", 260 /* 196 */ "flistxattr", 261 /* 197 */ "removexattr", 262 /* 198 */ "lremovexattr", 263 /* 199 */ "fremovexattr", 264 /* 200 */ "tkill", 265 /* 201 */ "time", 266 /* 202 */ "futex", 267 /* 203 */ "sched_setaffinity", 268 /* 204 */ "sched_getaffinity", 269 /* 205 */ "#205 (unimplemented set_thread_area)", 270 /* 206 */ "#206 (unimplemented io_setup)", 271 /* 207 */ "#207 (unimplemented io_destroy)", 272 /* 208 */ "#208 (unimplemented io_getevents)", 273 /* 209 */ "#209 (unimplemented io_submit)", 274 /* 210 */ "#210 (unimplemented io_cancel)", 275 /* 211 */ "#211 (unimplemented get_thread_area)", 276 /* 212 */ "#212 (unimplemented lookup_dcookie)", 277 /* 213 */ "#213 (unimplemented epoll_create)", 278 /* 214 */ "#214 (unimplemented epoll_ctl_old)", 279 /* 215 */ "#215 (unimplemented epoll_wait_old)", 280 /* 216 */ "#216 (unimplemented remap_file_pages)", 281 /* 217 */ "getdents64", 282 /* 218 */ "set_tid_address", 283 /* 219 */ "#219 (unimplemented restart_syscall)", 284 /* 220 */ "#220 (unimplemented semtimedop)", 285 /* 221 */ "#221 (unimplemented fadvise64)", 286 /* 222 */ "#222 (unimplemented timer_create)", 287 /* 223 */ "#223 (unimplemented timer_settime)", 288 /* 224 */ "#224 (unimplemented timer_gettime)", 289 /* 225 */ "#225 (unimplemented timer_getoverrun)", 290 /* 226 */ "#226 (unimplemented timer_delete)", 291 /* 227 */ "clock_settime", 292 /* 228 */ "clock_gettime", 293 /* 229 */ "clock_getres", 294 /* 230 */ "clock_nanosleep", 295 /* 231 */ "exit_group", 296 /* 232 */ "#232 (unimplemented epoll_wait)", 297 /* 233 */ "#233 (unimplemented epoll_ctl)", 298 /* 234 */ "tgkill", 299 /* 235 */ "#235 (unimplemented utimes)", 300 /* 236 */ "#236 (unimplemented vserver)", 301 /* 237 */ "#237 (unimplemented mbind)", 302 /* 238 */ "#238 (unimplemented set_mempolicy)", 303 /* 239 */ "#239 (unimplemented get_mempolicy)", 304 /* 240 */ "#240 (unimplemented mq_open)", 305 /* 241 */ "#241 (unimplemented mq_unlink)", 306 /* 242 */ "#242 (unimplemented mq_timedsend)", 307 /* 243 */ "#243 (unimplemented mq_timedreceive)", 308 /* 244 */ "#244 (unimplemented mq_notify)", 309 /* 245 */ "#245 (unimplemented mq_getsetattr)", 310 /* 246 */ "#246 (unimplemented kexec_load)", 311 /* 247 */ "#247 (unimplemented waitid)", 312 /* 248 */ "#248 (unimplemented add_key)", 313 /* 249 */ "#249 (unimplemented request_key)", 314 /* 250 */ "#250 (unimplemented keyctl)", 315 /* 251 */ "#251 (unimplemented ioprio_set)", 316 /* 252 */ "#252 (unimplemented ioprio_get)", 317 /* 253 */ "#253 (unimplemented inotify_init)", 318 /* 254 */ "#254 (unimplemented inotify_add_watch)", 319 /* 255 */ "#255 (unimplemented inotify_rm_watch)", 320 /* 256 */ "#256 (unimplemented migrate_pages)", 321 /* 257 */ "#257 (unimplemented openat)", 322 /* 258 */ "#258 (unimplemented mkdirat)", 323 /* 259 */ "#259 (unimplemented mknodat)", 324 /* 260 */ "#260 (unimplemented fchownat)", 325 /* 261 */ "#261 (unimplemented futimesat)", 326 /* 262 */ "#262 (unimplemented newfstatat)", 327 /* 263 */ "#263 (unimplemented unlinkat)", 328 /* 264 */ "#264 (unimplemented renameat)", 329 /* 265 */ "#265 (unimplemented linkat)", 330 /* 266 */ "#266 (unimplemented symlinkat)", 331 /* 267 */ "#267 (unimplemented readlinkat)", 332 /* 268 */ "#268 (unimplemented fchmodat)", 333 /* 269 */ "#269 (unimplemented faccessat)", 334 /* 270 */ "#270 (unimplemented pselect6)", 335 /* 271 */ "#271 (unimplemented ppoll)", 336 /* 272 */ "#272 (unimplemented unshare)", 337 /* 273 */ "set_robust_list", 338 /* 274 */ "get_robust_list", 339 /* 275 */ "#275 (unimplemented splice)", 340 /* 276 */ "#276 (unimplemented tee)", 341 /* 277 */ "#277 (unimplemented sync_file_range)", 342 /* 278 */ "#278 (unimplemented vmsplice)", 343 /* 279 */ "#279 (unimplemented move_pages)", 344 /* 280 */ "#280 (unimplemented utimensat)", 345 /* 281 */ "#281 (unimplemented epoll_pwait)", 346 /* 282 */ "#282 (unimplemented signalfd)", 347 /* 283 */ "#283 (unimplemented timerfd_create)", 348 /* 284 */ "#284 (unimplemented eventfd)", 349 /* 285 */ "#285 (unimplemented fallocate)", 350 /* 286 */ "nosys", 351}; 352