Regen from aoutm68k/syscalls.master rev 1.5:

> Allow enabling/disabling /emul/aout alternate path search
> on COMPAT_AOUT_M68K environment by options COMPAT_AOUT_ALTPATH.
This commit is contained in:
tsutsui 2001-04-07 12:28:55 +00:00
parent 0286ef8bba
commit aff5787b5b
4 changed files with 291 additions and 8 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: aoutm68k_syscall.h,v 1.5 2001/01/27 07:52:20 thorpej Exp $ */
/* $NetBSD: aoutm68k_syscall.h,v 1.6 2001/04/07 12:28:55 tsutsui Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.4 2001/01/27 07:51:22 thorpej Exp
* created from NetBSD: syscalls.master,v 1.5 2001/04/07 12:25:15 tsutsui Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
@ -411,6 +411,7 @@
#define AOUTM68K_SYS_oftruncate 130
/* 129 is excluded aoutm68k_compat_43_sys_truncate */
/* 129 is excluded compat_43_sys_truncate */
/* 130 is excluded compat_43_sys_ftruncate */
/* syscall: "flock" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_flock 131

View File

@ -1,10 +1,10 @@
/* $NetBSD: aoutm68k_syscallargs.h,v 1.5 2001/01/27 07:52:20 thorpej Exp $ */
/* $NetBSD: aoutm68k_syscallargs.h,v 1.6 2001/04/07 12:28:55 tsutsui Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.4 2001/01/27 07:51:22 thorpej Exp
* created from NetBSD: syscalls.master,v 1.5 2001/04/07 12:25:15 tsutsui Exp
*/
#ifndef _AOUTM68K_SYS__SYSCALLARGS_H_
@ -226,20 +226,38 @@ int sys_exit(struct proc *, void *, register_t *);
int sys_fork(struct proc *, void *, register_t *);
int sys_read(struct proc *, void *, register_t *);
int sys_write(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_open(struct proc *, void *, register_t *);
#else
int sys_open(struct proc *, void *, register_t *);
#endif
int sys_close(struct proc *, void *, register_t *);
int sys_wait4(struct proc *, void *, register_t *);
#ifdef COMPAT_43
int compat_43_sys_creat(struct proc *, void *, register_t *);
#else
#endif
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_link(struct proc *, void *, register_t *);
int aoutm68k_sys_unlink(struct proc *, void *, register_t *);
#else
int sys_link(struct proc *, void *, register_t *);
int sys_unlink(struct proc *, void *, register_t *);
#endif
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_chdir(struct proc *, void *, register_t *);
#else
int sys_chdir(struct proc *, void *, register_t *);
#endif
int sys_fchdir(struct proc *, void *, register_t *);
int sys_mknod(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_chmod(struct proc *, void *, register_t *);
int aoutm68k_sys_chown(struct proc *, void *, register_t *);
#else
int sys_chmod(struct proc *, void *, register_t *);
int sys_chown(struct proc *, void *, register_t *);
#endif
int sys_obreak(struct proc *, void *, register_t *);
int sys_getfsstat(struct proc *, void *, register_t *);
#ifdef COMPAT_43
@ -259,8 +277,13 @@ int sys_recvfrom(struct proc *, void *, register_t *);
int sys_accept(struct proc *, void *, register_t *);
int sys_getpeername(struct proc *, void *, register_t *);
int sys_getsockname(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_access(struct proc *, void *, register_t *);
int aoutm68k_sys_chflags(struct proc *, void *, register_t *);
#else
int sys_access(struct proc *, void *, register_t *);
int sys_chflags(struct proc *, void *, register_t *);
#endif
int sys_fchflags(struct proc *, void *, register_t *);
int sys_sync(struct proc *, void *, register_t *);
int sys_kill(struct proc *, void *, register_t *);
@ -303,12 +326,23 @@ int aoutm68k_sys_ioctl(struct proc *, void *, register_t *);
int compat_12_sys_reboot(struct proc *, void *, register_t *);
#else
#endif
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_revoke(struct proc *, void *, register_t *);
int aoutm68k_sys_symlink(struct proc *, void *, register_t *);
int aoutm68k_sys_readlink(struct proc *, void *, register_t *);
int aoutm68k_sys_execve(struct proc *, void *, register_t *);
#else
int sys_revoke(struct proc *, void *, register_t *);
int sys_symlink(struct proc *, void *, register_t *);
int sys_readlink(struct proc *, void *, register_t *);
int sys_execve(struct proc *, void *, register_t *);
#endif
int sys_umask(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_chroot(struct proc *, void *, register_t *);
#else
int sys_chroot(struct proc *, void *, register_t *);
#endif
#ifdef COMPAT_43
int aoutm68k_compat_43_sys_fstat(struct proc *, void *, register_t *);
int compat_43_sys_getkerninfo(struct proc *, void *, register_t *);
@ -405,11 +439,22 @@ int compat_43_sys_recvfrom(struct proc *, void *, register_t *);
#endif
int sys_setreuid(struct proc *, void *, register_t *);
int sys_setregid(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_rename(struct proc *, void *, register_t *);
#else
int sys_rename(struct proc *, void *, register_t *);
#endif
#ifdef COMPAT_43
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_compat_43_sys_truncate(struct proc *, void *, register_t *);
#else
int compat_43_sys_truncate(struct proc *, void *, register_t *);
#endif
int compat_43_sys_ftruncate(struct proc *, void *, register_t *);
#else
#ifdef COMPAT_AOUT_ALTPATH
#else
#endif
#endif
int sys_flock(struct proc *, void *, register_t *);
int sys_mkfifo(struct proc *, void *, register_t *);
@ -417,8 +462,13 @@ int sys_sendto(struct proc *, void *, register_t *);
int sys_shutdown(struct proc *, void *, register_t *);
int sys_socketpair(struct proc *, void *, register_t *);
int sys_mkdir(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_rmdir(struct proc *, void *, register_t *);
int aoutm68k_sys_utimes(struct proc *, void *, register_t *);
#else
int sys_rmdir(struct proc *, void *, register_t *);
int sys_utimes(struct proc *, void *, register_t *);
#endif
int sys_adjtime(struct proc *, void *, register_t *);
#ifdef COMPAT_43
int compat_43_sys_getpeername(struct proc *, void *, register_t *);
@ -444,11 +494,19 @@ int sys_nfssvc(struct proc *, void *, register_t *);
int compat_43_sys_getdirentries(struct proc *, void *, register_t *);
#else
#endif
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_statfs(struct proc *, void *, register_t *);
#else
int sys_statfs(struct proc *, void *, register_t *);
#endif
int sys_fstatfs(struct proc *, void *, register_t *);
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_getfh(struct proc *, void *, register_t *);
#else
int sys_getfh(struct proc *, void *, register_t *);
#endif
#else
#endif
#ifdef COMPAT_09
int compat_09_sys_getdomainname(struct proc *, void *, register_t *);
@ -492,7 +550,11 @@ int aoutm68k_compat_12_sys_fstat(struct proc *, void *, register_t *);
int aoutm68k_compat_12_sys_lstat(struct proc *, void *, register_t *);
#else
#endif
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_pathconf(struct proc *, void *, register_t *);
#else
int sys_pathconf(struct proc *, void *, register_t *);
#endif
int sys_fpathconf(struct proc *, void *, register_t *);
int sys_getrlimit(struct proc *, void *, register_t *);
int sys_setrlimit(struct proc *, void *, register_t *);
@ -502,12 +564,20 @@ int compat_12_sys_getdirentries(struct proc *, void *, register_t *);
#endif
int sys_mmap(struct proc *, void *, register_t *);
int sys_lseek(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_truncate(struct proc *, void *, register_t *);
#else
int sys_truncate(struct proc *, void *, register_t *);
#endif
int sys_ftruncate(struct proc *, void *, register_t *);
int sys___sysctl(struct proc *, void *, register_t *);
int sys_mlock(struct proc *, void *, register_t *);
int sys_munlock(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_undelete(struct proc *, void *, register_t *);
#else
int sys_undelete(struct proc *, void *, register_t *);
#endif
int sys_futimes(struct proc *, void *, register_t *);
int sys_getpgid(struct proc *, void *, register_t *);
int sys_reboot(struct proc *, void *, register_t *);
@ -562,20 +632,34 @@ int sys_nanosleep(struct proc *, void *, register_t *);
int sys_fdatasync(struct proc *, void *, register_t *);
int sys_mlockall(struct proc *, void *, register_t *);
int sys_munlockall(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys___posix_rename(struct proc *, void *, register_t *);
#else
int sys___posix_rename(struct proc *, void *, register_t *);
#endif
int sys_swapctl(struct proc *, void *, register_t *);
int sys_getdents(struct proc *, void *, register_t *);
int sys_minherit(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys_lchmod(struct proc *, void *, register_t *);
int aoutm68k_sys_lchown(struct proc *, void *, register_t *);
int aoutm68k_sys_lutimes(struct proc *, void *, register_t *);
#else
int sys_lchmod(struct proc *, void *, register_t *);
int sys_lchown(struct proc *, void *, register_t *);
int sys_lutimes(struct proc *, void *, register_t *);
#endif
int sys___msync13(struct proc *, void *, register_t *);
int aoutm68k_sys___stat13(struct proc *, void *, register_t *);
int aoutm68k_sys___fstat13(struct proc *, void *, register_t *);
int aoutm68k_sys___lstat13(struct proc *, void *, register_t *);
int sys___sigaltstack14(struct proc *, void *, register_t *);
int sys___vfork14(struct proc *, void *, register_t *);
#ifdef COMPAT_AOUT_ALTPATH
int aoutm68k_sys___posix_chown(struct proc *, void *, register_t *);
#else
int sys___posix_chown(struct proc *, void *, register_t *);
#endif
int sys___posix_fchown(struct proc *, void *, register_t *);
int sys___posix_lchown(struct proc *, void *, register_t *);
int sys_getsid(struct proc *, void *, register_t *);

View File

@ -1,10 +1,10 @@
/* $NetBSD: aoutm68k_syscalls.c,v 1.5 2001/01/27 07:52:20 thorpej Exp $ */
/* $NetBSD: aoutm68k_syscalls.c,v 1.6 2001/04/07 12:28:55 tsutsui Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.4 2001/01/27 07:51:22 thorpej Exp
* created from NetBSD: syscalls.master,v 1.5 2001/04/07 12:25:15 tsutsui Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -32,7 +32,11 @@ const char *const aoutm68k_syscallnames[] = {
"fork", /* 2 = fork */
"read", /* 3 = read */
"write", /* 4 = write */
#ifdef COMPAT_AOUT_ALTPATH
"open", /* 5 = open */
#else
"open", /* 5 = open */
#endif
"close", /* 6 = close */
"wait4", /* 7 = wait4 */
#ifdef COMPAT_43
@ -40,14 +44,28 @@ const char *const aoutm68k_syscallnames[] = {
#else
"#8 (excluded compat_43_sys_creat)", /* 8 = excluded compat_43_sys_creat */
#endif
#ifdef COMPAT_AOUT_ALTPATH
"link", /* 9 = link */
"unlink", /* 10 = unlink */
#else
"link", /* 9 = link */
"unlink", /* 10 = unlink */
#endif
"#11 (obsolete execv)", /* 11 = obsolete execv */
#ifdef COMPAT_AOUT_ALTPATH
"chdir", /* 12 = chdir */
#else
"chdir", /* 12 = chdir */
#endif
"fchdir", /* 13 = fchdir */
"mknod", /* 14 = mknod */
#ifdef COMPAT_AOUT_ALTPATH
"chmod", /* 15 = chmod */
"chown", /* 16 = chown */
#else
"chmod", /* 15 = chmod */
"chown", /* 16 = chown */
#endif
"break", /* 17 = break */
"getfsstat", /* 18 = getfsstat */
#ifdef COMPAT_43
@ -68,8 +86,13 @@ const char *const aoutm68k_syscallnames[] = {
"accept", /* 30 = accept */
"getpeername", /* 31 = getpeername */
"getsockname", /* 32 = getsockname */
#ifdef COMPAT_AOUT_ALTPATH
"access", /* 33 = access */
"chflags", /* 34 = chflags */
#else
"access", /* 33 = access */
"chflags", /* 34 = chflags */
#endif
"fchflags", /* 35 = fchflags */
"sync", /* 36 = sync */
"kill", /* 37 = kill */
@ -120,12 +143,23 @@ const char *const aoutm68k_syscallnames[] = {
#else
"#55 (excluded compat_12_sys_reboot)", /* 55 = excluded compat_12_sys_reboot */
#endif
#ifdef COMPAT_AOUT_ALTPATH
"revoke", /* 56 = revoke */
"symlink", /* 57 = symlink */
"readlink", /* 58 = readlink */
"execve", /* 59 = execve */
#else
"revoke", /* 56 = revoke */
"symlink", /* 57 = symlink */
"readlink", /* 58 = readlink */
"execve", /* 59 = execve */
#endif
"umask", /* 60 = umask */
#ifdef COMPAT_AOUT_ALTPATH
"chroot", /* 61 = chroot */
#else
"chroot", /* 61 = chroot */
#endif
#ifdef COMPAT_43
"fstat43", /* 62 = fstat43 */
"ogetkerninfo", /* 63 = ogetkerninfo */
@ -253,12 +287,24 @@ const char *const aoutm68k_syscallnames[] = {
#endif
"setreuid", /* 126 = setreuid */
"setregid", /* 127 = setregid */
#ifdef COMPAT_AOUT_ALTPATH
"rename", /* 128 = rename */
#else
"rename", /* 128 = rename */
#endif
#ifdef COMPAT_43
#ifdef COMPAT_AOUT_ALTPATH
"otruncate", /* 129 = otruncate */
#else
"otruncate", /* 129 = otruncate */
#endif
"oftruncate", /* 130 = oftruncate */
#else
#ifdef COMPAT_AOUT_ALTPATH
"#129 (excluded aoutm68k_compat_43_sys_truncate)", /* 129 = excluded aoutm68k_compat_43_sys_truncate */
#else
"#129 (excluded compat_43_sys_truncate)", /* 129 = excluded compat_43_sys_truncate */
#endif
"#130 (excluded compat_43_sys_ftruncate)", /* 130 = excluded compat_43_sys_ftruncate */
#endif
"flock", /* 131 = flock */
@ -267,8 +313,13 @@ const char *const aoutm68k_syscallnames[] = {
"shutdown", /* 134 = shutdown */
"socketpair", /* 135 = socketpair */
"mkdir", /* 136 = mkdir */
#ifdef COMPAT_AOUT_ALTPATH
"rmdir", /* 137 = rmdir */
"utimes", /* 138 = utimes */
#else
"rmdir", /* 137 = rmdir */
"utimes", /* 138 = utimes */
#endif
"#139 (obsolete 4.2 sigreturn)", /* 139 = obsolete 4.2 sigreturn */
"adjtime", /* 140 = adjtime */
#ifdef COMPAT_43
@ -309,12 +360,20 @@ const char *const aoutm68k_syscallnames[] = {
#else
"#156 (excluded compat_43_sys_getdirentries)", /* 156 = excluded compat_43_sys_getdirentries */
#endif
#ifdef COMPAT_AOUT_ALTPATH
"statfs", /* 157 = statfs */
#else
"statfs", /* 157 = statfs */
#endif
"fstatfs", /* 158 = fstatfs */
"#159 (unimplemented)", /* 159 = unimplemented */
"#160 (unimplemented)", /* 160 = unimplemented */
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
#ifdef COMPAT_AOUT_ALTPATH
"getfh", /* 161 = getfh */
#else
"getfh", /* 161 = getfh */
#endif
#else
"#161 (excluded getfh)", /* 161 = excluded getfh */
#endif
@ -382,7 +441,11 @@ const char *const aoutm68k_syscallnames[] = {
"#189 (excluded aoutm68k_compat_12_sys_fstat)", /* 189 = excluded aoutm68k_compat_12_sys_fstat */
"#190 (excluded aoutm68k_compat_12_sys_lstat)", /* 190 = excluded aoutm68k_compat_12_sys_lstat */
#endif
#ifdef COMPAT_AOUT_ALTPATH
"pathconf", /* 191 = pathconf */
#else
"pathconf", /* 191 = pathconf */
#endif
"fpathconf", /* 192 = fpathconf */
"#193 (unimplemented)", /* 193 = unimplemented */
"getrlimit", /* 194 = getrlimit */
@ -395,12 +458,20 @@ const char *const aoutm68k_syscallnames[] = {
"mmap", /* 197 = mmap */
"__syscall", /* 198 = __syscall */
"lseek", /* 199 = lseek */
#ifdef COMPAT_AOUT_ALTPATH
"truncate", /* 200 = truncate */
#else
"truncate", /* 200 = truncate */
#endif
"ftruncate", /* 201 = ftruncate */
"__sysctl", /* 202 = __sysctl */
"mlock", /* 203 = mlock */
"munlock", /* 204 = munlock */
#ifdef COMPAT_AOUT_ALTPATH
"undelete", /* 205 = undelete */
#else
"undelete", /* 205 = undelete */
#endif
"futimes", /* 206 = futimes */
"getpgid", /* 207 = getpgid */
"reboot", /* 208 = reboot */
@ -511,20 +582,34 @@ const char *const aoutm68k_syscallnames[] = {
"#267 (unimplemented)", /* 267 = unimplemented */
"#268 (unimplemented)", /* 268 = unimplemented */
"#269 (unimplemented)", /* 269 = unimplemented */
#ifdef COMPAT_AOUT_ALTPATH
"__posix_rename", /* 270 = __posix_rename */
#else
"__posix_rename", /* 270 = __posix_rename */
#endif
"swapctl", /* 271 = swapctl */
"getdents", /* 272 = getdents */
"minherit", /* 273 = minherit */
#ifdef COMPAT_AOUT_ALTPATH
"lchmod", /* 274 = lchmod */
"lchown", /* 275 = lchown */
"lutimes", /* 276 = lutimes */
#else
"lchmod", /* 274 = lchmod */
"lchown", /* 275 = lchown */
"lutimes", /* 276 = lutimes */
#endif
"__msync13", /* 277 = __msync13 */
"__stat13", /* 278 = __stat13 */
"__fstat13", /* 279 = __fstat13 */
"__lstat13", /* 280 = __lstat13 */
"__sigaltstack14", /* 281 = __sigaltstack14 */
"__vfork14", /* 282 = __vfork14 */
#ifdef COMPAT_AOUT_ALTPATH
"__posix_chown", /* 283 = __posix_chown */
#else
"__posix_chown", /* 283 = __posix_chown */
#endif
"__posix_fchown", /* 284 = __posix_fchown */
"__posix_lchown", /* 285 = __posix_lchown */
"getsid", /* 286 = getsid */

View File

@ -1,10 +1,10 @@
/* $NetBSD: aoutm68k_sysent.c,v 1.5 2001/01/27 07:52:20 thorpej Exp $ */
/* $NetBSD: aoutm68k_sysent.c,v 1.6 2001/04/07 12:28:55 tsutsui Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.4 2001/01/27 07:51:22 thorpej Exp
* created from NetBSD: syscalls.master,v 1.5 2001/04/07 12:25:15 tsutsui Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -37,8 +37,13 @@ struct sysent aoutm68k_sysent[] = {
sys_read }, /* 3 = read */
{ 3, s(struct sys_write_args), 0,
sys_write }, /* 4 = write */
#ifdef COMPAT_AOUT_ALTPATH
{ 3, s(struct aoutm68k_sys_open_args), 0,
aoutm68k_sys_open }, /* 5 = open */
#else
{ 3, s(struct sys_open_args), 0,
sys_open }, /* 5 = open */
#endif
{ 1, s(struct sys_close_args), 0,
sys_close }, /* 6 = close */
{ 4, s(struct sys_wait4_args), 0,
@ -50,22 +55,41 @@ struct sysent aoutm68k_sysent[] = {
{ 0, 0, 0,
sys_nosys }, /* 8 = excluded compat_43_sys_creat */
#endif
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys_link_args), 0,
aoutm68k_sys_link }, /* 9 = link */
{ 1, s(struct aoutm68k_sys_unlink_args), 0,
aoutm68k_sys_unlink }, /* 10 = unlink */
#else
{ 2, s(struct sys_link_args), 0,
sys_link }, /* 9 = link */
{ 1, s(struct sys_unlink_args), 0,
sys_unlink }, /* 10 = unlink */
#endif
{ 0, 0, 0,
sys_nosys }, /* 11 = obsolete execv */
#ifdef COMPAT_AOUT_ALTPATH
{ 1, s(struct aoutm68k_sys_chdir_args), 0,
aoutm68k_sys_chdir }, /* 12 = chdir */
#else
{ 1, s(struct sys_chdir_args), 0,
sys_chdir }, /* 12 = chdir */
#endif
{ 1, s(struct sys_fchdir_args), 0,
sys_fchdir }, /* 13 = fchdir */
{ 3, s(struct sys_mknod_args), 0,
sys_mknod }, /* 14 = mknod */
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys_chmod_args), 0,
aoutm68k_sys_chmod }, /* 15 = chmod */
{ 3, s(struct aoutm68k_sys_chown_args), 0,
aoutm68k_sys_chown }, /* 16 = chown */
#else
{ 2, s(struct sys_chmod_args), 0,
sys_chmod }, /* 15 = chmod */
{ 3, s(struct sys_chown_args), 0,
sys_chown }, /* 16 = chown */
#endif
{ 1, s(struct sys_obreak_args), 0,
sys_obreak }, /* 17 = break */
{ 3, s(struct sys_getfsstat_args), 0,
@ -103,10 +127,17 @@ struct sysent aoutm68k_sysent[] = {
sys_getpeername }, /* 31 = getpeername */
{ 3, s(struct sys_getsockname_args), 0,
sys_getsockname }, /* 32 = getsockname */
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys_access_args), 0,
aoutm68k_sys_access }, /* 33 = access */
{ 2, s(struct aoutm68k_sys_chflags_args), 0,
aoutm68k_sys_chflags }, /* 34 = chflags */
#else
{ 2, s(struct sys_access_args), 0,
sys_access }, /* 33 = access */
{ 2, s(struct sys_chflags_args), 0,
sys_chflags }, /* 34 = chflags */
#endif
{ 2, s(struct sys_fchflags_args), 0,
sys_fchflags }, /* 35 = fchflags */
{ 0, 0, 0,
@ -186,6 +217,7 @@ struct sysent aoutm68k_sysent[] = {
{ 0, 0, 0,
sys_nosys }, /* 55 = excluded compat_12_sys_reboot */
#endif
#ifdef COMPAT_AOUT_ALTPATH
{ 1, s(struct aoutm68k_sys_revoke_args), 0,
aoutm68k_sys_revoke }, /* 56 = revoke */
{ 2, s(struct aoutm68k_sys_symlink_args), 0,
@ -194,10 +226,25 @@ struct sysent aoutm68k_sysent[] = {
aoutm68k_sys_readlink }, /* 58 = readlink */
{ 3, s(struct aoutm68k_sys_execve_args), 0,
aoutm68k_sys_execve }, /* 59 = execve */
#else
{ 1, s(struct sys_revoke_args), 0,
sys_revoke }, /* 56 = revoke */
{ 2, s(struct sys_symlink_args), 0,
sys_symlink }, /* 57 = symlink */
{ 3, s(struct sys_readlink_args), 0,
sys_readlink }, /* 58 = readlink */
{ 3, s(struct sys_execve_args), 0,
sys_execve }, /* 59 = execve */
#endif
{ 1, s(struct sys_umask_args), 0,
sys_umask }, /* 60 = umask */
#ifdef COMPAT_AOUT_ALTPATH
{ 1, s(struct aoutm68k_sys_chroot_args), 0,
aoutm68k_sys_chroot }, /* 61 = chroot */
#else
{ 1, s(struct sys_chroot_args), 0,
sys_chroot }, /* 61 = chroot */
#endif
#ifdef COMPAT_43
{ 2, s(struct aoutm68k_compat_43_sys_fstat_args), 0,
aoutm68k_compat_43_sys_fstat }, /* 62 = fstat43 */
@ -413,16 +460,31 @@ struct sysent aoutm68k_sysent[] = {
sys_setreuid }, /* 126 = setreuid */
{ 2, s(struct sys_setregid_args), 0,
sys_setregid }, /* 127 = setregid */
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys_rename_args), 0,
aoutm68k_sys_rename }, /* 128 = rename */
#else
{ 2, s(struct sys_rename_args), 0,
sys_rename }, /* 128 = rename */
#endif
#ifdef COMPAT_43
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_compat_43_sys_truncate_args), 0,
aoutm68k_compat_43_sys_truncate }, /* 129 = otruncate */
#else
{ 2, s(struct compat_43_sys_truncate_args), 0,
compat_43_sys_truncate }, /* 129 = otruncate */
#endif
{ 2, s(struct compat_43_sys_ftruncate_args), 0,
compat_43_sys_ftruncate }, /* 130 = oftruncate */
#else
#ifdef COMPAT_AOUT_ALTPATH
{ 0, 0, 0,
sys_nosys }, /* 129 = excluded aoutm68k_compat_43_sys_truncate */
#else
{ 0, 0, 0,
sys_nosys }, /* 129 = excluded compat_43_sys_truncate */
#endif
{ 0, 0, 0,
sys_nosys }, /* 130 = excluded compat_43_sys_ftruncate */
#endif
@ -438,10 +500,17 @@ struct sysent aoutm68k_sysent[] = {
sys_socketpair }, /* 135 = socketpair */
{ 2, s(struct sys_mkdir_args), 0,
sys_mkdir }, /* 136 = mkdir */
#ifdef COMPAT_AOUT_ALTPATH
{ 1, s(struct aoutm68k_sys_rmdir_args), 0,
aoutm68k_sys_rmdir }, /* 137 = rmdir */
{ 2, s(struct aoutm68k_sys_utimes_args), 0,
aoutm68k_sys_utimes }, /* 138 = utimes */
#else
{ 1, s(struct sys_rmdir_args), 0,
sys_rmdir }, /* 137 = rmdir */
{ 2, s(struct sys_utimes_args), 0,
sys_utimes }, /* 138 = utimes */
#endif
{ 0, 0, 0,
sys_nosys }, /* 139 = obsolete 4.2 sigreturn */
{ 2, s(struct sys_adjtime_args), 0,
@ -510,8 +579,13 @@ struct sysent aoutm68k_sysent[] = {
{ 0, 0, 0,
sys_nosys }, /* 156 = excluded compat_43_sys_getdirentries */
#endif
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys_statfs_args), 0,
aoutm68k_sys_statfs }, /* 157 = statfs */
#else
{ 2, s(struct sys_statfs_args), 0,
sys_statfs }, /* 157 = statfs */
#endif
{ 2, s(struct sys_fstatfs_args), 0,
sys_fstatfs }, /* 158 = fstatfs */
{ 0, 0, 0,
@ -519,8 +593,13 @@ struct sysent aoutm68k_sysent[] = {
{ 0, 0, 0,
sys_nosys }, /* 160 = unimplemented */
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys_getfh_args), 0,
aoutm68k_sys_getfh }, /* 161 = getfh */
#else
{ 2, s(struct sys_getfh_args), 0,
sys_getfh }, /* 161 = getfh */
#endif
#else
{ 0, 0, 0,
sys_nosys }, /* 161 = excluded getfh */
@ -632,8 +711,13 @@ struct sysent aoutm68k_sysent[] = {
{ 0, 0, 0,
sys_nosys }, /* 190 = excluded aoutm68k_compat_12_sys_lstat */
#endif
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys_pathconf_args), 0,
aoutm68k_sys_pathconf }, /* 191 = pathconf */
#else
{ 2, s(struct sys_pathconf_args), 0,
sys_pathconf }, /* 191 = pathconf */
#endif
{ 2, s(struct sys_fpathconf_args), 0,
sys_fpathconf }, /* 192 = fpathconf */
{ 0, 0, 0,
@ -655,8 +739,13 @@ struct sysent aoutm68k_sysent[] = {
sys_nosys }, /* 198 = __syscall (indir) */
{ 4, s(struct sys_lseek_args), 0,
sys_lseek }, /* 199 = lseek */
#ifdef COMPAT_AOUT_ALTPATH
{ 3, s(struct aoutm68k_sys_truncate_args), 0,
aoutm68k_sys_truncate }, /* 200 = truncate */
#else
{ 3, s(struct sys_truncate_args), 0,
sys_truncate }, /* 200 = truncate */
#endif
{ 3, s(struct sys_ftruncate_args), 0,
sys_ftruncate }, /* 201 = ftruncate */
{ 6, s(struct sys___sysctl_args), 0,
@ -665,8 +754,13 @@ struct sysent aoutm68k_sysent[] = {
sys_mlock }, /* 203 = mlock */
{ 2, s(struct sys_munlock_args), 0,
sys_munlock }, /* 204 = munlock */
#ifdef COMPAT_AOUT_ALTPATH
{ 1, s(struct aoutm68k_sys_undelete_args), 0,
aoutm68k_sys_undelete }, /* 205 = undelete */
#else
{ 1, s(struct sys_undelete_args), 0,
sys_undelete }, /* 205 = undelete */
#endif
{ 2, s(struct sys_futimes_args), 0,
sys_futimes }, /* 206 = futimes */
{ 1, s(struct sys_getpgid_args), 0,
@ -866,20 +960,34 @@ struct sysent aoutm68k_sysent[] = {
sys_nosys }, /* 268 = unimplemented */
{ 0, 0, 0,
sys_nosys }, /* 269 = unimplemented */
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys___posix_rename_args), 0,
aoutm68k_sys___posix_rename }, /* 270 = __posix_rename */
#else
{ 2, s(struct sys___posix_rename_args), 0,
sys___posix_rename }, /* 270 = __posix_rename */
#endif
{ 3, s(struct sys_swapctl_args), 0,
sys_swapctl }, /* 271 = swapctl */
{ 3, s(struct sys_getdents_args), 0,
sys_getdents }, /* 272 = getdents */
{ 3, s(struct sys_minherit_args), 0,
sys_minherit }, /* 273 = minherit */
#ifdef COMPAT_AOUT_ALTPATH
{ 2, s(struct aoutm68k_sys_lchmod_args), 0,
aoutm68k_sys_lchmod }, /* 274 = lchmod */
{ 3, s(struct aoutm68k_sys_lchown_args), 0,
aoutm68k_sys_lchown }, /* 275 = lchown */
{ 2, s(struct aoutm68k_sys_lutimes_args), 0,
aoutm68k_sys_lutimes }, /* 276 = lutimes */
#else
{ 2, s(struct sys_lchmod_args), 0,
sys_lchmod }, /* 274 = lchmod */
{ 3, s(struct sys_lchown_args), 0,
sys_lchown }, /* 275 = lchown */
{ 2, s(struct sys_lutimes_args), 0,
sys_lutimes }, /* 276 = lutimes */
#endif
{ 3, s(struct sys___msync13_args), 0,
sys___msync13 }, /* 277 = __msync13 */
{ 2, s(struct aoutm68k_sys___stat13_args), 0,
@ -892,8 +1000,13 @@ struct sysent aoutm68k_sysent[] = {
sys___sigaltstack14 }, /* 281 = __sigaltstack14 */
{ 0, 0, 0,
sys___vfork14 }, /* 282 = __vfork14 */
#ifdef COMPAT_AOUT_ALTPATH
{ 3, s(struct aoutm68k_sys___posix_chown_args), 0,
aoutm68k_sys___posix_chown }, /* 283 = __posix_chown */
#else
{ 3, s(struct sys___posix_chown_args), 0,
sys___posix_chown }, /* 283 = __posix_chown */
#endif
{ 3, s(struct sys___posix_fchown_args), 0,
sys___posix_fchown }, /* 284 = __posix_fchown */
{ 3, s(struct sys___posix_lchown_args), 0,