Fixes to get dynamic binaries working.

This commit is contained in:
eeh 2001-02-11 01:10:24 +00:00
parent 6b949f72fb
commit 82ca5fba5b
12 changed files with 591 additions and 456 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_32_exec.h,v 1.1 2001/02/06 16:37:57 eeh Exp $ */
/* $NetBSD: svr4_32_exec.h,v 1.2 2001/02/11 01:10:24 eeh Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -39,10 +39,12 @@
#ifndef _SVR4_32_EXEC_H_
#define _SVR4_32_EXEC_H_
#undef SVR4_COMPAT_SOLARIS2
#ifdef SVR4_COMPAT_SOLARIS2
# define SVR4_32_AUX_ARGSIZ howmany(sizeof(Aux32Info) * 12, sizeof(char *))
# define SVR4_32_AUX_ARGSIZ howmany((sizeof(Aux32Info) * 15) + 256, \
sizeof(netbsd32_charp))
#else
# define SVR4_32_AUX_ARGSIZ howmany(sizeof(Aux32Info) * 8, sizeof(char *))
# define SVR4_32_AUX_ARGSIZ howmany(sizeof(Aux32Info) * 8, sizeof(netbsd32_charp))
#endif
void *svr4_32_copyargs __P((struct exec_package *, struct ps_strings *,
@ -58,7 +60,11 @@ void *svr4_32_copyargs __P((struct exec_package *, struct ps_strings *,
* Here programs load at 0x00010000, so I load the interpreter far after
* the end of the data segment.
*/
#if 1
#define SVR4_32_INTERP_ADDR 0x10000000
#else
#define SVR4_32_INTERP_ADDR 0xff3c0000U
#endif
#endif
#ifndef SVR4_32_INTERP_ADDR

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_32_exec_elf32.c,v 1.1 2001/02/06 16:37:57 eeh Exp $ */
/* $NetBSD: svr4_32_exec_elf32.c,v 1.2 2001/02/11 01:10:24 eeh Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -68,6 +68,10 @@
* lots of fancy specialized support.
*/
int sun_flags = EF_SPARC_SUN_US1|EF_SPARC_32PLUS;
int sun_hwcap = (AV_SPARC_HWMUL_32x32|AV_SPARC_HWDIV_32x32|AV_SPARC_HWFSMULD);
#if 0
void *
svr4_32_copyargs(pack, arginfo, stack, argp)
struct exec_package *pack;
@ -76,7 +80,7 @@ svr4_32_copyargs(pack, arginfo, stack, argp)
void *argp;
{
size_t len;
AuxInfo ai[14+(256/4)], *a, *platform=NULL, *exec=NULL;
AuxInfo ai[SVR4_32_AUX_ARGSIZ], *a, *platform=NULL, *exec=NULL;
struct elf_args *ap;
extern char platform_type[32];
@ -97,10 +101,127 @@ svr4_32_copyargs(pack, arginfo, stack, argp)
platform = a; /* Patch this later. */
a++;
a->a_type = AT_SUN_EXECNAME;
exec = a; /* Patch this later. */
if (pack->ep_ndp->ni_cnd.cn_flags & HASBUF) {
a->a_type = AT_SUN_EXECNAME;
exec = a; /* Patch this later. */
a++;
}
a->a_type = AT_PHDR;
a->a_v = ap->arg_phaddr;
a++;
a->a_type = AT_PHENT;
a->a_v = ap->arg_phentsize;
a++;
a->a_type = AT_PHNUM;
a->a_v = ap->arg_phnum;
a++;
a->a_type = AT_ENTRY;
a->a_v = ap->arg_entry;
a++;
a->a_type = AT_BASE;
a->a_v = ap->arg_interp;
a++;
if (sun_flags) {
a->a_type = AT_FLAGS;
a->a_v = sun_flags;
a++;
}
a->a_type = AT_PAGESZ;
a->a_v = PAGE_SIZE;
a++;
a->a_type = AT_SUN_UID;
a->a_v = p->p_ucred->cr_uid;
a++;
a->a_type = AT_SUN_RUID;
a->a_v = p->p_cred->p_ruid;
a++;
a->a_type = AT_SUN_GID;
a->a_v = p->p_ucred->cr_gid;
a++;
a->a_type = AT_SUN_RGID;
a->a_v = p->p_cred->p_rgid;
a++;
if (sun_hwcap) {
a->a_type = AT_SUN_HWCAP;
a->a_v = sun_hwcap;
a++;
}
free((char *)ap, M_TEMP);
pack->ep_emul_arg = NULL;
}
a->a_type = AT_NULL;
a->a_v = 0;
a++;
len = (a - ai) * sizeof(AuxInfo);
if (platform) {
char *ptr = (char *)a;
const char *path = NULL;
/* Copy out the platform name. */
platform->a_v = (u_long)stack + len;
/* XXXX extremely inefficient.... */
strcpy(ptr, platform_type);
ptr += strlen(platform_type) + 1;
len += strlen(platform_type) + 1;
if (exec) {
path = pack->ep_ndp->ni_cnd.cn_pnbuf;
/* Copy out the file we're executing. */
exec->a_v = (u_long)stack + len;
strcpy(ptr, path);
len += strlen(ptr)+1;
}
/* Round to 32-bits */
len = (len+7)&~0x7L;
}
if (copyout(ai, stack, len))
return NULL;
stack = (caddr_t)stack + len;
return stack;
}
#else
void *
svr4_32_copyargs(pack, arginfo, stack, argp)
struct exec_package *pack;
struct ps_strings *arginfo;
void *stack;
void *argp;
{
size_t len;
AuxInfo ai[SVR4_32_AUX_ARGSIZ], *a;
struct elf_args *ap;
stack = netbsd32_copyargs(pack, arginfo, stack, argp);
if (!stack)
return NULL;
a = ai;
/*
* Push extra arguments on the stack needed by dynamically
* linked binaries
*/
if ((ap = (struct elf_args *)pack->ep_emul_arg)) {
a->a_type = AT_PHDR;
a->a_v = ap->arg_phaddr;
a++;
@ -121,29 +242,15 @@ svr4_32_copyargs(pack, arginfo, stack, argp)
a->a_v = ap->arg_interp;
a++;
a->a_type = AT_FLAGS;
a->a_v = 0; /* XXXX -- what are these? */
a++;
a->a_type = AT_ENTRY;
a->a_v = ap->arg_entry;
a++;
a->a_type = AT_SUN_UID;
a->a_v = p->p_ucred->cr_uid;
a++;
a->a_type = AT_SUN_RUID;
a->a_v = p->p_cred->p_ruid;
a++;
a->a_type = AT_SUN_GID;
a->a_v = p->p_ucred->cr_gid;
a++;
a->a_type = AT_SUN_RGID;
a->a_v = p->p_cred->p_rgid;
a++;
if (sun_flags) {
a->a_type = AT_FLAGS;
a->a_v = sun_flags;
a++;
}
free((char *)ap, M_TEMP);
pack->ep_emul_arg = NULL;
@ -154,30 +261,13 @@ svr4_32_copyargs(pack, arginfo, stack, argp)
a++;
len = (a - ai) * sizeof(AuxInfo);
if (platform) {
char *ptr = (char *)a;
/* Copy out the platform name. */
platform->a_v = (u_long)ptr;
strncpy(ptr, platform_type, 32);
ptr += 33;
len += 33;
/* Copy out the file we're executing. */
exec->a_v = (u_long)ptr;
strcpy(ptr, pack->ep_name);
len += strlen(pack->ep_name)+1;
/* Round to 32-bits */
len = (len+7)&~0x7L;
}
if (copyout(ai, stack, len))
return NULL;
stack = (caddr_t)stack + len;
return stack;
}
#endif
int
svr4_32_elf32_probe(p, epp, eh, itp, pos)

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_32_lwp.c,v 1.1 2001/02/06 16:37:58 eeh Exp $ */
/* $NetBSD: svr4_32_lwp.c,v 1.2 2001/02/11 01:10:24 eeh Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -122,7 +122,7 @@ svr4_32_sys__lwp_create(p, v, retval)
(void)sigprocmask1(pt, SIG_BLOCK, &ss, 0);
}
if ((error = copyin(SCARG(uap, uc), &uc, sizeof(uc))) != 0)
if ((error = copyin((caddr_t)(u_long)SCARG(uap, uc), &uc, sizeof(uc))) != 0)
return error;
if ((error = svr4_32_setcontext(pt, &uc)) != 0)
@ -161,8 +161,8 @@ svr4_32_sys__lwp_info(p, v, retval)
TIMEVAL_TO_TIMESPEC(&p->p_stats->p_ru.ru_stime, &lwpinfo.lwp_stime);
TIMEVAL_TO_TIMESPEC(&p->p_stats->p_ru.ru_utime, &lwpinfo.lwp_utime);
if ((error = copyout(&lwpinfo, SCARG(uap, lwpinfo), sizeof(lwpinfo))) ==
-1)
if ((error = copyout(&lwpinfo, (caddr_t)(u_long)SCARG(uap, lwpinfo),
sizeof(lwpinfo))) == -1)
return error;
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_32_misc.c,v 1.1 2001/02/06 16:37:58 eeh Exp $ */
/* $NetBSD: svr4_32_misc.c,v 1.2 2001/02/11 01:10:24 eeh Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -517,7 +517,7 @@ svr4_32_sys_mmap(p, v, retval)
SCARG(&mm, addr) = (void *)(u_long)SCARG(uap, addr);
SCARG(&mm, pos) = SCARG(uap, pos);
rp = (void *) round_page((vaddr_t)p->p_vmspace->vm_daddr + MAXDSIZ);
rp = (void *)(u_long) round_page((u_int32_t)(u_long)p->p_vmspace->vm_daddr + MAXDSIZ);
if ((SCARG(&mm, flags) & MAP_FIXED) == 0 &&
SCARG(&mm, addr) != 0 && SCARG(&mm, addr) < rp)
SCARG(&mm, addr) = rp;
@ -1684,3 +1684,24 @@ bad:
PNBUF_PUT(nd.ni_cnd.cn_pnbuf);
return error;
}
/*
* Close a file descriptor.
*/
/* ARGSUSED */
int
svr4_32_close(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct svr4_32_close_args /* {
syscallarg(int) fd;
} */ *uap = v;
int fd = SCARG(uap, fd);
struct filedesc *fdp = p->p_fd;
if ((u_int)fd >= fdp->fd_nfiles)
return (EBADF);
return (fdrelease(p, fd));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_32_stat.c,v 1.1 2001/02/06 16:37:58 eeh Exp $ */
/* $NetBSD: svr4_32_stat.c,v 1.2 2001/02/11 01:10:24 eeh Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -128,9 +128,12 @@ bsd_to_svr4_32_xstat(st, st4)
st4->st_gid = st->st_gid;
st4->st_rdev = bsd_to_svr4_dev_t(st->st_rdev);
st4->st_size = st->st_size;
st4->st_atim = st->st_atimespec;
st4->st_mtim = st->st_mtimespec;
st4->st_ctim = st->st_ctimespec;
st4->st_atim.tv_sec = st->st_atimespec.tv_sec;
st4->st_atim.tv_nsec = st->st_atimespec.tv_nsec;
st4->st_mtim.tv_sec = st->st_mtimespec.tv_sec;
st4->st_mtim.tv_nsec = st->st_mtimespec.tv_nsec;
st4->st_ctim.tv_sec = st->st_ctimespec.tv_sec;
st4->st_ctim.tv_nsec = st->st_ctimespec.tv_nsec;
st4->st_blksize = st->st_blksize;
st4->st_blocks = st->st_blocks;
strcpy(st4->st_fstype, "unknown");
@ -151,10 +154,12 @@ bsd_to_svr4_32_stat64(st, st4)
st4->st_gid = st->st_gid;
st4->st_rdev = bsd_to_svr4_dev_t(st->st_rdev);
st4->st_size = st->st_size;
st4->st_atim = st->st_atimespec;
st4->st_mtim = st->st_mtimespec;
st4->st_ctim = st->st_ctimespec;
st4->st_blksize = st->st_blksize;
st4->st_atim.tv_sec = st->st_atimespec.tv_sec;
st4->st_atim.tv_nsec = st->st_atimespec.tv_nsec;
st4->st_mtim.tv_sec = st->st_mtimespec.tv_sec;
st4->st_mtim.tv_nsec = st->st_mtimespec.tv_nsec;
st4->st_ctim.tv_sec = st->st_ctimespec.tv_sec;
st4->st_ctim.tv_nsec = st->st_ctimespec.tv_nsec;
st4->st_blocks = st->st_blocks;
strcpy(st4->st_fstype, "unknown");
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_32_stream.c,v 1.1 2001/02/06 16:37:59 eeh Exp $ */
/* $NetBSD: svr4_32_stream.c,v 1.2 2001/02/11 01:10:24 eeh Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -1518,7 +1518,8 @@ svr4_32_sys_putmsg(p, v, retval)
return EBADF;
if (SCARG(uap, ctl) != NULL) {
if ((error = copyin(SCARG(uap, ctl), &ctl, sizeof(ctl))) != 0)
if ((error = copyin((caddr_t)(u_long)SCARG(uap, ctl),
&ctl, sizeof(ctl))) != 0)
return error;
}
else
@ -1695,7 +1696,8 @@ svr4_32_sys_getmsg(p, v, retval)
return EBADF;
if (SCARG(uap, ctl) != NULL) {
if ((error = copyin(SCARG(uap, ctl), &ctl, sizeof(ctl))) != 0)
if ((error = copyin((caddr_t)(u_long)SCARG(uap, ctl),
&ctl, sizeof(ctl))) != 0)
return error;
}
else {
@ -1981,7 +1983,8 @@ svr4_32_sys_getmsg(p, v, retval)
ctl.len)) != 0)
return error;
if ((error = copyout(&ctl, SCARG(uap, ctl), sizeof(ctl))) != 0)
if ((error = copyout(&ctl, (caddr_t)(u_long)SCARG(uap, ctl),
sizeof(ctl))) != 0)
return error;
}

View File

@ -1,17 +1,17 @@
/* $NetBSD: svr4_32_syscall.h,v 1.1 2001/02/06 16:37:59 eeh Exp $ */
/* $NetBSD: svr4_32_syscall.h,v 1.2 2001/02/11 01:10:25 eeh Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.48 2000/12/09 05:27:30 mycroft Exp
* created from NetBSD: syscalls.master,v 1.1 2001/02/06 16:38:01 eeh Exp
*/
/* syscall: "syscall" ret: "int" args: */
#define SVR4_32_SYS_syscall 0
/* syscall: "exit" ret: "int" args: "int" */
#define SVR4_32_SYS_exit 1
/* syscall: "netbsd32_exit" ret: "int" args: "int" */
#define SVR4_32_SYS_netbsd32_exit 1
/* syscall: "fork" ret: "int" args: */
#define SVR4_32_SYS_fork 2
@ -25,8 +25,8 @@
/* syscall: "open" ret: "int" args: "const netbsd32_charp" "int" "int" */
#define SVR4_32_SYS_open 5
/* syscall: "close" ret: "int" args: "int" */
#define SVR4_32_SYS_close 6
/* syscall: "svr4_32_close" ret: "int" args: "int" */
#define SVR4_32_SYS_svr4_32_close 6
/* syscall: "wait" ret: "int" args: "netbsd32_intp" */
#define SVR4_32_SYS_wait 7
@ -64,17 +64,17 @@
/* syscall: "stat" ret: "int" args: "const netbsd32_charp" "svr4_32_statp" */
#define SVR4_32_SYS_stat 18
/* syscall: "lseek" ret: "netbsd32_long" args: "int" "long" "int" */
/* syscall: "lseek" ret: "netbsd32_long" args: "int" "netbsd32_long" "int" */
#define SVR4_32_SYS_lseek 19
/* syscall: "getpid" ret: "pid_t" args: */
#define SVR4_32_SYS_getpid 20
/* syscall: "setuid" ret: "int" args: "uid_t" */
#define SVR4_32_SYS_setuid 23
/* syscall: "netbsd32_setuid" ret: "int" args: "uid_t" */
#define SVR4_32_SYS_netbsd32_setuid 23
/* syscall: "getuid" ret: "uid_t" args: */
#define SVR4_32_SYS_getuid 24
/* syscall: "getuid_with_euid" ret: "uid_t" args: */
#define SVR4_32_SYS_getuid_with_euid 24
/* syscall: "alarm" ret: "int" args: "unsigned" */
#define SVR4_32_SYS_alarm 27
@ -103,8 +103,8 @@
/* syscall: "pgrpsys" ret: "int" args: "int" "int" "int" */
#define SVR4_32_SYS_pgrpsys 39
/* syscall: "dup" ret: "int" args: "u_int" */
#define SVR4_32_SYS_dup 41
/* syscall: "netbsd32_dup" ret: "int" args: "u_int" */
#define SVR4_32_SYS_netbsd32_dup 41
/* syscall: "pipe" ret: "int" args: */
#define SVR4_32_SYS_pipe 42
@ -112,11 +112,11 @@
/* syscall: "times" ret: "int" args: "svr4_32_tms_tp" */
#define SVR4_32_SYS_times 43
/* syscall: "setgid" ret: "int" args: "gid_t" */
#define SVR4_32_SYS_setgid 46
/* syscall: "netbsd32_setgid" ret: "int" args: "gid_t" */
#define SVR4_32_SYS_netbsd32_setgid 46
/* syscall: "getgid" ret: "gid_t" args: */
#define SVR4_32_SYS_getgid 47
/* syscall: "getgid_with_egid" ret: "gid_t" args: */
#define SVR4_32_SYS_getgid_with_egid 47
/* syscall: "signal" ret: "int" args: "int" "svr4_sig_t" */
#define SVR4_32_SYS_signal 48
@ -139,14 +139,14 @@
/* syscall: "utssys" ret: "int" args: "netbsd32_voidp" "netbsd32_voidp" "int" "netbsd32_voidp" */
#define SVR4_32_SYS_utssys 57
/* syscall: "fsync" ret: "int" args: "int" */
#define SVR4_32_SYS_fsync 58
/* syscall: "netbsd32_fsync" ret: "int" args: "int" */
#define SVR4_32_SYS_netbsd32_fsync 58
/* syscall: "netbsd32_execve" ret: "int" args: "const netbsd32_charp" "netbsd32_charpp" "netbsd32_charpp" */
#define SVR4_32_SYS_netbsd32_execve 59
/* syscall: "umask" ret: "int" args: "int" */
#define SVR4_32_SYS_umask 60
/* syscall: "netbsd32_umask" ret: "int" args: "int" */
#define SVR4_32_SYS_netbsd32_umask 60
/* syscall: "netbsd32_chroot" ret: "int" args: "const netbsd32_charp" */
#define SVR4_32_SYS_netbsd32_chroot 61
@ -154,7 +154,7 @@
/* syscall: "fcntl" ret: "int" args: "int" "int" "netbsd32_charp" */
#define SVR4_32_SYS_fcntl 62
/* syscall: "ulimit" ret: "netbsd32_long" args: "int" "long" */
/* syscall: "ulimit" ret: "netbsd32_long" args: "int" "netbsd32_long" */
#define SVR4_32_SYS_ulimit 63
/* 70 is obsolete advfs */
@ -200,8 +200,8 @@
/* syscall: "netbsd32_setgroups" ret: "int" args: "int" "const netbsd32_gid_tp" */
#define SVR4_32_SYS_netbsd32_setgroups 92
/* syscall: "fchmod" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_fchmod 93
/* syscall: "netbsd32_fchmod" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_netbsd32_fchmod 93
/* syscall: "fchown" ret: "int" args: "int" "int" "int" */
#define SVR4_32_SYS_fchown 94
@ -293,8 +293,8 @@
/* syscall: "uname" ret: "int" args: "svr4_32_utsnamep" "int" */
#define SVR4_32_SYS_uname 135
/* syscall: "setegid" ret: "int" args: "gid_t" */
#define SVR4_32_SYS_setegid 136
/* syscall: "netbsd32_setegid" ret: "int" args: "gid_t" */
#define SVR4_32_SYS_netbsd32_setegid 136
/* syscall: "sysconfig" ret: "int" args: "int" */
#define SVR4_32_SYS_sysconfig 137
@ -305,8 +305,8 @@
/* syscall: "systeminfo" ret: "netbsd32_long" args: "int" "netbsd32_charp" "netbsd32_long" */
#define SVR4_32_SYS_systeminfo 139
/* syscall: "seteuid" ret: "int" args: "uid_t" */
#define SVR4_32_SYS_seteuid 141
/* syscall: "netbsd32_seteuid" ret: "int" args: "uid_t" */
#define SVR4_32_SYS_netbsd32_seteuid 141
/* syscall: "fork1" ret: "int" args: */
#define SVR4_32_SYS_fork1 143
@ -314,8 +314,8 @@
/* syscall: "_lwp_info" ret: "int" args: "svr4_32_lwpinfop" */
#define SVR4_32_SYS__lwp_info 145
/* syscall: "fchroot" ret: "int" args: "int" */
#define SVR4_32_SYS_fchroot 153
/* syscall: "netbsd32_fchroot" ret: "int" args: "int" */
#define SVR4_32_SYS_netbsd32_fchroot 153
/* syscall: "utimes" ret: "int" args: "const netbsd32_charp" "netbsd32_timevalp_t" */
#define SVR4_32_SYS_utimes 154
@ -380,11 +380,11 @@
/* syscall: "facl" ret: "int" args: "int" "int" "int" "svr4_32_aclent_tp" */
#define SVR4_32_SYS_facl 200
/* syscall: "setreuid" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_setreuid 202
/* syscall: "netbsd32_setreuid" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_netbsd32_setreuid 202
/* syscall: "setregid" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_setregid 203
/* syscall: "netbsd32_setregid" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_netbsd32_setregid 203
/* syscall: "resolvepath" ret: "int" args: "const netbsd32_charp" "netbsd32_charp" "netbsd32_size_t" */
#define SVR4_32_SYS_resolvepath 209
@ -437,17 +437,17 @@
/* syscall: "netbsd32_bind" ret: "int" args: "int" "const netbsd32_sockaddrp_t" "int" */
#define SVR4_32_SYS_netbsd32_bind 232
/* syscall: "listen" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_listen 233
/* syscall: "netbsd32_listen" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_netbsd32_listen 233
/* syscall: "accept" ret: "int" args: "int" "netbsd32_sockaddrp_t" "netbsd32_intp" */
#define SVR4_32_SYS_accept 234
/* syscall: "compat_43_netbsd32_oaccept" ret: "int" args: "int" "netbsd32_sockaddrp_t" "netbsd32_intp" */
#define SVR4_32_SYS_compat_43_netbsd32_oaccept 234
/* syscall: "netbsd32_connect" ret: "int" args: "int" "const netbsd32_sockaddrp_t" "int" */
#define SVR4_32_SYS_netbsd32_connect 235
/* syscall: "shutdown" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_shutdown 236
/* syscall: "netbsd32_shutdown" ret: "int" args: "int" "int" */
#define SVR4_32_SYS_netbsd32_shutdown 236
/* syscall: "recv" ret: "int" args: "int" "netbsd32_caddr_t" "int" "int" */
#define SVR4_32_SYS_recv 237

View File

@ -1,10 +1,10 @@
/* $NetBSD: svr4_32_syscallargs.h,v 1.1 2001/02/06 16:37:59 eeh Exp $ */
/* $NetBSD: svr4_32_syscallargs.h,v 1.2 2001/02/11 01:10:25 eeh Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.48 2000/12/09 05:27:30 mycroft Exp
* created from NetBSD: syscalls.master,v 1.1 2001/02/06 16:38:01 eeh Exp
*/
#ifndef _SVR4_32_SYS__SYSCALLARGS_H_
@ -32,6 +32,10 @@ struct svr4_32_sys_open_args {
syscallarg(int) mode;
};
struct svr4_32_close_args {
syscallarg(int) fd;
};
struct svr4_32_sys_wait_args {
syscallarg(netbsd32_intp) status;
};
@ -157,7 +161,7 @@ struct svr4_32_sys_fcntl_args {
struct svr4_32_sys_ulimit_args {
syscallarg(int) cmd;
syscallarg(long) newlimit;
syscallarg(netbsd32_long) newlimit;
};
struct svr4_32_sys_getdents_args {
@ -496,12 +500,12 @@ struct svr4_32_sys_socket_args {
*/
int sys_nosys(struct proc *, void *, register_t *);
int sys_exit(struct proc *, void *, register_t *);
int netbsd32_exit(struct proc *, void *, register_t *);
int sys_fork(struct proc *, void *, register_t *);
int netbsd32_read(struct proc *, void *, register_t *);
int netbsd32_write(struct proc *, void *, register_t *);
int svr4_32_sys_open(struct proc *, void *, register_t *);
int sys_close(struct proc *, void *, register_t *);
int svr4_32_close(struct proc *, void *, register_t *);
int svr4_32_sys_wait(struct proc *, void *, register_t *);
int svr4_32_sys_creat(struct proc *, void *, register_t *);
int netbsd32_link(struct proc *, void *, register_t *);
@ -516,8 +520,8 @@ int svr4_32_sys_break(struct proc *, void *, register_t *);
int svr4_32_sys_stat(struct proc *, void *, register_t *);
int compat_43_sys_lseek(struct proc *, void *, register_t *);
int sys_getpid(struct proc *, void *, register_t *);
int sys_setuid(struct proc *, void *, register_t *);
int sys_getuid(struct proc *, void *, register_t *);
int netbsd32_setuid(struct proc *, void *, register_t *);
int sys_getuid_with_euid(struct proc *, void *, register_t *);
int svr4_32_sys_alarm(struct proc *, void *, register_t *);
int svr4_32_sys_fstat(struct proc *, void *, register_t *);
int svr4_32_sys_pause(struct proc *, void *, register_t *);
@ -527,11 +531,11 @@ int svr4_32_sys_nice(struct proc *, void *, register_t *);
int sys_sync(struct proc *, void *, register_t *);
int svr4_32_sys_kill(struct proc *, void *, register_t *);
int svr4_32_sys_pgrpsys(struct proc *, void *, register_t *);
int sys_dup(struct proc *, void *, register_t *);
int netbsd32_dup(struct proc *, void *, register_t *);
int sys_pipe(struct proc *, void *, register_t *);
int svr4_32_sys_times(struct proc *, void *, register_t *);
int sys_setgid(struct proc *, void *, register_t *);
int sys_getgid(struct proc *, void *, register_t *);
int netbsd32_setgid(struct proc *, void *, register_t *);
int sys_getgid_with_egid(struct proc *, void *, register_t *);
int svr4_32_sys_signal(struct proc *, void *, register_t *);
#ifdef SYSVMSG
int svr4_32_sys_msgsys(struct proc *, void *, register_t *);
@ -548,9 +552,9 @@ int svr4_32_sys_semsys(struct proc *, void *, register_t *);
#endif
int svr4_32_sys_ioctl(struct proc *, void *, register_t *);
int svr4_32_sys_utssys(struct proc *, void *, register_t *);
int sys_fsync(struct proc *, void *, register_t *);
int netbsd32_fsync(struct proc *, void *, register_t *);
int netbsd32_execve(struct proc *, void *, register_t *);
int sys_umask(struct proc *, void *, register_t *);
int netbsd32_umask(struct proc *, void *, register_t *);
int netbsd32_chroot(struct proc *, void *, register_t *);
int svr4_32_sys_fcntl(struct proc *, void *, register_t *);
int svr4_32_sys_ulimit(struct proc *, void *, register_t *);
@ -565,8 +569,8 @@ int netbsd32_symlink(struct proc *, void *, register_t *);
int netbsd32_readlink(struct proc *, void *, register_t *);
int netbsd32_getgroups(struct proc *, void *, register_t *);
int netbsd32_setgroups(struct proc *, void *, register_t *);
int sys_fchmod(struct proc *, void *, register_t *);
int sys___posix_fchown(struct proc *, void *, register_t *);
int netbsd32_fchmod(struct proc *, void *, register_t *);
int netbsd32___posix_fchown(struct proc *, void *, register_t *);
int svr4_32_sys_sigprocmask(struct proc *, void *, register_t *);
int svr4_32_sys_sigsuspend(struct proc *, void *, register_t *);
int svr4_32_sys_sigaltstack(struct proc *, void *, register_t *);
@ -596,14 +600,14 @@ int netbsd32_lchown(struct proc *, void *, register_t *);
int svr4_32_sys_memcntl(struct proc *, void *, register_t *);
int netbsd32___posix_rename(struct proc *, void *, register_t *);
int svr4_32_sys_uname(struct proc *, void *, register_t *);
int sys_setegid(struct proc *, void *, register_t *);
int netbsd32_setegid(struct proc *, void *, register_t *);
int svr4_32_sys_sysconfig(struct proc *, void *, register_t *);
int netbsd32_adjtime(struct proc *, void *, register_t *);
int svr4_32_sys_systeminfo(struct proc *, void *, register_t *);
int sys_seteuid(struct proc *, void *, register_t *);
int netbsd32_seteuid(struct proc *, void *, register_t *);
int sys_fork(struct proc *, void *, register_t *);
int svr4_32_sys__lwp_info(struct proc *, void *, register_t *);
int sys_fchroot(struct proc *, void *, register_t *);
int netbsd32_fchroot(struct proc *, void *, register_t *);
int svr4_32_sys_utimes(struct proc *, void *, register_t *);
int svr4_32_sys_vhangup(struct proc *, void *, register_t *);
int svr4_32_sys_gettimeofday(struct proc *, void *, register_t *);
@ -625,8 +629,8 @@ int svr4_32_sys_acl(struct proc *, void *, register_t *);
int svr4_32_sys_auditsys(struct proc *, void *, register_t *);
int netbsd32_nanosleep(struct proc *, void *, register_t *);
int svr4_32_sys_facl(struct proc *, void *, register_t *);
int sys_setreuid(struct proc *, void *, register_t *);
int sys_setregid(struct proc *, void *, register_t *);
int netbsd32_setreuid(struct proc *, void *, register_t *);
int netbsd32_setregid(struct proc *, void *, register_t *);
int svr4_32_sys_resolvepath(struct proc *, void *, register_t *);
int svr4_32_sys_getdents64(struct proc *, void *, register_t *);
int svr4_32_sys_mmap64(struct proc *, void *, register_t *);
@ -644,10 +648,10 @@ int svr4_32_sys_open64(struct proc *, void *, register_t *);
int svr4_32_sys_socket(struct proc *, void *, register_t *);
int netbsd32_socketpair(struct proc *, void *, register_t *);
int netbsd32_bind(struct proc *, void *, register_t *);
int sys_listen(struct proc *, void *, register_t *);
int compat_43_sys_accept(struct proc *, void *, register_t *);
int netbsd32_listen(struct proc *, void *, register_t *);
int compat_43_netbsd32_oaccept(struct proc *, void *, register_t *);
int netbsd32_connect(struct proc *, void *, register_t *);
int sys_shutdown(struct proc *, void *, register_t *);
int netbsd32_shutdown(struct proc *, void *, register_t *);
int compat_43_sys_recv(struct proc *, void *, register_t *);
int compat_43_sys_recvfrom(struct proc *, void *, register_t *);
int compat_43_sys_recvmsg(struct proc *, void *, register_t *);

View File

@ -1,10 +1,10 @@
/* $NetBSD: svr4_32_syscalls.c,v 1.1 2001/02/06 16:37:59 eeh Exp $ */
/* $NetBSD: svr4_32_syscalls.c,v 1.2 2001/02/11 01:10:25 eeh Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.48 2000/12/09 05:27:30 mycroft Exp
* created from NetBSD: syscalls.master,v 1.1 2001/02/06 16:38:01 eeh Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -32,12 +32,12 @@
const char *const svr4_32_syscallnames[] = {
"syscall", /* 0 = syscall */
"exit", /* 1 = exit */
"netbsd32_exit", /* 1 = netbsd32_exit */
"fork", /* 2 = fork */
"netbsd32_read", /* 3 = netbsd32_read */
"netbsd32_write", /* 4 = netbsd32_write */
"open", /* 5 = open */
"close", /* 6 = close */
"svr4_32_close", /* 6 = svr4_32_close */
"wait", /* 7 = wait */
"creat", /* 8 = creat */
"netbsd32_link", /* 9 = netbsd32_link */
@ -54,8 +54,8 @@ const char *const svr4_32_syscallnames[] = {
"getpid", /* 20 = getpid */
"#21 (unimplemented old_mount)", /* 21 = unimplemented old_mount */
"#22 (unimplemented System V umount)", /* 22 = unimplemented System V umount */
"setuid", /* 23 = setuid */
"getuid", /* 24 = getuid */
"netbsd32_setuid", /* 23 = netbsd32_setuid */
"getuid_with_euid", /* 24 = getuid_with_euid */
"#25 (unimplemented stime)", /* 25 = unimplemented stime */
"#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */
"alarm", /* 27 = alarm */
@ -72,13 +72,13 @@ const char *const svr4_32_syscallnames[] = {
"#38 (unimplemented fstatfs)", /* 38 = unimplemented fstatfs */
"pgrpsys", /* 39 = pgrpsys */
"#40 (unimplemented xenix)", /* 40 = unimplemented xenix */
"dup", /* 41 = dup */
"netbsd32_dup", /* 41 = netbsd32_dup */
"pipe", /* 42 = pipe */
"times", /* 43 = times */
"#44 (unimplemented profil)", /* 44 = unimplemented profil */
"#45 (unimplemented plock)", /* 45 = unimplemented plock */
"setgid", /* 46 = setgid */
"getgid", /* 47 = getgid */
"netbsd32_setgid", /* 46 = netbsd32_setgid */
"getgid_with_egid", /* 47 = getgid_with_egid */
"signal", /* 48 = signal */
#ifdef SYSVMSG
"msgsys", /* 49 = msgsys */
@ -101,9 +101,9 @@ const char *const svr4_32_syscallnames[] = {
"#55 (unimplemented uadmin)", /* 55 = unimplemented uadmin */
"#56 (unimplemented exch)", /* 56 = unimplemented exch */
"utssys", /* 57 = utssys */
"fsync", /* 58 = fsync */
"netbsd32_fsync", /* 58 = netbsd32_fsync */
"netbsd32_execve", /* 59 = netbsd32_execve */
"umask", /* 60 = umask */
"netbsd32_umask", /* 60 = netbsd32_umask */
"netbsd32_chroot", /* 61 = netbsd32_chroot */
"fcntl", /* 62 = fcntl */
"ulimit", /* 63 = ulimit */
@ -136,7 +136,7 @@ const char *const svr4_32_syscallnames[] = {
"netbsd32_readlink", /* 90 = netbsd32_readlink */
"netbsd32_getgroups", /* 91 = netbsd32_getgroups */
"netbsd32_setgroups", /* 92 = netbsd32_setgroups */
"fchmod", /* 93 = fchmod */
"netbsd32_fchmod", /* 93 = netbsd32_fchmod */
"fchown", /* 94 = fchown */
"sigprocmask", /* 95 = sigprocmask */
"sigsuspend", /* 96 = sigsuspend */
@ -179,12 +179,12 @@ const char *const svr4_32_syscallnames[] = {
"#133 (unimplemented putpmsg)", /* 133 = unimplemented putpmsg */
"rename", /* 134 = rename */
"uname", /* 135 = uname */
"setegid", /* 136 = setegid */
"netbsd32_setegid", /* 136 = netbsd32_setegid */
"sysconfig", /* 137 = sysconfig */
"netbsd32_adjtime", /* 138 = netbsd32_adjtime */
"systeminfo", /* 139 = systeminfo */
"#140 (unimplemented)", /* 140 = unimplemented */
"seteuid", /* 141 = seteuid */
"netbsd32_seteuid", /* 141 = netbsd32_seteuid */
"#142 (unimplemented vtrace)", /* 142 = unimplemented vtrace */
"fork1", /* 143 = fork1 */
"#144 (unimplemented sigtimedwait)", /* 144 = unimplemented sigtimedwait */
@ -196,7 +196,7 @@ const char *const svr4_32_syscallnames[] = {
"#150 (unimplemented)", /* 150 = unimplemented */
"#151 (unimplemented)", /* 151 = unimplemented */
"#152 (unimplemented modctl)", /* 152 = unimplemented modctl */
"fchroot", /* 153 = fchroot */
"netbsd32_fchroot", /* 153 = netbsd32_fchroot */
"utimes", /* 154 = utimes */
"vhangup", /* 155 = vhangup */
"gettimeofday", /* 156 = gettimeofday */
@ -245,8 +245,8 @@ const char *const svr4_32_syscallnames[] = {
"netbsd32_nanosleep", /* 199 = netbsd32_nanosleep */
"facl", /* 200 = facl */
"#201 (unimplemented door)", /* 201 = unimplemented door */
"setreuid", /* 202 = setreuid */
"setregid", /* 203 = setregid */
"netbsd32_setreuid", /* 202 = netbsd32_setreuid */
"netbsd32_setregid", /* 203 = netbsd32_setregid */
"#204 (unimplemented install_utrap)", /* 204 = unimplemented install_utrap */
"#205 (unimplemented signotify)", /* 205 = unimplemented signotify */
"#206 (unimplemented schedctl)", /* 206 = unimplemented schedctl */
@ -276,10 +276,10 @@ const char *const svr4_32_syscallnames[] = {
"socket", /* 230 = socket */
"netbsd32_socketpair", /* 231 = netbsd32_socketpair */
"netbsd32_bind", /* 232 = netbsd32_bind */
"listen", /* 233 = listen */
"accept", /* 234 = accept */
"netbsd32_listen", /* 233 = netbsd32_listen */
"compat_43_netbsd32_oaccept", /* 234 = compat_43_netbsd32_oaccept */
"netbsd32_connect", /* 235 = netbsd32_connect */
"shutdown", /* 236 = shutdown */
"netbsd32_shutdown", /* 236 = netbsd32_shutdown */
"recv", /* 237 = recv */
"recvfrom", /* 238 = recvfrom */
"recvmsg", /* 239 = recvmsg */

View File

@ -1,10 +1,10 @@
/* $NetBSD: svr4_32_sysent.c,v 1.1 2001/02/06 16:37:59 eeh Exp $ */
/* $NetBSD: svr4_32_sysent.c,v 1.2 2001/02/11 01:10:25 eeh Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.48 2000/12/09 05:27:30 mycroft Exp
* created from NetBSD: syscalls.master,v 1.1 2001/02/06 16:38:01 eeh Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -31,537 +31,537 @@
#define s(type) sizeof(type)
struct sysent svr4_32_sysent[] = {
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 0 = syscall */
{ 1, s(struct sys_exit_args),
sys_exit }, /* 1 = exit */
{ 0, 0,
{ 1, s(struct netbsd32_exit_args), 0,
netbsd32_exit }, /* 1 = netbsd32_exit */
{ 0, 0, 0,
sys_fork }, /* 2 = fork */
{ 3, s(struct netbsd32_read_args),
{ 3, s(struct netbsd32_read_args), 0,
netbsd32_read }, /* 3 = netbsd32_read */
{ 3, s(struct netbsd32_write_args),
{ 3, s(struct netbsd32_write_args), 0,
netbsd32_write }, /* 4 = netbsd32_write */
{ 3, s(struct svr4_32_sys_open_args),
{ 3, s(struct svr4_32_sys_open_args), 0,
svr4_32_sys_open }, /* 5 = open */
{ 1, s(struct sys_close_args),
sys_close }, /* 6 = close */
{ 1, s(struct svr4_32_sys_wait_args),
{ 1, s(struct svr4_32_close_args), 0,
svr4_32_close }, /* 6 = svr4_32_close */
{ 1, s(struct svr4_32_sys_wait_args), 0,
svr4_32_sys_wait }, /* 7 = wait */
{ 2, s(struct svr4_32_sys_creat_args),
{ 2, s(struct svr4_32_sys_creat_args), 0,
svr4_32_sys_creat }, /* 8 = creat */
{ 2, s(struct netbsd32_link_args),
{ 2, s(struct netbsd32_link_args), 0,
netbsd32_link }, /* 9 = netbsd32_link */
{ 1, s(struct netbsd32_unlink_args),
{ 1, s(struct netbsd32_unlink_args), 0,
netbsd32_unlink }, /* 10 = netbsd32_unlink */
{ 2, s(struct svr4_32_sys_execv_args),
{ 2, s(struct svr4_32_sys_execv_args), 0,
svr4_32_sys_execv }, /* 11 = execv */
{ 1, s(struct netbsd32_chdir_args),
{ 1, s(struct netbsd32_chdir_args), 0,
netbsd32_chdir }, /* 12 = netbsd32_chdir */
{ 1, s(struct svr4_32_sys_time_args),
{ 1, s(struct svr4_32_sys_time_args), 0,
svr4_32_sys_time }, /* 13 = time */
{ 3, s(struct svr4_32_sys_mknod_args),
{ 3, s(struct svr4_32_sys_mknod_args), 0,
svr4_32_sys_mknod }, /* 14 = mknod */
{ 2, s(struct netbsd32_chmod_args),
{ 2, s(struct netbsd32_chmod_args), 0,
netbsd32_chmod }, /* 15 = netbsd32_chmod */
{ 3, s(struct netbsd32___posix_chown_args),
{ 3, s(struct netbsd32___posix_chown_args), 0,
netbsd32___posix_chown }, /* 16 = chown */
{ 1, s(struct svr4_32_sys_break_args),
{ 1, s(struct svr4_32_sys_break_args), 0,
svr4_32_sys_break }, /* 17 = break */
{ 2, s(struct svr4_32_sys_stat_args),
{ 2, s(struct svr4_32_sys_stat_args), 0,
svr4_32_sys_stat }, /* 18 = stat */
{ 3, s(struct compat_43_sys_lseek_args),
{ 3, s(struct compat_43_sys_lseek_args), 0,
compat_43_sys_lseek }, /* 19 = lseek */
{ 0, 0,
{ 0, 0, 0,
sys_getpid }, /* 20 = getpid */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 21 = unimplemented old_mount */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 22 = unimplemented System V umount */
{ 1, s(struct sys_setuid_args),
sys_setuid }, /* 23 = setuid */
{ 0, 0,
sys_getuid }, /* 24 = getuid */
{ 0, 0,
{ 1, s(struct netbsd32_setuid_args), 0,
netbsd32_setuid }, /* 23 = netbsd32_setuid */
{ 0, 0, 0,
sys_getuid_with_euid }, /* 24 = getuid_with_euid */
{ 0, 0, 0,
sys_nosys }, /* 25 = unimplemented stime */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 26 = unimplemented ptrace */
{ 1, s(struct svr4_32_sys_alarm_args),
{ 1, s(struct svr4_32_sys_alarm_args), 0,
svr4_32_sys_alarm }, /* 27 = alarm */
{ 2, s(struct svr4_32_sys_fstat_args),
{ 2, s(struct svr4_32_sys_fstat_args), 0,
svr4_32_sys_fstat }, /* 28 = fstat */
{ 0, 0,
{ 0, 0, 0,
svr4_32_sys_pause }, /* 29 = pause */
{ 2, s(struct svr4_32_sys_utime_args),
{ 2, s(struct svr4_32_sys_utime_args), 0,
svr4_32_sys_utime }, /* 30 = utime */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 31 = unimplemented was stty */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 32 = unimplemented was gtty */
{ 2, s(struct svr4_32_sys_access_args),
{ 2, s(struct svr4_32_sys_access_args), 0,
svr4_32_sys_access }, /* 33 = access */
{ 1, s(struct svr4_32_sys_nice_args),
{ 1, s(struct svr4_32_sys_nice_args), 0,
svr4_32_sys_nice }, /* 34 = nice */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 35 = unimplemented statfs */
{ 0, 0,
{ 0, 0, 0,
sys_sync }, /* 36 = sync */
{ 2, s(struct svr4_32_sys_kill_args),
{ 2, s(struct svr4_32_sys_kill_args), 0,
svr4_32_sys_kill }, /* 37 = kill */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 38 = unimplemented fstatfs */
{ 3, s(struct svr4_32_sys_pgrpsys_args),
{ 3, s(struct svr4_32_sys_pgrpsys_args), 0,
svr4_32_sys_pgrpsys }, /* 39 = pgrpsys */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 40 = unimplemented xenix */
{ 1, s(struct sys_dup_args),
sys_dup }, /* 41 = dup */
{ 0, 0,
{ 1, s(struct netbsd32_dup_args), 0,
netbsd32_dup }, /* 41 = netbsd32_dup */
{ 0, 0, 0,
sys_pipe }, /* 42 = pipe */
{ 1, s(struct svr4_32_sys_times_args),
{ 1, s(struct svr4_32_sys_times_args), 0,
svr4_32_sys_times }, /* 43 = times */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 44 = unimplemented profil */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 45 = unimplemented plock */
{ 1, s(struct sys_setgid_args),
sys_setgid }, /* 46 = setgid */
{ 0, 0,
sys_getgid }, /* 47 = getgid */
{ 2, s(struct svr4_32_sys_signal_args),
{ 1, s(struct netbsd32_setgid_args), 0,
netbsd32_setgid }, /* 46 = netbsd32_setgid */
{ 0, 0, 0,
sys_getgid_with_egid }, /* 47 = getgid_with_egid */
{ 2, s(struct svr4_32_sys_signal_args), 0,
svr4_32_sys_signal }, /* 48 = signal */
#ifdef SYSVMSG
{ 5, s(struct svr4_32_sys_msgsys_args),
{ 5, s(struct svr4_32_sys_msgsys_args), 0,
svr4_32_sys_msgsys }, /* 49 = msgsys */
#else
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 49 = unimplemented msgsys */
#endif
{ 2, s(struct svr4_32_sys_sysarch_args),
{ 2, s(struct svr4_32_sys_sysarch_args), 0,
svr4_32_sys_sysarch }, /* 50 = sysarch */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 51 = unimplemented acct */
#ifdef SYSVSHM
{ 4, s(struct svr4_32_sys_shmsys_args),
{ 4, s(struct svr4_32_sys_shmsys_args), 0,
svr4_32_sys_shmsys }, /* 52 = shmsys */
#else
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 52 = unimplemented shmsys */
#endif
#ifdef SYSVSEM
{ 5, s(struct svr4_32_sys_semsys_args),
{ 5, s(struct svr4_32_sys_semsys_args), 0,
svr4_32_sys_semsys }, /* 53 = semsys */
#else
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 53 = unimplemented semsys */
#endif
{ 3, s(struct svr4_32_sys_ioctl_args),
{ 3, s(struct svr4_32_sys_ioctl_args), 0,
svr4_32_sys_ioctl }, /* 54 = ioctl */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 55 = unimplemented uadmin */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 56 = unimplemented exch */
{ 4, s(struct svr4_32_sys_utssys_args),
{ 4, s(struct svr4_32_sys_utssys_args), 0,
svr4_32_sys_utssys }, /* 57 = utssys */
{ 1, s(struct sys_fsync_args),
sys_fsync }, /* 58 = fsync */
{ 3, s(struct netbsd32_execve_args),
{ 1, s(struct netbsd32_fsync_args), 0,
netbsd32_fsync }, /* 58 = netbsd32_fsync */
{ 3, s(struct netbsd32_execve_args), 0,
netbsd32_execve }, /* 59 = netbsd32_execve */
{ 1, s(struct sys_umask_args),
sys_umask }, /* 60 = umask */
{ 1, s(struct netbsd32_chroot_args),
{ 1, s(struct netbsd32_umask_args), 0,
netbsd32_umask }, /* 60 = netbsd32_umask */
{ 1, s(struct netbsd32_chroot_args), 0,
netbsd32_chroot }, /* 61 = netbsd32_chroot */
{ 3, s(struct svr4_32_sys_fcntl_args),
{ 3, s(struct svr4_32_sys_fcntl_args), 0,
svr4_32_sys_fcntl }, /* 62 = fcntl */
{ 2, s(struct svr4_32_sys_ulimit_args),
{ 2, s(struct svr4_32_sys_ulimit_args), 0,
svr4_32_sys_ulimit }, /* 63 = ulimit */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 64 = unimplemented reserved for unix/pc */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 65 = unimplemented reserved for unix/pc */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 66 = unimplemented reserved for unix/pc */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 67 = unimplemented reserved for unix/pc */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 68 = unimplemented reserved for unix/pc */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 69 = unimplemented reserved for unix/pc */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 70 = obsolete advfs */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 71 = obsolete unadvfs */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 72 = obsolete rmount */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 73 = obsolete rumount */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 74 = obsolete rfstart */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 75 = obsolete sigret */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 76 = obsolete rdebug */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 77 = obsolete rfstop */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 78 = unimplemented rfsys */
{ 1, s(struct netbsd32_rmdir_args),
{ 1, s(struct netbsd32_rmdir_args), 0,
netbsd32_rmdir }, /* 79 = netbsd32_rmdir */
{ 2, s(struct netbsd32_mkdir_args),
{ 2, s(struct netbsd32_mkdir_args), 0,
netbsd32_mkdir }, /* 80 = netbsd32_mkdir */
{ 3, s(struct svr4_32_sys_getdents_args),
{ 3, s(struct svr4_32_sys_getdents_args), 0,
svr4_32_sys_getdents }, /* 81 = getdents */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 82 = obsolete libattach */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 83 = obsolete libdetach */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 84 = unimplemented sysfs */
{ 4, s(struct svr4_32_sys_getmsg_args),
{ 4, s(struct svr4_32_sys_getmsg_args), 0,
svr4_32_sys_getmsg }, /* 85 = getmsg */
{ 4, s(struct svr4_32_sys_putmsg_args),
{ 4, s(struct svr4_32_sys_putmsg_args), 0,
svr4_32_sys_putmsg }, /* 86 = putmsg */
{ 3, s(struct netbsd32_poll_args),
{ 3, s(struct netbsd32_poll_args), 0,
netbsd32_poll }, /* 87 = netbsd32_poll */
{ 2, s(struct svr4_32_sys_lstat_args),
{ 2, s(struct svr4_32_sys_lstat_args), 0,
svr4_32_sys_lstat }, /* 88 = lstat */
{ 2, s(struct netbsd32_symlink_args),
{ 2, s(struct netbsd32_symlink_args), 0,
netbsd32_symlink }, /* 89 = netbsd32_symlink */
{ 3, s(struct netbsd32_readlink_args),
{ 3, s(struct netbsd32_readlink_args), 0,
netbsd32_readlink }, /* 90 = netbsd32_readlink */
{ 2, s(struct netbsd32_getgroups_args),
{ 2, s(struct netbsd32_getgroups_args), 0,
netbsd32_getgroups }, /* 91 = netbsd32_getgroups */
{ 2, s(struct netbsd32_setgroups_args),
{ 2, s(struct netbsd32_setgroups_args), 0,
netbsd32_setgroups }, /* 92 = netbsd32_setgroups */
{ 2, s(struct sys_fchmod_args),
sys_fchmod }, /* 93 = fchmod */
{ 3, s(struct sys___posix_fchown_args),
sys___posix_fchown }, /* 94 = fchown */
{ 3, s(struct svr4_32_sys_sigprocmask_args),
{ 2, s(struct netbsd32_fchmod_args), 0,
netbsd32_fchmod }, /* 93 = netbsd32_fchmod */
{ 3, s(struct netbsd32___posix_fchown_args), 0,
netbsd32___posix_fchown }, /* 94 = fchown */
{ 3, s(struct svr4_32_sys_sigprocmask_args), 0,
svr4_32_sys_sigprocmask }, /* 95 = sigprocmask */
{ 1, s(struct svr4_32_sys_sigsuspend_args),
{ 1, s(struct svr4_32_sys_sigsuspend_args), 0,
svr4_32_sys_sigsuspend }, /* 96 = sigsuspend */
{ 2, s(struct svr4_32_sys_sigaltstack_args),
{ 2, s(struct svr4_32_sys_sigaltstack_args), 0,
svr4_32_sys_sigaltstack }, /* 97 = sigaltstack */
{ 3, s(struct svr4_32_sys_sigaction_args),
{ 3, s(struct svr4_32_sys_sigaction_args), 0,
svr4_32_sys_sigaction }, /* 98 = sigaction */
{ 2, s(struct svr4_32_sys_sigpending_args),
{ 2, s(struct svr4_32_sys_sigpending_args), 0,
svr4_32_sys_sigpending }, /* 99 = sigpending */
{ 2, s(struct svr4_32_sys_context_args),
{ 2, s(struct svr4_32_sys_context_args), 0,
svr4_32_sys_context }, /* 100 = context */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 101 = unimplemented evsys */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 102 = unimplemented evtrapret */
{ 2, s(struct svr4_32_sys_statvfs_args),
{ 2, s(struct svr4_32_sys_statvfs_args), 0,
svr4_32_sys_statvfs }, /* 103 = statvfs */
{ 2, s(struct svr4_32_sys_fstatvfs_args),
{ 2, s(struct svr4_32_sys_fstatvfs_args), 0,
svr4_32_sys_fstatvfs }, /* 104 = fstatvfs */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 105 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 106 = unimplemented nfssvc */
{ 4, s(struct svr4_32_sys_waitsys_args),
{ 4, s(struct svr4_32_sys_waitsys_args), 0,
svr4_32_sys_waitsys }, /* 107 = waitsys */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 108 = unimplemented sigsendsys */
{ 5, s(struct svr4_32_sys_hrtsys_args),
{ 5, s(struct svr4_32_sys_hrtsys_args), 0,
svr4_32_sys_hrtsys }, /* 109 = hrtsys */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 110 = unimplemented acancel */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 111 = unimplemented async */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 112 = unimplemented priocntlsys */
{ 2, s(struct svr4_32_sys_pathconf_args),
{ 2, s(struct svr4_32_sys_pathconf_args), 0,
svr4_32_sys_pathconf }, /* 113 = pathconf */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 114 = unimplemented mincore */
{ 6, s(struct svr4_32_sys_mmap_args),
{ 6, s(struct svr4_32_sys_mmap_args), 0,
svr4_32_sys_mmap }, /* 115 = mmap */
{ 3, s(struct netbsd32_mprotect_args),
{ 3, s(struct netbsd32_mprotect_args), 0,
netbsd32_mprotect }, /* 116 = netbsd32_mprotect */
{ 2, s(struct netbsd32_munmap_args),
{ 2, s(struct netbsd32_munmap_args), 0,
netbsd32_munmap }, /* 117 = netbsd32_munmap */
{ 2, s(struct svr4_32_sys_fpathconf_args),
{ 2, s(struct svr4_32_sys_fpathconf_args), 0,
svr4_32_sys_fpathconf }, /* 118 = fpathconf */
{ 0, 0,
{ 0, 0, 0,
sys_vfork }, /* 119 = vfork */
{ 1, s(struct sys_fchdir_args),
{ 1, s(struct sys_fchdir_args), 0,
sys_fchdir }, /* 120 = fchdir */
{ 3, s(struct netbsd32_readv_args),
{ 3, s(struct netbsd32_readv_args), 0,
netbsd32_readv }, /* 121 = netbsd32_readv */
{ 3, s(struct netbsd32_writev_args),
{ 3, s(struct netbsd32_writev_args), 0,
netbsd32_writev }, /* 122 = netbsd32_writev */
{ 3, s(struct svr4_32_sys_xstat_args),
{ 3, s(struct svr4_32_sys_xstat_args), 0,
svr4_32_sys_xstat }, /* 123 = xstat */
{ 3, s(struct svr4_32_sys_lxstat_args),
{ 3, s(struct svr4_32_sys_lxstat_args), 0,
svr4_32_sys_lxstat }, /* 124 = lxstat */
{ 3, s(struct svr4_32_sys_fxstat_args),
{ 3, s(struct svr4_32_sys_fxstat_args), 0,
svr4_32_sys_fxstat }, /* 125 = fxstat */
{ 4, s(struct svr4_32_sys_xmknod_args),
{ 4, s(struct svr4_32_sys_xmknod_args), 0,
svr4_32_sys_xmknod }, /* 126 = xmknod */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 127 = unimplemented clocal */
{ 2, s(struct svr4_32_sys_setrlimit_args),
{ 2, s(struct svr4_32_sys_setrlimit_args), 0,
svr4_32_sys_setrlimit }, /* 128 = setrlimit */
{ 2, s(struct svr4_32_sys_getrlimit_args),
{ 2, s(struct svr4_32_sys_getrlimit_args), 0,
svr4_32_sys_getrlimit }, /* 129 = getrlimit */
{ 3, s(struct netbsd32_lchown_args),
{ 3, s(struct netbsd32_lchown_args), 0,
netbsd32_lchown }, /* 130 = lchown */
{ 6, s(struct svr4_32_sys_memcntl_args),
{ 6, s(struct svr4_32_sys_memcntl_args), 0,
svr4_32_sys_memcntl }, /* 131 = memcntl */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 132 = unimplemented getpmsg */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 133 = unimplemented putpmsg */
{ 2, s(struct netbsd32___posix_rename_args),
{ 2, s(struct netbsd32___posix_rename_args), 0,
netbsd32___posix_rename }, /* 134 = rename */
{ 2, s(struct svr4_32_sys_uname_args),
{ 2, s(struct svr4_32_sys_uname_args), 0,
svr4_32_sys_uname }, /* 135 = uname */
{ 1, s(struct sys_setegid_args),
sys_setegid }, /* 136 = setegid */
{ 1, s(struct svr4_32_sys_sysconfig_args),
{ 1, s(struct netbsd32_setegid_args), 0,
netbsd32_setegid }, /* 136 = netbsd32_setegid */
{ 1, s(struct svr4_32_sys_sysconfig_args), 0,
svr4_32_sys_sysconfig }, /* 137 = sysconfig */
{ 2, s(struct netbsd32_adjtime_args),
{ 2, s(struct netbsd32_adjtime_args), 0,
netbsd32_adjtime }, /* 138 = netbsd32_adjtime */
{ 3, s(struct svr4_32_sys_systeminfo_args),
{ 3, s(struct svr4_32_sys_systeminfo_args), 0,
svr4_32_sys_systeminfo }, /* 139 = systeminfo */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 140 = unimplemented */
{ 1, s(struct sys_seteuid_args),
sys_seteuid }, /* 141 = seteuid */
{ 0, 0,
{ 1, s(struct netbsd32_seteuid_args), 0,
netbsd32_seteuid }, /* 141 = netbsd32_seteuid */
{ 0, 0, 0,
sys_nosys }, /* 142 = unimplemented vtrace */
{ 0, 0,
{ 0, 0, 0,
sys_fork }, /* 143 = fork1 */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 144 = unimplemented sigtimedwait */
{ 1, s(struct svr4_32_sys__lwp_info_args),
{ 1, s(struct svr4_32_sys__lwp_info_args), 0,
svr4_32_sys__lwp_info }, /* 145 = _lwp_info */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 146 = unimplemented yield */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 147 = unimplemented lwp_sema_wait */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 148 = unimplemented lwp_sema_post */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 149 = unimplemented lwp_sema_trywait */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 150 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 151 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 152 = unimplemented modctl */
{ 1, s(struct sys_fchroot_args),
sys_fchroot }, /* 153 = fchroot */
{ 2, s(struct svr4_32_sys_utimes_args),
{ 1, s(struct netbsd32_fchroot_args), 0,
netbsd32_fchroot }, /* 153 = netbsd32_fchroot */
{ 2, s(struct svr4_32_sys_utimes_args), 0,
svr4_32_sys_utimes }, /* 154 = utimes */
{ 0, 0,
{ 0, 0, 0,
svr4_32_sys_vhangup }, /* 155 = vhangup */
{ 1, s(struct svr4_32_sys_gettimeofday_args),
{ 1, s(struct svr4_32_sys_gettimeofday_args), 0,
svr4_32_sys_gettimeofday }, /* 156 = gettimeofday */
{ 2, s(struct netbsd32_getitimer_args),
{ 2, s(struct netbsd32_getitimer_args), 0,
netbsd32_getitimer }, /* 157 = netbsd32_getitimer */
{ 3, s(struct netbsd32_setitimer_args),
{ 3, s(struct netbsd32_setitimer_args), 0,
netbsd32_setitimer }, /* 158 = netbsd32_setitimer */
{ 3, s(struct svr4_32_sys__lwp_create_args),
{ 3, s(struct svr4_32_sys__lwp_create_args), 0,
svr4_32_sys__lwp_create }, /* 159 = _lwp_create */
{ 0, 0,
{ 0, 0, 0,
svr4_32_sys__lwp_exit }, /* 160 = _lwp_exit */
{ 1, s(struct svr4_32_sys__lwp_suspend_args),
{ 1, s(struct svr4_32_sys__lwp_suspend_args), 0,
svr4_32_sys__lwp_suspend }, /* 161 = _lwp_suspend */
{ 1, s(struct svr4_32_sys__lwp_continue_args),
{ 1, s(struct svr4_32_sys__lwp_continue_args), 0,
svr4_32_sys__lwp_continue }, /* 162 = _lwp_continue */
{ 2, s(struct svr4_32_sys__lwp_kill_args),
{ 2, s(struct svr4_32_sys__lwp_kill_args), 0,
svr4_32_sys__lwp_kill }, /* 163 = _lwp_kill */
{ 0, 0,
{ 0, 0, 0,
svr4_sys__lwp_self }, /* 164 = _lwp_self */
{ 0, 0,
{ 0, 0, 0,
svr4_32_sys__lwp_getprivate }, /* 165 = _lwp_getprivate */
{ 1, s(struct svr4_32_sys__lwp_setprivate_args),
{ 1, s(struct svr4_32_sys__lwp_setprivate_args), 0,
svr4_32_sys__lwp_setprivate }, /* 166 = _lwp_setprivate */
{ 2, s(struct svr4_32_sys__lwp_wait_args),
{ 2, s(struct svr4_32_sys__lwp_wait_args), 0,
svr4_32_sys__lwp_wait }, /* 167 = _lwp_wait */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 168 = unimplemented lwp_mutex_unlock */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 169 = unimplemented lwp_mutex_lock */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 170 = unimplemented lwp_cond_wait */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 171 = unimplemented lwp_cond_signal */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 172 = unimplemented lwp_cond_broadcast */
{ 4, s(struct svr4_32_sys_pread_args),
{ 4, s(struct svr4_32_sys_pread_args), 0,
svr4_32_sys_pread }, /* 173 = pread */
{ 4, s(struct svr4_32_sys_pwrite_args),
{ 4, s(struct svr4_32_sys_pwrite_args), 0,
svr4_32_sys_pwrite }, /* 174 = pwrite */
{ 4, s(struct svr4_32_sys_llseek_args),
{ 4, s(struct svr4_32_sys_llseek_args), 0,
svr4_32_sys_llseek }, /* 175 = llseek */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 176 = unimplemented inst_sync */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 177 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 178 = unimplemented kaio */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 179 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 180 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 181 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 182 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 183 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 184 = unimplemented tsolsys */
{ 4, s(struct svr4_32_sys_acl_args),
{ 4, s(struct svr4_32_sys_acl_args), 0,
svr4_32_sys_acl }, /* 185 = acl */
{ 6, s(struct svr4_32_sys_auditsys_args),
{ 6, s(struct svr4_32_sys_auditsys_args), 0,
svr4_32_sys_auditsys }, /* 186 = auditsys */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 187 = unimplemented processor_bind */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 188 = unimplemented processor_info */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 189 = unimplemented p_online */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 190 = unimplemented sigqueue */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 191 = unimplemented clock_gettime */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 192 = unimplemented clock_settime */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 193 = unimplemented clock_getres */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 194 = unimplemented timer_create */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 195 = unimplemented timer_delete */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 196 = unimplemented timer_settime */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 197 = unimplemented timer_gettime */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 198 = unimplemented timer_getoverrun */
{ 2, s(struct netbsd32_nanosleep_args),
{ 2, s(struct netbsd32_nanosleep_args), 0,
netbsd32_nanosleep }, /* 199 = netbsd32_nanosleep */
{ 4, s(struct svr4_32_sys_facl_args),
{ 4, s(struct svr4_32_sys_facl_args), 0,
svr4_32_sys_facl }, /* 200 = facl */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 201 = unimplemented door */
{ 2, s(struct sys_setreuid_args),
sys_setreuid }, /* 202 = setreuid */
{ 2, s(struct sys_setregid_args),
sys_setregid }, /* 203 = setregid */
{ 0, 0,
{ 2, s(struct netbsd32_setreuid_args), 0,
netbsd32_setreuid }, /* 202 = netbsd32_setreuid */
{ 2, s(struct netbsd32_setregid_args), 0,
netbsd32_setregid }, /* 203 = netbsd32_setregid */
{ 0, 0, 0,
sys_nosys }, /* 204 = unimplemented install_utrap */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 205 = unimplemented signotify */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 206 = unimplemented schedctl */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 207 = unimplemented pset */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 208 = unimplemented */
{ 3, s(struct svr4_32_sys_resolvepath_args),
{ 3, s(struct svr4_32_sys_resolvepath_args), 0,
svr4_32_sys_resolvepath }, /* 209 = resolvepath */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 210 = unimplemented signotifywait */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 211 = unimplemented lwp_sigredirect */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 212 = unimplemented lwp_alarm */
{ 3, s(struct svr4_32_sys_getdents64_args),
{ 3, s(struct svr4_32_sys_getdents64_args), 0,
svr4_32_sys_getdents64 }, /* 213 = getdents64 */
{ 6, s(struct svr4_32_sys_mmap64_args),
{ 6, s(struct svr4_32_sys_mmap64_args), 0,
svr4_32_sys_mmap64 }, /* 214 = mmap64 */
{ 2, s(struct svr4_32_sys_stat64_args),
{ 2, s(struct svr4_32_sys_stat64_args), 0,
svr4_32_sys_stat64 }, /* 215 = stat64 */
{ 2, s(struct svr4_32_sys_lstat64_args),
{ 2, s(struct svr4_32_sys_lstat64_args), 0,
svr4_32_sys_lstat64 }, /* 216 = lstat64 */
{ 2, s(struct svr4_32_sys_fstat64_args),
{ 2, s(struct svr4_32_sys_fstat64_args), 0,
svr4_32_sys_fstat64 }, /* 217 = fstat64 */
{ 2, s(struct svr4_32_sys_statvfs64_args),
{ 2, s(struct svr4_32_sys_statvfs64_args), 0,
svr4_32_sys_statvfs64 }, /* 218 = statvfs64 */
{ 2, s(struct svr4_32_sys_fstatvfs64_args),
{ 2, s(struct svr4_32_sys_fstatvfs64_args), 0,
svr4_32_sys_fstatvfs64 }, /* 219 = fstatvfs64 */
{ 2, s(struct svr4_32_sys_setrlimit64_args),
{ 2, s(struct svr4_32_sys_setrlimit64_args), 0,
svr4_32_sys_setrlimit64 }, /* 220 = setrlimit64 */
{ 2, s(struct svr4_32_sys_getrlimit64_args),
{ 2, s(struct svr4_32_sys_getrlimit64_args), 0,
svr4_32_sys_getrlimit64 }, /* 221 = getrlimit64 */
{ 4, s(struct svr4_32_sys_pread64_args),
{ 4, s(struct svr4_32_sys_pread64_args), 0,
svr4_32_sys_pread64 }, /* 222 = pread64 */
{ 4, s(struct svr4_32_sys_pwrite64_args),
{ 4, s(struct svr4_32_sys_pwrite64_args), 0,
svr4_32_sys_pwrite64 }, /* 223 = pwrite64 */
{ 2, s(struct svr4_32_sys_creat64_args),
{ 2, s(struct svr4_32_sys_creat64_args), 0,
svr4_32_sys_creat64 }, /* 224 = creat64 */
{ 3, s(struct svr4_32_sys_open64_args),
{ 3, s(struct svr4_32_sys_open64_args), 0,
svr4_32_sys_open64 }, /* 225 = open64 */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 226 = unimplemented rpcsys */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 227 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 228 = unimplemented */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 229 = unimplemented */
{ 3, s(struct svr4_32_sys_socket_args),
{ 3, s(struct svr4_32_sys_socket_args), 0,
svr4_32_sys_socket }, /* 230 = socket */
{ 4, s(struct netbsd32_socketpair_args),
{ 4, s(struct netbsd32_socketpair_args), 0,
netbsd32_socketpair }, /* 231 = netbsd32_socketpair */
{ 3, s(struct netbsd32_bind_args),
{ 3, s(struct netbsd32_bind_args), 0,
netbsd32_bind }, /* 232 = netbsd32_bind */
{ 2, s(struct sys_listen_args),
sys_listen }, /* 233 = listen */
{ 3, s(struct compat_43_sys_accept_args),
compat_43_sys_accept }, /* 234 = accept */
{ 3, s(struct netbsd32_connect_args),
{ 2, s(struct netbsd32_listen_args), 0,
netbsd32_listen }, /* 233 = netbsd32_listen */
{ 3, s(struct compat_43_netbsd32_oaccept_args), 0,
compat_43_netbsd32_oaccept }, /* 234 = compat_43_netbsd32_oaccept */
{ 3, s(struct netbsd32_connect_args), 0,
netbsd32_connect }, /* 235 = netbsd32_connect */
{ 2, s(struct sys_shutdown_args),
sys_shutdown }, /* 236 = shutdown */
{ 4, s(struct compat_43_sys_recv_args),
{ 2, s(struct netbsd32_shutdown_args), 0,
netbsd32_shutdown }, /* 236 = netbsd32_shutdown */
{ 4, s(struct compat_43_sys_recv_args), 0,
compat_43_sys_recv }, /* 237 = recv */
{ 6, s(struct compat_43_sys_recvfrom_args),
{ 6, s(struct compat_43_sys_recvfrom_args), 0,
compat_43_sys_recvfrom }, /* 238 = recvfrom */
{ 3, s(struct compat_43_sys_recvmsg_args),
{ 3, s(struct compat_43_sys_recvmsg_args), 0,
compat_43_sys_recvmsg }, /* 239 = recvmsg */
{ 4, s(struct compat_43_sys_send_args),
{ 4, s(struct compat_43_sys_send_args), 0,
compat_43_sys_send }, /* 240 = send */
{ 3, s(struct compat_43_sys_sendmsg_args),
{ 3, s(struct compat_43_sys_sendmsg_args), 0,
compat_43_sys_sendmsg }, /* 241 = sendmsg */
{ 6, s(struct netbsd32_sendto_args),
{ 6, s(struct netbsd32_sendto_args), 0,
netbsd32_sendto }, /* 242 = netbsd32_sendto */
{ 3, s(struct compat_43_sys_getpeername_args),
{ 3, s(struct compat_43_sys_getpeername_args), 0,
compat_43_sys_getpeername }, /* 243 = getpeername */
{ 3, s(struct compat_43_sys_getsockname_args),
{ 3, s(struct compat_43_sys_getsockname_args), 0,
compat_43_sys_getsockname }, /* 244 = getsockname */
{ 5, s(struct netbsd32_getsockopt_args),
{ 5, s(struct netbsd32_getsockopt_args), 0,
netbsd32_getsockopt }, /* 245 = netbsd32_getsockopt */
{ 5, s(struct netbsd32_setsockopt_args),
{ 5, s(struct netbsd32_setsockopt_args), 0,
netbsd32_setsockopt }, /* 246 = netbsd32_setsockopt */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 247 = unimplemented sockconfig */
{ 1, s(struct netbsd32_ntp_gettime_args),
{ 1, s(struct netbsd32_ntp_gettime_args), 0,
netbsd32_ntp_gettime }, /* 248 = netbsd32_ntp_gettime */
#if defined(NTP) || !defined(_KERNEL)
{ 1, s(struct netbsd32_ntp_adjtime_args),
{ 1, s(struct netbsd32_ntp_adjtime_args), 0,
netbsd32_ntp_adjtime }, /* 249 = netbsd32_ntp_adjtime */
#else
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 249 = excluded ntp_adjtime */
#endif
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 250 = filler */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 251 = filler */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 252 = filler */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 253 = filler */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 254 = filler */
{ 0, 0,
{ 0, 0, 0,
sys_nosys }, /* 255 = filler */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_32_types.h,v 1.1 2001/02/06 16:38:00 eeh Exp $ */
/* $NetBSD: svr4_32_types.h,v 1.2 2001/02/11 01:10:25 eeh Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@ typedef u_short svr4_32_o_gid_t;
typedef netbsd32_long svr4_32_clock_t;
typedef int svr4_32_key_t;
typedef struct timespec svr4_32_timestruc_t;
typedef struct netbsd32_timespec svr4_32_timestruc_t;
/* Pointer types used by svr4_32_syscallargs.h */
#define PTR typedef netbsd32_caddr_t

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.1 2001/02/06 16:38:01 eeh Exp $
$NetBSD: syscalls.master,v 1.2 2001/02/11 01:10:25 eeh Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@ -57,13 +57,13 @@
%%
0 NOARGS { int sys_nosys(void); } syscall
1 NOARGS { int sys_exit(int rval); }
1 NOARGS { int netbsd32_exit(int rval); }
2 NOARGS { int sys_fork(void); }
3 NOARGS { int netbsd32_read(int fd, netbsd32_charp buf, u_int nbyte); }
4 NOARGS { int netbsd32_write(int fd, netbsd32_charp buf, u_int nbyte); }
5 STD { int svr4_32_sys_open(const netbsd32_charp path, int flags, \
int mode); }
6 NOARGS { int sys_close(int fd); }
6 STD { int svr4_32_close(int fd); }
7 STD { int svr4_32_sys_wait(netbsd32_intp status); }
8 STD { int svr4_32_sys_creat(const netbsd32_charp path, int mode); }
9 NOARGS { int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); }
@ -79,15 +79,15 @@
17 STD { int svr4_32_sys_break(netbsd32_caddr_t nsize); }
18 STD { int svr4_32_sys_stat(const netbsd32_charp path, \
svr4_32_statp ub); }
19 NOARGS { netbsd32_long compat_43_sys_lseek(int fd, long offset, \
19 NOARGS { netbsd32_long compat_43_sys_lseek(int fd, netbsd32_long offset, \
int whence); }
20 NOARGS { pid_t sys_getpid(void); }
21 UNIMPL old_mount
22 UNIMPL System V umount
23 NOARGS { int sys_setuid(uid_t uid); }
24 NOARGS { uid_t sys_getuid(void); }
23 NOARGS { int netbsd32_setuid(uid_t uid); }
24 NOARGS { uid_t sys_getuid_with_euid(void); }
25 UNIMPL stime
26 UNIMPL ptrace
26 UNIMPL pcsample
27 STD { int svr4_32_sys_alarm(unsigned sec); }
28 STD { int svr4_32_sys_fstat(int fd, svr4_32_statp sb); }
29 STD { int svr4_32_sys_pause(void); }
@ -103,13 +103,13 @@
38 UNIMPL fstatfs
39 STD { int svr4_32_sys_pgrpsys(int cmd, int pid, int pgid); }
40 UNIMPL xenix
41 NOARGS { int sys_dup(u_int fd); }
41 NOARGS { int netbsd32_dup(u_int fd); }
42 NOARGS { int sys_pipe(void); }
43 STD { int svr4_32_sys_times(svr4_32_tms_tp tp); }
44 UNIMPL profil
45 UNIMPL plock
46 NOARGS { int sys_setgid(gid_t gid); }
47 NOARGS { gid_t sys_getgid(void); }
46 NOARGS { int netbsd32_setgid(gid_t gid); }
47 NOARGS { gid_t sys_getgid_with_egid(void); }
48 STD { int svr4_32_sys_signal(int signum, svr4_sig_t handler); }
#ifdef SYSVMSG
49 STD { int svr4_32_sys_msgsys(int what, int a2, int a3, \
@ -138,13 +138,13 @@
57 STD { int svr4_32_sys_utssys(netbsd32_voidp a1, \
netbsd32_voidp a2, int sel, \
netbsd32_voidp a3); }
58 NOARGS { int sys_fsync(int fd); }
58 NOARGS { int netbsd32_fsync(int fd); }
59 NOARGS { int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, \
netbsd32_charpp envp); }
60 NOARGS { int sys_umask(int newmask); }
60 NOARGS { int netbsd32_umask(int newmask); }
61 NOARGS { int netbsd32_chroot(const netbsd32_charp path); }
62 STD { int svr4_32_sys_fcntl(int fd, int cmd, netbsd32_charp arg); }
63 STD { netbsd32_long svr4_32_sys_ulimit(int cmd, long newlimit); }
63 STD { netbsd32_long svr4_32_sys_ulimit(int cmd, netbsd32_long newlimit); }
64 UNIMPL reserved for unix/pc
65 UNIMPL reserved for unix/pc
66 UNIMPL reserved for unix/pc
@ -179,8 +179,8 @@
90 NOARGS { int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
91 NOARGS { int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
92 NOARGS { int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); }
93 NOARGS { int sys_fchmod(int fd, int mode); }
94 NOARGS { int sys___posix_fchown(int fd, int uid, int gid); } \
93 NOARGS { int netbsd32_fchmod(int fd, int mode); }
94 NOARGS { int netbsd32___posix_fchown(int fd, int uid, int gid); } \
fchown
95 STD { int svr4_32_sys_sigprocmask(int how, \
const svr4_32_sigset_tp set, \
@ -203,7 +203,7 @@
svr4_32_statvfs_tp fs); }
104 STD { int svr4_32_sys_fstatvfs(int fd, \
svr4_32_statvfs_tp fs); }
105 UNIMPL
105 UNIMPL getloadavg
106 UNIMPL nfssvc
107 STD { int svr4_32_sys_waitsys(int grp, int id, \
svr4_32_siginfo_tp info, int options); }
@ -248,13 +248,13 @@
rename
135 STD { int svr4_32_sys_uname(svr4_32_utsnamep name, \
int dummy); }
136 NOARGS { int sys_setegid(gid_t egid); }
136 NOARGS { int netbsd32_setegid(gid_t egid); }
137 STD { int svr4_32_sys_sysconfig(int name); }
138 NOARGS { int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
139 STD { netbsd32_long svr4_32_sys_systeminfo(int what, netbsd32_charp buf, \
netbsd32_long len); }
140 UNIMPL
141 NOARGS { int sys_seteuid(uid_t euid); }
141 NOARGS { int netbsd32_seteuid(uid_t euid); }
142 UNIMPL vtrace
143 NOARGS { int sys_fork(void); } fork1
144 UNIMPL sigtimedwait
@ -264,9 +264,9 @@
148 UNIMPL lwp_sema_post
149 UNIMPL lwp_sema_trywait
150 UNIMPL
151 UNIMPL
151 UNIMPL corectl
152 UNIMPL modctl
153 NOARGS { int sys_fchroot(int fd); }
153 NOARGS { int netbsd32_fchroot(int fd); }
154 STD { int svr4_32_sys_utimes(const netbsd32_charp path, \
netbsd32_timevalp_t tptr); }
155 STD { int svr4_32_sys_vhangup(void); }
@ -286,7 +286,7 @@
166 STD { int svr4_32_sys__lwp_setprivate(netbsd32_voidp buffer); }
167 STD { int svr4_32_sys__lwp_wait(svr4_lwpid_t wait_for, \
svr4_32_lwpid_tp departed_lwp); }
168 UNIMPL lwp_mutex_unlock
168 UNIMPL lwp_mutex_wakeup
169 UNIMPL lwp_mutex_lock
170 UNIMPL lwp_cond_wait
171 UNIMPL lwp_cond_signal
@ -298,9 +298,9 @@
175 STD { svr4_32_off64_t svr4_32_sys_llseek(int fd, \
netbsd32_long offset1, netbsd32_long offset2, int whence); }
176 UNIMPL inst_sync
177 UNIMPL
177 UNIMPL srmlimitsys
178 UNIMPL kaio
179 UNIMPL
179 UNIMPL cpc
180 UNIMPL
181 UNIMPL
182 UNIMPL
@ -327,13 +327,13 @@
200 STD { int svr4_32_sys_facl(int fd, int cmd, int num, \
svr4_32_aclent_tp buf); }
201 UNIMPL door
202 NOARGS { int sys_setreuid(int ruid, int euid); }
203 NOARGS { int sys_setregid(int rgid, int egid); }
202 NOARGS { int netbsd32_setreuid(int ruid, int euid); }
203 NOARGS { int netbsd32_setregid(int rgid, int egid); }
204 UNIMPL install_utrap
205 UNIMPL signotify
206 UNIMPL schedctl
207 UNIMPL pset
208 UNIMPL
208 UNIMPL sparc_utrap_install
209 STD { int svr4_32_sys_resolvepath(const netbsd32_charp path, \
netbsd32_charp buf, netbsd32_size_t bufsiz); }
210 UNIMPL signotifywait
@ -376,12 +376,12 @@
int protocol, netbsd32_intp rsv); }
232 NOARGS { int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, \
int namelen); }
233 NOARGS { int sys_listen(int s, int backlog); }
234 NOARGS { int compat_43_sys_accept(int s, \
233 NOARGS { int netbsd32_listen(int s, int backlog); }
234 NOARGS { int compat_43_netbsd32_oaccept(int s, \
netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
235 NOARGS { int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, \
int namelen); }
236 NOARGS { int sys_shutdown(int s, int how); }
236 NOARGS { int netbsd32_shutdown(int s, int how); }
237 NOARGS { int compat_43_sys_recv(int s, netbsd32_caddr_t buf, int len, \
int flags); }
238 NOARGS { netbsd32_ssize_t compat_43_sys_recvfrom(int s, netbsd32_voidp buf, \
@ -412,3 +412,9 @@
#else
249 EXCL ntp_adjtime
#endif
250 UNIMPL lwp_mutex_unlock
251 UNIMPL lwp_mutex_trylock
252 UNIMPL lwp_mutex_init
253 UNIMPL cladm
254 UNIMPL lwp_sigtimedwait
255 UNIMPL umount2