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