NetBSD/sys/compat/svr4/svr4_syscalls.c

300 lines
13 KiB
C
Raw Normal View History

2000-12-09 09:19:40 +03:00
/* $NetBSD: svr4_syscalls.c,v 1.64 2000/12/09 06:19:41 mycroft Exp $ */
1998-01-09 09:19:02 +03:00
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
2000-12-09 08:37:01 +03:00
* created from NetBSD: syscalls.master,v 1.48 2000/12/09 05:27:30 mycroft Exp
*/
2000-12-09 08:37:01 +03:00
#if defined(_KERNEL) && !defined(_LKM)
1998-02-19 06:34:15 +03:00
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_ntp.h"
1998-10-20 02:43:25 +04:00
#include "opt_sysv.h"
2000-12-09 08:37:01 +03:00
#endif
1998-02-19 03:45:36 +03:00
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <sys/syscallargs.h>
#include <compat/svr4/svr4_types.h>
#include <compat/svr4/svr4_time.h>
#include <compat/svr4/svr4_signal.h>
#include <compat/svr4/svr4_ucontext.h>
1999-09-07 10:25:14 +04:00
#include <compat/svr4/svr4_lwp.h>
1998-02-19 03:45:36 +03:00
#include <compat/svr4/svr4_syscallargs.h>
#include <compat/svr4/svr4_statvfs.h>
1998-11-29 00:53:33 +03:00
#include <compat/svr4/svr4_resource.h>
1998-02-19 03:45:36 +03:00
#include <compat/svr4/svr4_acl.h>
1998-02-19 06:34:15 +03:00
#endif /* _KERNEL && ! _LKM */
1998-02-19 03:45:36 +03:00
2000-12-09 08:37:01 +03:00
const char *const svr4_syscallnames[] = {
"syscall", /* 0 = syscall */
1995-10-15 09:13:56 +03:00
"exit", /* 1 = exit */
"fork", /* 2 = fork */
"read", /* 3 = read */
"write", /* 4 = write */
"open", /* 5 = open */
"close", /* 6 = close */
"wait", /* 7 = wait */
"creat", /* 8 = creat */
"link", /* 9 = link */
"unlink", /* 10 = unlink */
"execv", /* 11 = execv */
"chdir", /* 12 = chdir */
"time", /* 13 = time */
"mknod", /* 14 = mknod */
"chmod", /* 15 = chmod */
1998-09-12 04:10:33 +04:00
"chown", /* 16 = chown */
1995-10-15 09:13:56 +03:00
"break", /* 17 = break */
"stat", /* 18 = stat */
"lseek", /* 19 = lseek */
"getpid", /* 20 = getpid */
1995-10-07 09:51:37 +03:00
"#21 (unimplemented old_mount)", /* 21 = unimplemented old_mount */
1994-10-24 20:37:34 +03:00
"#22 (unimplemented System V umount)", /* 22 = unimplemented System V umount */
1995-10-15 09:13:56 +03:00
"setuid", /* 23 = setuid */
"getuid", /* 24 = getuid */
1995-10-07 09:51:37 +03:00
"#25 (unimplemented stime)", /* 25 = unimplemented stime */
"#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */
1995-10-15 09:13:56 +03:00
"alarm", /* 27 = alarm */
"fstat", /* 28 = fstat */
1996-12-06 06:26:33 +03:00
"pause", /* 29 = pause */
1995-12-19 10:12:53 +03:00
"utime", /* 30 = utime */
1994-10-24 20:37:34 +03:00
"#31 (unimplemented was stty)", /* 31 = unimplemented was stty */
"#32 (unimplemented was gtty)", /* 32 = unimplemented was gtty */
1995-10-15 09:13:56 +03:00
"access", /* 33 = access */
1997-03-15 03:06:47 +03:00
"nice", /* 34 = nice */
1995-10-07 09:51:37 +03:00
"#35 (unimplemented statfs)", /* 35 = unimplemented statfs */
1995-10-15 09:13:56 +03:00
"sync", /* 36 = sync */
"kill", /* 37 = kill */
1995-10-07 09:51:37 +03:00
"#38 (unimplemented fstatfs)", /* 38 = unimplemented fstatfs */
1995-10-15 09:13:56 +03:00
"pgrpsys", /* 39 = pgrpsys */
1995-10-07 09:51:37 +03:00
"#40 (unimplemented xenix)", /* 40 = unimplemented xenix */
1995-10-15 09:13:56 +03:00
"dup", /* 41 = dup */
"pipe", /* 42 = pipe */
"times", /* 43 = times */
1995-10-07 09:51:37 +03:00
"#44 (unimplemented profil)", /* 44 = unimplemented profil */
"#45 (unimplemented plock)", /* 45 = unimplemented plock */
1995-10-15 09:13:56 +03:00
"setgid", /* 46 = setgid */
"getgid", /* 47 = getgid */
"signal", /* 48 = signal */
#ifdef SYSVMSG
1995-10-15 09:13:56 +03:00
"msgsys", /* 49 = msgsys */
#else
1995-10-07 09:51:37 +03:00
"#49 (unimplemented msgsys)", /* 49 = unimplemented msgsys */
#endif
1995-10-15 09:13:56 +03:00
"sysarch", /* 50 = sysarch */
1995-10-07 09:51:37 +03:00
"#51 (unimplemented acct)", /* 51 = unimplemented acct */
#ifdef SYSVSHM
1995-10-15 09:13:56 +03:00
"shmsys", /* 52 = shmsys */
#else
1995-10-07 09:51:37 +03:00
"#52 (unimplemented shmsys)", /* 52 = unimplemented shmsys */
#endif
#ifdef SYSVSEM
1995-10-15 09:13:56 +03:00
"semsys", /* 53 = semsys */
#else
1995-10-07 09:51:37 +03:00
"#53 (unimplemented semsys)", /* 53 = unimplemented semsys */
#endif
1995-10-15 09:13:56 +03:00
"ioctl", /* 54 = ioctl */
1995-10-07 09:51:37 +03:00
"#55 (unimplemented uadmin)", /* 55 = unimplemented uadmin */
"#56 (unimplemented exch)", /* 56 = unimplemented exch */
1995-10-15 09:13:56 +03:00
"utssys", /* 57 = utssys */
"fsync", /* 58 = fsync */
"execve", /* 59 = execve */
"umask", /* 60 = umask */
"chroot", /* 61 = chroot */
"fcntl", /* 62 = fcntl */
"ulimit", /* 63 = ulimit */
1994-10-24 20:37:34 +03:00
"#64 (unimplemented reserved for unix/pc)", /* 64 = unimplemented reserved for unix/pc */
"#65 (unimplemented reserved for unix/pc)", /* 65 = unimplemented reserved for unix/pc */
"#66 (unimplemented reserved for unix/pc)", /* 66 = unimplemented reserved for unix/pc */
"#67 (unimplemented reserved for unix/pc)", /* 67 = unimplemented reserved for unix/pc */
"#68 (unimplemented reserved for unix/pc)", /* 68 = unimplemented reserved for unix/pc */
"#69 (unimplemented reserved for unix/pc)", /* 69 = unimplemented reserved for unix/pc */
1995-10-07 09:51:37 +03:00
"#70 (obsolete advfs)", /* 70 = obsolete advfs */
"#71 (obsolete unadvfs)", /* 71 = obsolete unadvfs */
"#72 (obsolete rmount)", /* 72 = obsolete rmount */
"#73 (obsolete rumount)", /* 73 = obsolete rumount */
"#74 (obsolete rfstart)", /* 74 = obsolete rfstart */
"#75 (obsolete sigret)", /* 75 = obsolete sigret */
"#76 (obsolete rdebug)", /* 76 = obsolete rdebug */
"#77 (obsolete rfstop)", /* 77 = obsolete rfstop */
"#78 (unimplemented rfsys)", /* 78 = unimplemented rfsys */
1995-10-15 09:13:56 +03:00
"rmdir", /* 79 = rmdir */
"mkdir", /* 80 = mkdir */
"getdents", /* 81 = getdents */
1995-10-07 09:51:37 +03:00
"#82 (obsolete libattach)", /* 82 = obsolete libattach */
"#83 (obsolete libdetach)", /* 83 = obsolete libdetach */
"#84 (unimplemented sysfs)", /* 84 = unimplemented sysfs */
1995-10-15 09:13:56 +03:00
"getmsg", /* 85 = getmsg */
"putmsg", /* 86 = putmsg */
"poll", /* 87 = poll */
"lstat", /* 88 = lstat */
"symlink", /* 89 = symlink */
"readlink", /* 90 = readlink */
"getgroups", /* 91 = getgroups */
"setgroups", /* 92 = setgroups */
"fchmod", /* 93 = fchmod */
1998-09-12 04:10:33 +04:00
"fchown", /* 94 = fchown */
1995-10-15 09:13:56 +03:00
"sigprocmask", /* 95 = sigprocmask */
"sigsuspend", /* 96 = sigsuspend */
"sigaltstack", /* 97 = sigaltstack */
"sigaction", /* 98 = sigaction */
"sigpending", /* 99 = sigpending */
"context", /* 100 = context */
1995-10-07 09:51:37 +03:00
"#101 (unimplemented evsys)", /* 101 = unimplemented evsys */
"#102 (unimplemented evtrapret)", /* 102 = unimplemented evtrapret */
1995-10-15 09:13:56 +03:00
"statvfs", /* 103 = statvfs */
"fstatvfs", /* 104 = fstatvfs */
1995-10-07 09:51:37 +03:00
"#105 (unimplemented)", /* 105 = unimplemented */
"#106 (unimplemented nfssvc)", /* 106 = unimplemented nfssvc */
1995-10-15 09:13:56 +03:00
"waitsys", /* 107 = waitsys */
1995-10-07 09:51:37 +03:00
"#108 (unimplemented sigsendsys)", /* 108 = unimplemented sigsendsys */
1995-10-15 09:13:56 +03:00
"hrtsys", /* 109 = hrtsys */
1995-10-07 09:51:37 +03:00
"#110 (unimplemented acancel)", /* 110 = unimplemented acancel */
"#111 (unimplemented async)", /* 111 = unimplemented async */
"#112 (unimplemented priocntlsys)", /* 112 = unimplemented priocntlsys */
"pathconf", /* 113 = pathconf */
1995-10-07 09:51:37 +03:00
"#114 (unimplemented mincore)", /* 114 = unimplemented mincore */
1995-10-15 09:13:56 +03:00
"mmap", /* 115 = mmap */
"mprotect", /* 116 = mprotect */
"munmap", /* 117 = munmap */
"fpathconf", /* 118 = fpathconf */
"vfork", /* 119 = vfork */
"fchdir", /* 120 = fchdir */
"readv", /* 121 = readv */
"writev", /* 122 = writev */
"xstat", /* 123 = xstat */
"lxstat", /* 124 = lxstat */
"fxstat", /* 125 = fxstat */
1996-02-02 04:18:09 +03:00
"xmknod", /* 126 = xmknod */
1995-10-07 09:51:37 +03:00
"#127 (unimplemented clocal)", /* 127 = unimplemented clocal */
1995-10-15 09:13:56 +03:00
"setrlimit", /* 128 = setrlimit */
"getrlimit", /* 129 = getrlimit */
1998-09-12 04:10:33 +04:00
"lchown", /* 130 = lchown */
1996-12-06 06:26:33 +03:00
"memcntl", /* 131 = memcntl */
1995-10-07 09:51:37 +03:00
"#132 (unimplemented getpmsg)", /* 132 = unimplemented getpmsg */
"#133 (unimplemented putpmsg)", /* 133 = unimplemented putpmsg */
1998-09-12 04:10:33 +04:00
"rename", /* 134 = rename */
1995-10-15 09:13:56 +03:00
"uname", /* 135 = uname */
"setegid", /* 136 = setegid */
"sysconfig", /* 137 = sysconfig */
"adjtime", /* 138 = adjtime */
"systeminfo", /* 139 = systeminfo */
1995-10-07 09:51:37 +03:00
"#140 (unimplemented)", /* 140 = unimplemented */
1995-10-15 09:13:56 +03:00
"seteuid", /* 141 = seteuid */
1994-10-24 20:37:34 +03:00
"#142 (unimplemented vtrace)", /* 142 = unimplemented vtrace */
1997-11-17 01:51:15 +03:00
"fork1", /* 143 = fork1 */
"#144 (unimplemented sigtimedwait)", /* 144 = unimplemented sigtimedwait */
1999-09-07 10:25:14 +04:00
"_lwp_info", /* 145 = _lwp_info */
1995-10-07 09:51:37 +03:00
"#146 (unimplemented yield)", /* 146 = unimplemented yield */
"#147 (unimplemented lwp_sema_wait)", /* 147 = unimplemented lwp_sema_wait */
"#148 (unimplemented lwp_sema_post)", /* 148 = unimplemented lwp_sema_post */
1998-10-04 20:22:47 +04:00
"#149 (unimplemented lwp_sema_trywait)", /* 149 = unimplemented lwp_sema_trywait */
1995-10-07 09:51:37 +03:00
"#150 (unimplemented)", /* 150 = unimplemented */
"#151 (unimplemented)", /* 151 = unimplemented */
"#152 (unimplemented modctl)", /* 152 = unimplemented modctl */
1995-10-15 09:13:56 +03:00
"fchroot", /* 153 = fchroot */
1995-12-19 10:12:53 +03:00
"utimes", /* 154 = utimes */
1995-10-15 09:13:56 +03:00
"vhangup", /* 155 = vhangup */
"gettimeofday", /* 156 = gettimeofday */
"getitimer", /* 157 = getitimer */
"setitimer", /* 158 = setitimer */
1999-09-07 10:25:14 +04:00
"_lwp_create", /* 159 = _lwp_create */
"_lwp_exit", /* 160 = _lwp_exit */
"_lwp_suspend", /* 161 = _lwp_suspend */
"_lwp_continue", /* 162 = _lwp_continue */
"_lwp_kill", /* 163 = _lwp_kill */
"_lwp_self", /* 164 = _lwp_self */
"_lwp_getprivate", /* 165 = _lwp_getprivate */
"_lwp_setprivate", /* 166 = _lwp_setprivate */
"_lwp_wait", /* 167 = _lwp_wait */
1995-10-07 09:51:37 +03:00
"#168 (unimplemented lwp_mutex_unlock)", /* 168 = unimplemented lwp_mutex_unlock */
"#169 (unimplemented lwp_mutex_lock)", /* 169 = unimplemented lwp_mutex_lock */
"#170 (unimplemented lwp_cond_wait)", /* 170 = unimplemented lwp_cond_wait */
"#171 (unimplemented lwp_cond_signal)", /* 171 = unimplemented lwp_cond_signal */
"#172 (unimplemented lwp_cond_broadcast)", /* 172 = unimplemented lwp_cond_broadcast */
"pread", /* 173 = pread */
"pwrite", /* 174 = pwrite */
"llseek", /* 175 = llseek */
1995-10-07 09:51:37 +03:00
"#176 (unimplemented inst_sync)", /* 176 = unimplemented inst_sync */
"#177 (unimplemented)", /* 177 = unimplemented */
"#178 (unimplemented kaio)", /* 178 = unimplemented kaio */
1995-10-07 09:51:37 +03:00
"#179 (unimplemented)", /* 179 = unimplemented */
"#180 (unimplemented)", /* 180 = unimplemented */
"#181 (unimplemented)", /* 181 = unimplemented */
"#182 (unimplemented)", /* 182 = unimplemented */
"#183 (unimplemented)", /* 183 = unimplemented */
"#184 (unimplemented tsolsys)", /* 184 = unimplemented tsolsys */
1996-12-06 06:26:33 +03:00
"acl", /* 185 = acl */
1997-10-28 22:02:52 +03:00
"auditsys", /* 186 = auditsys */
"#187 (unimplemented processor_bind)", /* 187 = unimplemented processor_bind */
"#188 (unimplemented processor_info)", /* 188 = unimplemented processor_info */
"#189 (unimplemented p_online)", /* 189 = unimplemented p_online */
"#190 (unimplemented sigqueue)", /* 190 = unimplemented sigqueue */
"#191 (unimplemented clock_gettime)", /* 191 = unimplemented clock_gettime */
"#192 (unimplemented clock_settime)", /* 192 = unimplemented clock_settime */
"#193 (unimplemented clock_getres)", /* 193 = unimplemented clock_getres */
"#194 (unimplemented timer_create)", /* 194 = unimplemented timer_create */
"#195 (unimplemented timer_delete)", /* 195 = unimplemented timer_delete */
"#196 (unimplemented timer_settime)", /* 196 = unimplemented timer_settime */
"#197 (unimplemented timer_gettime)", /* 197 = unimplemented timer_gettime */
"#198 (unimplemented timer_getoverrun)", /* 198 = unimplemented timer_getoverrun */
1998-02-01 16:25:00 +03:00
"nanosleep", /* 199 = nanosleep */
1996-12-06 06:26:33 +03:00
"facl", /* 200 = facl */
"#201 (unimplemented door)", /* 201 = unimplemented door */
1996-12-06 06:26:33 +03:00
"setreuid", /* 202 = setreuid */
"setregid", /* 203 = setregid */
"#204 (unimplemented install_utrap)", /* 204 = unimplemented install_utrap */
"#205 (unimplemented signotify)", /* 205 = unimplemented signotify */
"#206 (unimplemented schedctl)", /* 206 = unimplemented schedctl */
"#207 (unimplemented pset)", /* 207 = unimplemented pset */
"#208 (unimplemented)", /* 208 = unimplemented */
1998-11-27 18:22:44 +03:00
"resolvepath", /* 209 = resolvepath */
"#210 (unimplemented signotifywait)", /* 210 = unimplemented signotifywait */
"#211 (unimplemented lwp_sigredirect)", /* 211 = unimplemented lwp_sigredirect */
"#212 (unimplemented lwp_alarm)", /* 212 = unimplemented lwp_alarm */
"getdents64", /* 213 = getdents64 */
"mmap64", /* 214 = mmap64 */
"stat64", /* 215 = stat64 */
"lstat64", /* 216 = lstat64 */
"fstat64", /* 217 = fstat64 */
"statvfs64", /* 218 = statvfs64 */
"fstatvfs64", /* 219 = fstatvfs64 */
"setrlimit64", /* 220 = setrlimit64 */
"getrlimit64", /* 221 = getrlimit64 */
1998-07-01 03:32:07 +04:00
"pread64", /* 222 = pread64 */
"pwrite64", /* 223 = pwrite64 */
"creat64", /* 224 = creat64 */
"open64", /* 225 = open64 */
"#226 (unimplemented rpcsys)", /* 226 = unimplemented rpcsys */
"#227 (unimplemented)", /* 227 = unimplemented */
"#228 (unimplemented)", /* 228 = unimplemented */
"#229 (unimplemented)", /* 229 = unimplemented */
"socket", /* 230 = socket */
"socketpair", /* 231 = socketpair */
"bind", /* 232 = bind */
"listen", /* 233 = listen */
"accept", /* 234 = accept */
"connect", /* 235 = connect */
"shutdown", /* 236 = shutdown */
"recv", /* 237 = recv */
"recvfrom", /* 238 = recvfrom */
"recvmsg", /* 239 = recvmsg */
"send", /* 240 = send */
"sendmsg", /* 241 = sendmsg */
"sendto", /* 242 = sendto */
"getpeername", /* 243 = getpeername */
"getsockname", /* 244 = getsockname */
"getsockopt", /* 245 = getsockopt */
"setsockopt", /* 246 = setsockopt */
"#247 (unimplemented sockconfig)", /* 247 = unimplemented sockconfig */
"ntp_gettime", /* 248 = ntp_gettime */
#if defined(NTP) || !defined(_KERNEL)
"ntp_adjtime", /* 249 = ntp_adjtime */
#else
"#249 (excluded ntp_adjtime)", /* 249 = excluded ntp_adjtime */
#endif
};