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