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