Add netbsd32_compat_14.c

Rename everything from compat_netbsd32 -> netbsd32 so we don't have silly
names like compat_14_compat_netbsd32_sys_shmctl().
This commit is contained in:
eeh 1999-10-11 01:36:21 +00:00
parent 575aff5844
commit 1f45477db9
17 changed files with 2477 additions and 2104 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files.netbsd32,v 1.5 1999/04/24 19:17:33 eeh Exp $
# $NetBSD: files.netbsd32,v 1.6 1999/10/11 01:36:21 eeh Exp $
#
# config file description for machine-independent netbsd32 compat code.
# included by ports that need it.
@ -14,5 +14,6 @@ file compat/netbsd32/netbsd32_compat_09.c compat_netbsd32 & compat_09
file compat/netbsd32/netbsd32_compat_10.c compat_netbsd32 & compat_10
file compat/netbsd32/netbsd32_compat_12.c compat_netbsd32 & compat_12
file compat/netbsd32/netbsd32_compat_13.c compat_netbsd32 & compat_13
file compat/netbsd32/netbsd32_compat_14.c compat_netbsd32 & compat_14
file compat/netbsd32/netbsd32_compat_43.c compat_netbsd32 & compat_43
file compat/netbsd32/netbsd32_syscalls.c compat_netbsd32 & syscall_debug

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32.h,v 1.8 1999/07/12 21:55:20 kleink Exp $ */
/* $NetBSD: netbsd32.h,v 1.9 1999/10/11 01:36:22 eeh Exp $ */
/*
* Copyright (c) 1998 Matthew R. Green
@ -167,6 +167,15 @@ typedef u_int32_t netbsd32_rlimitp_t;
/* from <sys/ipc.h> */
typedef u_int32_t netbsd32_ipc_permp_t;
struct netbsd32_ipc_perm {
ushort cuid; /* creator user id */
ushort cgid; /* creator group id */
ushort uid; /* user id */
ushort gid; /* group id */
ushort mode; /* r/w permission */
ushort _seq; /* sequence # (to generate unique msg/sem/shm id) */
netbsd32_key_t _key; /* user specified msg/sem/shm key */
};
struct netbsd32_ipc_perm14 {
ushort cuid; /* creator user id */
ushort cgid; /* creator group id */
ushort uid; /* user id */
@ -188,8 +197,29 @@ struct netbsd32_msg {
};
typedef u_int32_t netbsd32_msqid_dsp_t;
typedef u_int32_t netbsd32_msgqnum_t;
typedef netbsd32_size_t netbsd32_msglen_t;
struct netbsd32_msqid_ds {
struct netbsd32_ipc_perm msg_perm; /* msg queue permission bits */
struct netbsd32_ipc_perm msg_perm; /* operation permission strucure */
netbsd32_msgqnum_t msg_qnum; /* number of messages in the queue */
netbsd32_msglen_t msg_qbytes; /* max # of bytes in the queue */
pid_t msg_lspid; /* process ID of last msgsend() */
pid_t msg_lrpid; /* process ID of last msgrcv() */
time_t msg_stime; /* time of last msgsend() */
time_t msg_rtime; /* time of last msgrcv() */
time_t msg_ctime; /* time of last change */
/*
* These members are private and used only in the internal
* implementation of this interface.
*/
netbsd32_msgp_t _msg_first; /* first message in the queue */
netbsd32_msgp_t _msg_last; /* last message in the queue */
netbsd32_msglen_t _msg_cbytes; /* # of bytes currently in queue */
};
struct netbsd32_msqid_ds14 {
struct netbsd32_ipc_perm14 msg_perm; /* msg queue permission bits */
netbsd32_msgp_t msg_first; /* first message in the queue */
netbsd32_msgp_t msg_last; /* last message in the queue */
netbsd32_u_long msg_cbytes; /* number of bytes in use on the queue */
@ -211,6 +241,19 @@ typedef u_int32_t netbsd32_semp_t;
typedef u_int32_t netbsd32_semid_dsp_t;
struct netbsd32_semid_ds {
struct netbsd32_ipc_perm sem_perm;/* operation permission struct */
unsigned short sem_nsems; /* number of sems in set */
time_t sem_otime; /* last operation time */
time_t sem_ctime; /* last change time */
/*
* These members are private and used only in the internal
* implementation of this interface.
*/
netbsd32_semp_t _sem_base; /* pointer to first semaphore in set */
};
struct netbsd32_semid_ds14 {
struct netbsd32_ipc_perm sem_perm;/* operation permission struct */
netbsd32_semp_t sem_base; /* pointer to first semaphore in set */
unsigned short sem_nsems; /* number of sems in set */
@ -248,7 +291,7 @@ struct netbsd32_shmid_ds {
time_t shm_atime; /* time of last shmat() */
time_t shm_dtime; /* time of last shmdt() */
time_t shm_ctime; /* time of last change by shmctl() */
netbsd32_voidp shm_internal; /* sysv stupidity */
netbsd32_voidp _shm_internal; /* sysv stupidity */
};
/* from <sys/signal.h> */
@ -423,7 +466,7 @@ typedef u_int32_t netbsd32_outsnamep_t;
* - type of pointer to above, normally u_int32_t
* void netbsd32_setregs(struct proc *p, struct exec_package *pack,
* u_long stack);
* int compat_netbsd32_sigreturn(struct proc *p, void *v,
* int netbsd32_sigreturn(struct proc *p, void *v,
* register_t *retval);
* void netbsd32_sendsig(sig_t catcher, int sig, int mask, u_long code);
* char netbsd32_esigcode[], netbsd32_sigcode[]

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_compat_09.c,v 1.3 1999/03/25 16:58:39 mrg Exp $ */
/* $NetBSD: netbsd32_compat_09.c,v 1.4 1999/10/11 01:36:22 eeh Exp $ */
/*
* Copyright (c) 1998 Matthew R. Green
@ -41,12 +41,12 @@
#include <compat/netbsd32/netbsd32_syscallargs.h>
int
compat_09_compat_netbsd32_ogetdomainname(p, v, retval)
compat_09_netbsd32_ogetdomainname(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_09_compat_netbsd32_ogetdomainname_args /* {
struct compat_09_netbsd32_ogetdomainname_args /* {
syscallarg(netbsd32_charp) domainname;
syscallarg(int) len;
} */ *uap = v;
@ -59,12 +59,12 @@ compat_09_compat_netbsd32_ogetdomainname(p, v, retval)
}
int
compat_09_compat_netbsd32_osetdomainname(p, v, retval)
compat_09_netbsd32_osetdomainname(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_09_compat_netbsd32_osetdomainname_args /* {
struct compat_09_netbsd32_osetdomainname_args /* {
syscallarg(netbsd32_charp) domainname;
syscallarg(int) len;
} */ *uap = v;
@ -79,12 +79,12 @@ compat_09_compat_netbsd32_osetdomainname(p, v, retval)
}
int
compat_09_compat_netbsd32_ouname(p, v, retval)
compat_09_netbsd32_ouname(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_09_compat_netbsd32_uname_args /* {
struct compat_09_netbsd32_uname_args /* {
syscallarg(netbsd32_outsnamep_t) name;
} */ *uap = v;
struct compat_09_sys_uname_args ua;

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_compat_10.c,v 1.3 1999/03/25 16:22:49 mrg Exp $ */
/* $NetBSD: netbsd32_compat_10.c,v 1.4 1999/10/11 01:36:22 eeh Exp $ */
/*
* Copyright (c) 1994 Adam Glass and Charles M. Hannum. All rights reserved.
@ -52,19 +52,19 @@
#ifdef SYSVSEM
int
compat_netbsd32_compat_10_sys_semsys(p, v, retval)
netbsd32_compat_10_sys_semsys(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_netbsd32_compat_10_sys_semsys_args /* {
struct netbsd32_compat_10_sys_semsys_args /* {
syscallarg(int) which;
syscallarg(int) a2;
syscallarg(int) a3;
syscallarg(int) a4;
syscallarg(int) a5;
} */ *uap = v;
struct sys___semctl_args /* {
struct compat_14_sys___semctl_args /* {
syscallarg(int) semid;
syscallarg(int) semnum;
syscallarg(int) cmd;
@ -93,8 +93,8 @@ compat_netbsd32_compat_10_sys_semsys(p, v, retval)
SCARG(&__semctl_args, arg) = stackgap_alloc(&sg,
sizeof(union semun *));
copyout(&SCARG(uap, a5), SCARG(&__semctl_args, arg),
sizeof(union semun));
return (sys___semctl(p, &__semctl_args, retval));
sizeof(union __semun));
return (compat_14_sys___semctl(p, &__semctl_args, retval));
case 1: /* semget() */
SCARG(&semget_args, key) = SCARG(uap, a2);
@ -120,12 +120,12 @@ compat_netbsd32_compat_10_sys_semsys(p, v, retval)
#ifdef SYSVSHM
int
compat_netbsd32_compat_10_sys_shmsys(p, v, retval)
netbsd32_compat_10_sys_shmsys(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_netbsd32_compat_10_sys_shmsys_args /* {
struct netbsd32_compat_10_sys_shmsys_args /* {
syscallarg(int) which;
syscallarg(int) a2;
syscallarg(int) a3;
@ -136,7 +136,7 @@ compat_netbsd32_compat_10_sys_shmsys(p, v, retval)
syscallarg(void *) shmaddr;
syscallarg(int) shmflg;
} */ shmat_args;
struct sys_shmctl_args /* {
struct compat_14_sys_shmctl_args /* {
syscallarg(int) shmid;
syscallarg(int) cmd;
syscallarg(struct shmid_ds *) buf;
@ -160,8 +160,8 @@ compat_netbsd32_compat_10_sys_shmsys(p, v, retval)
case 1: /* shmctl() */
SCARG(&shmctl_args, shmid) = SCARG(uap, a2);
SCARG(&shmctl_args, cmd) = SCARG(uap, a3);
SCARG(&shmctl_args, buf) = (struct shmid_ds *)SCARG(uap, a4);
return (sys_shmctl(p, &shmctl_args, retval));
SCARG(&shmctl_args, buf) = (struct shmid_ds14 *)SCARG(uap, a4);
return (compat_14_sys_shmctl(p, &shmctl_args, retval));
case 2: /* shmdt() */
SCARG(&shmdt_args, shmaddr) = (void *)SCARG(uap, a2);
@ -181,12 +181,12 @@ compat_netbsd32_compat_10_sys_shmsys(p, v, retval)
#ifdef SYSVMSG
int
compat_netbsd32_compat_10_sys_msgsys(p, v, retval)
netbsd32_compat_10_sys_msgsys(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_netbsd32_compat_10_sys_msgsys_args /* {
struct netbsd32_compat_10_sys_msgsys_args /* {
syscallarg(int) which;
syscallarg(int) a2;
syscallarg(int) a3;
@ -194,7 +194,7 @@ compat_netbsd32_compat_10_sys_msgsys(p, v, retval)
syscallarg(int) a5;
syscallarg(int) a6;
} */ *uap = v;
struct sys_msgctl_args /* {
struct compat_14_sys_msgctl_args /* {
syscallarg(int) msqid;
syscallarg(int) cmd;
syscallarg(struct msqid_ds *) buf;
@ -222,8 +222,8 @@ compat_netbsd32_compat_10_sys_msgsys(p, v, retval)
SCARG(&msgctl_args, msqid) = SCARG(uap, a2);
SCARG(&msgctl_args, cmd) = SCARG(uap, a3);
SCARG(&msgctl_args, buf) =
(struct msqid_ds *)SCARG(uap, a4);
return (sys_msgctl(p, &msgctl_args, retval));
(struct msqid_ds14 *)SCARG(uap, a4);
return (compat_14_sys_msgctl(p, &msgctl_args, retval));
case 1: /* msgget() */
SCARG(&msgget_args, key) = SCARG(uap, a2);

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_compat_12.c,v 1.5 1999/03/25 16:58:39 mrg Exp $ */
/* $NetBSD: netbsd32_compat_12.c,v 1.6 1999/10/11 01:36:22 eeh Exp $ */
/*
* Copyright (c) 1998 Matthew R. Green
@ -43,7 +43,7 @@
/* for use with {,fl}stat() */
static void
compat_netbsd32_stat12_to_netbsd32(sp12, sp32)
netbsd32_stat12_to_netbsd32(sp12, sp32)
struct stat12 *sp12;
struct netbsd32_stat12 *sp32;
{
@ -72,12 +72,12 @@ compat_netbsd32_stat12_to_netbsd32(sp12, sp32)
}
int
compat_12_compat_netbsd32_reboot(p, v, retval)
compat_12_netbsd32_reboot(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_12_compat_netbsd32_reboot_args /* {
struct compat_12_netbsd32_reboot_args /* {
syscallarg(int) opt;
} */ *uap = v;
struct compat_12_sys_reboot_args ua;
@ -87,12 +87,12 @@ compat_12_compat_netbsd32_reboot(p, v, retval)
}
int
compat_12_compat_netbsd32_msync(p, v, retval)
compat_12_netbsd32_msync(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_12_compat_netbsd32_msync_args /* {
struct compat_12_netbsd32_msync_args /* {
syscallarg(netbsd32_caddr_t) addr;
syscallarg(netbsd32_size_t) len;
} */ *uap = v;
@ -105,12 +105,12 @@ compat_12_compat_netbsd32_msync(p, v, retval)
}
int
compat_12_compat_netbsd32_oswapon(p, v, retval)
compat_12_netbsd32_oswapon(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_12_compat_netbsd32_oswapon_args /* {
struct compat_12_netbsd32_oswapon_args /* {
syscallarg(const netbsd32_charp) name;
} */ *uap = v;
struct sys_swapctl_args ua;
@ -122,12 +122,12 @@ compat_12_compat_netbsd32_oswapon(p, v, retval)
}
int
compat_12_compat_netbsd32_stat12(p, v, retval)
compat_12_netbsd32_stat12(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_12_compat_netbsd32_stat12_args /* {
struct compat_12_netbsd32_stat12_args /* {
syscallarg(const netbsd32_charp) path;
syscallarg(netbsd32_stat12p_t) ub;
} */ *uap = v;
@ -146,18 +146,18 @@ compat_12_compat_netbsd32_stat12(p, v, retval)
rv = compat_12_sys_stat(p, &ua, retval);
sp32 = (struct netbsd32_stat12 *)(u_long)SCARG(uap, ub);
compat_netbsd32_stat12_to_netbsd32(sp12, sp32);
netbsd32_stat12_to_netbsd32(sp12, sp32);
return (rv);
}
int
compat_12_compat_netbsd32_fstat12(p, v, retval)
compat_12_netbsd32_fstat12(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_12_compat_netbsd32_fstat12_args /* {
struct compat_12_netbsd32_fstat12_args /* {
syscallarg(int) fd;
syscallarg(netbsd32_stat12p_t) sb;
} */ *uap = v;
@ -172,18 +172,18 @@ compat_12_compat_netbsd32_fstat12(p, v, retval)
rv = compat_12_sys_fstat(p, &ua, retval);
sp32 = (struct netbsd32_stat12 *)(u_long)SCARG(uap, sb);
compat_netbsd32_stat12_to_netbsd32(sp12, sp32);
netbsd32_stat12_to_netbsd32(sp12, sp32);
return (rv);
}
int
compat_12_compat_netbsd32_lstat12(p, v, retval)
compat_12_netbsd32_lstat12(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_12_compat_netbsd32_lstat12_args /* {
struct compat_12_netbsd32_lstat12_args /* {
syscallarg(const netbsd32_charp) path;
syscallarg(netbsd32_stat12p_t) ub;
} */ *uap = v;
@ -202,18 +202,18 @@ compat_12_compat_netbsd32_lstat12(p, v, retval)
rv = compat_12_sys_lstat(p, &ua, retval);
sp32 = (struct netbsd32_stat12 *)(u_long)SCARG(uap, ub);
compat_netbsd32_stat12_to_netbsd32(sp12, sp32);
netbsd32_stat12_to_netbsd32(sp12, sp32);
return (rv);
}
int
compat_12_compat_netbsd32_getdirentries(p, v, retval)
compat_12_netbsd32_getdirentries(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_12_compat_netbsd32_getdirentries_args /* {
struct compat_12_netbsd32_getdirentries_args /* {
syscallarg(int) fd;
syscallarg(netbsd32_charp) buf;
syscallarg(u_int) count;

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_compat_13.c,v 1.3 1999/03/25 16:22:49 mrg Exp $ */
/* $NetBSD: netbsd32_compat_13.c,v 1.4 1999/10/11 01:36:22 eeh Exp $ */
/*
* Copyright (c) 1998 Matthew R. Green
@ -39,12 +39,12 @@
#include <compat/netbsd32/netbsd32_syscallargs.h>
int
compat_13_compat_netbsd32_sigaltstack13(p, v, retval)
compat_13_netbsd32_sigaltstack13(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_13_compat_netbsd32_sigaltstack13_args /* {
struct compat_13_netbsd32_sigaltstack13_args /* {
syscallarg(const netbsd32_sigaltstack13p_t) nss;
syscallarg(netbsd32_sigaltstack13p_t) oss;
} */ *uap = v;

View File

@ -0,0 +1,323 @@
/* $NetBSD: netbsd32_compat_14.c,v 1.1 1999/10/11 01:36:22 eeh Exp $ */
/*
* Copyright (c) 1999 Eduardo E. Horvath
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/msg.h>
#include <sys/sem.h>
#include <sys/shm.h>
#define SYSVMSG
#define SYSVSEM
#define SYSVSHM
#include <sys/syscallargs.h>
#include <compat/netbsd32/netbsd32.h>
#include <compat/netbsd32/netbsd32_syscallargs.h>
void
netbsd32_ipc_perm14_to_native(operm, perm)
struct netbsd32_ipc_perm14 *operm;
struct ipc_perm *perm;
{
#define CVT(x) perm->x = operm->x
CVT(uid);
CVT(gid);
CVT(cuid);
CVT(cgid);
CVT(mode);
#undef CVT
}
void
native_to_netbsd32_ipc_perm14(perm, operm)
struct ipc_perm *perm;
struct netbsd32_ipc_perm14 *operm;
{
#define CVT(x) operm->x = perm->x
CVT(uid);
CVT(gid);
CVT(cuid);
CVT(cgid);
CVT(mode);
#undef CVT
/*
* Not part of the API, but some programs might look at it.
*/
operm->seq = perm->_seq;
operm->key = (key_t)perm->_key;
}
void
netbsd32_msqid_ds14_to_native(omsqbuf, msqbuf)
struct netbsd32_msqid_ds14 *omsqbuf;
struct msqid_ds *msqbuf;
{
netbsd32_ipc_perm14_to_native(&omsqbuf->msg_perm, &msqbuf->msg_perm);
#define CVT(x) msqbuf->x = omsqbuf->x
CVT(msg_qnum);
CVT(msg_qbytes);
CVT(msg_lspid);
CVT(msg_lrpid);
CVT(msg_stime);
CVT(msg_rtime);
CVT(msg_ctime);
#undef CVT
}
void
native_to_netbsd32_msqid_ds14(msqbuf, omsqbuf)
struct msqid_ds *msqbuf;
struct netbsd32_msqid_ds14 *omsqbuf;
{
native_to_netbsd32_ipc_perm14(&msqbuf->msg_perm, &omsqbuf->msg_perm);
#define CVT(x) omsqbuf->x = msqbuf->x
CVT(msg_qnum);
CVT(msg_qbytes);
CVT(msg_lspid);
CVT(msg_lrpid);
CVT(msg_stime);
CVT(msg_rtime);
CVT(msg_ctime);
#undef CVT
/*
* Not part of the API, but some programs might look at it.
*/
omsqbuf->msg_cbytes = msqbuf->_msg_cbytes;
}
int
compat_14_netbsd32_sys_msgctl(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_14_netbsd32_msgctl_args /* {
syscallarg(int) msqid;
syscallarg(int) cmd;
syscallarg(struct msqid_ds14 *) buf;
} */ *uap = v;
struct msqid_ds msqbuf;
struct netbsd32_msqid_ds14 omsqbuf;
int cmd, error;
cmd = SCARG(uap, cmd);
if (cmd == IPC_SET) {
error = copyin(SCARG(uap, buf), &omsqbuf, sizeof(omsqbuf));
if (error)
return (error);
netbsd32_msqid_ds14_to_native(&omsqbuf, &msqbuf);
}
error = msgctl1(p, SCARG(uap, msqid), cmd,
(cmd == IPC_SET || cmd == IPC_STAT) ? &msqbuf : NULL);
if (error == 0 && cmd == IPC_STAT) {
native_to_netbsd32_msqid_ds14(&msqbuf, &omsqbuf);
error = copyout(&omsqbuf, SCARG(uap, buf), sizeof(omsqbuf));
}
return (error);
}
void
netbsd32_semid_ds14_to_native(osembuf, sembuf)
struct semid_ds14 *osembuf;
struct semid_ds *sembuf;
{
netbsd32_ipc_perm14_to_native(&osembuf->sem_perm, &sembuf->sem_perm);
#define CVT(x) sembuf->x = osembuf->x
CVT(sem_nsems);
CVT(sem_otime);
CVT(sem_ctime);
#undef CVT
}
void
native_to_netbsd32_semid_ds14(sembuf, osembuf)
struct semid_ds *sembuf;
struct semid_ds14 *osembuf;
{
native_to_netbsd32_ipc_perm14(&sembuf->sem_perm, &osembuf->sem_perm);
#define CVT(x) osembuf->x = sembuf->x
CVT(sem_nsems);
CVT(sem_otime);
CVT(sem_ctime);
#undef CVT
}
int
compat_14_netbsd32_sys___semctl(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_14_netbsd32___semctl_args /* {
syscallarg(int) semid;
syscallarg(int) semnum;
syscallarg(int) cmd;
syscallarg(union __semun *) arg;
} */ *uap = v;
union __semun arg;
struct semid_ds sembuf;
struct netbsd32_semid_ds14 osembuf;
int cmd, error;
void *pass_arg = NULL;
cmd = SCARG(uap, cmd);
switch (cmd) {
case IPC_SET:
case IPC_STAT:
pass_arg = &sembuf;
break;
case GETALL:
case SETVAL:
case SETALL:
pass_arg = &arg;
break;
}
if (pass_arg != NULL) {
error = copyin(SCARG(uap, arg), &arg, sizeof(arg));
if (error)
return (error);
if (cmd == IPC_SET) {
error = copyin(arg.buf, &osembuf, sizeof(osembuf));
if (error)
return (error);
netbsd32_semid_ds14_to_native(&osembuf, &sembuf);
}
}
error = semctl1(p, SCARG(uap, semid), SCARG(uap, semnum), cmd,
pass_arg, retval);
if (error == 0 && cmd == IPC_STAT) {
native_to_netbsd32_semid_ds14(&sembuf, &osembuf);
error = copyout(&osembuf, arg.buf, sizeof(osembuf));
}
return (error);
}
void
shmid_ds14_to_native(oshmbuf, shmbuf)
struct shmid_ds14 *oshmbuf;
struct shmid_ds *shmbuf;
{
ipc_perm14_to_native(&oshmbuf->shm_perm, &shmbuf->shm_perm);
#define CVT(x) shmbuf->x = oshmbuf->x
CVT(shm_segsz);
CVT(shm_lpid);
CVT(shm_cpid);
CVT(shm_nattch);
CVT(shm_atime);
CVT(shm_dtime);
CVT(shm_ctime);
#undef CVT
}
void
native_to_shmid_ds14(shmbuf, oshmbuf)
struct shmid_ds *shmbuf;
struct shmid_ds14 *oshmbuf;
{
native_to_ipc_perm14(&shmbuf->shm_perm, &oshmbuf->shm_perm);
#define CVT(x) oshmbuf->x = shmbuf->x
CVT(shm_segsz);
CVT(shm_lpid);
CVT(shm_cpid);
CVT(shm_nattch);
CVT(shm_atime);
CVT(shm_dtime);
CVT(shm_ctime);
#undef CVT
}
int
compat_14_netbsd32_sys_shmctl(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_14_netbsd32_shmctl_args /* {
syscallarg(int) shmid;
syscallarg(int) cmd;
syscallarg(struct shmid_ds14 *) buf;
} */ *uap = v;
struct shmid_ds shmbuf;
struct shmid_ds14 oshmbuf;
int cmd, error;
cmd = SCARG(uap, cmd);
if (cmd == IPC_SET) {
error = copyin(SCARG(uap, buf), &oshmbuf, sizeof(oshmbuf));
if (error)
return (error);
shmid_ds14_to_native(&oshmbuf, &shmbuf);
}
error = shmctl1(p, SCARG(uap, shmid), cmd,
(cmd == IPC_SET || cmd == IPC_STAT) ? &shmbuf : NULL);
if (error == 0 && cmd == IPC_STAT) {
native_to_shmid_ds14(&shmbuf, &oshmbuf);
error = copyout(&oshmbuf, SCARG(uap, buf), sizeof(oshmbuf));
}
return (error);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_compat_43.c,v 1.7 1999/04/14 02:50:38 mrg Exp $ */
/* $NetBSD: netbsd32_compat_43.c,v 1.8 1999/10/11 01:36:22 eeh Exp $ */
/*
* Copyright (c) 1998 Matthew R. Green
@ -73,12 +73,12 @@ netbsd32_from_stat43(sp43, sp32)
/* file system syscalls */
int
compat_43_compat_netbsd32_ocreat(p, v, retval)
compat_43_netbsd32_ocreat(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_ocreat_args /* {
struct compat_43_netbsd32_ocreat_args /* {
syscallarg(const netbsd32_charp) path;
syscallarg(mode_t) mode;
} */ *uap = v;
@ -95,12 +95,12 @@ compat_43_compat_netbsd32_ocreat(p, v, retval)
}
int
compat_43_compat_netbsd32_olseek(p, v, retval)
compat_43_netbsd32_olseek(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_olseek_args /* {
struct compat_43_netbsd32_olseek_args /* {
syscallarg(int) fd;
syscallarg(netbsd32_long) offset;
syscallarg(int) whence;
@ -119,12 +119,12 @@ compat_43_compat_netbsd32_olseek(p, v, retval)
}
int
compat_43_compat_netbsd32_stat43(p, v, retval)
compat_43_netbsd32_stat43(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_stat43_args /* {
struct compat_43_netbsd32_stat43_args /* {
syscallarg(const netbsd32_charp) path;
syscallarg(netbsd32_stat43p_t) ub;
} */ *uap = v;
@ -149,12 +149,12 @@ compat_43_compat_netbsd32_stat43(p, v, retval)
}
int
compat_43_compat_netbsd32_lstat43(p, v, retval)
compat_43_netbsd32_lstat43(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_lstat43_args /* {
struct compat_43_netbsd32_lstat43_args /* {
syscallarg(const netbsd32_charp) path;
syscallarg(netbsd32_stat43p_t) ub;
} */ *uap = v;
@ -179,12 +179,12 @@ compat_43_compat_netbsd32_lstat43(p, v, retval)
}
int
compat_43_compat_netbsd32_fstat43(p, v, retval)
compat_43_netbsd32_fstat43(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_fstat43_args /* {
struct compat_43_netbsd32_fstat43_args /* {
syscallarg(int) fd;
syscallarg(netbsd32_stat43p_t) sb;
} */ *uap = v;
@ -205,12 +205,12 @@ compat_43_compat_netbsd32_fstat43(p, v, retval)
}
int
compat_43_compat_netbsd32_otruncate(p, v, retval)
compat_43_netbsd32_otruncate(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_otruncate_args /* {
struct compat_43_netbsd32_otruncate_args /* {
syscallarg(const netbsd32_charp) path;
syscallarg(netbsd32_long) length;
} */ *uap = v;
@ -222,12 +222,12 @@ compat_43_compat_netbsd32_otruncate(p, v, retval)
}
int
compat_43_compat_netbsd32_oftruncate(p, v, retval)
compat_43_netbsd32_oftruncate(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_oftruncate_args /* {
struct compat_43_netbsd32_oftruncate_args /* {
syscallarg(int) fd;
syscallarg(netbsd32_long) length;
} */ *uap = v;
@ -239,12 +239,12 @@ compat_43_compat_netbsd32_oftruncate(p, v, retval)
}
int
compat_43_compat_netbsd32_ogetdirentries(p, v, retval)
compat_43_netbsd32_ogetdirentries(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_ogetdirentries_args /* {
struct compat_43_netbsd32_ogetdirentries_args /* {
syscallarg(int) fd;
syscallarg(netbsd32_charp) buf;
syscallarg(u_int) count;
@ -261,12 +261,12 @@ compat_43_compat_netbsd32_ogetdirentries(p, v, retval)
/* kernel syscalls */
int
compat_43_compat_netbsd32_ogetkerninfo(p, v, retval)
compat_43_netbsd32_ogetkerninfo(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_ogetkerninfo_args /* {
struct compat_43_netbsd32_ogetkerninfo_args /* {
syscallarg(int) op;
syscallarg(netbsd32_charp) where;
syscallarg(netbsd32_intp) size;
@ -282,12 +282,12 @@ compat_43_compat_netbsd32_ogetkerninfo(p, v, retval)
}
int
compat_43_compat_netbsd32_ogethostname(p, v, retval)
compat_43_netbsd32_ogethostname(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_ogethostname_args /* {
struct compat_43_netbsd32_ogethostname_args /* {
syscallarg(netbsd32_charp) hostname;
syscallarg(u_int) len;
} */ *uap = v;
@ -301,12 +301,12 @@ compat_43_compat_netbsd32_ogethostname(p, v, retval)
}
int
compat_43_compat_netbsd32_osethostname(p, v, retval)
compat_43_netbsd32_osethostname(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_osethostname_args /* {
struct compat_43_netbsd32_osethostname_args /* {
syscallarg(netbsd32_charp) hostname;
syscallarg(u_int) len;
} */ *uap = v;
@ -321,12 +321,12 @@ compat_43_compat_netbsd32_osethostname(p, v, retval)
}
int
compat_43_compat_netbsd32_sethostid(p, v, retval)
compat_43_netbsd32_sethostid(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_sethostid_args /* {
struct compat_43_netbsd32_sethostid_args /* {
syscallarg(int32_t) hostid;
} */ *uap = v;
struct compat_43_sys_sethostid_args ua;
@ -336,12 +336,12 @@ compat_43_compat_netbsd32_sethostid(p, v, retval)
}
int
compat_43_compat_netbsd32_ogetrlimit(p, v, retval)
compat_43_netbsd32_ogetrlimit(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_ogetrlimit_args /* {
struct compat_43_netbsd32_ogetrlimit_args /* {
syscallarg(int) which;
syscallarg(netbsd32_orlimitp_t) rlp;
} */ *uap = v;
@ -353,12 +353,12 @@ compat_43_compat_netbsd32_ogetrlimit(p, v, retval)
}
int
compat_43_compat_netbsd32_osetrlimit(p, v, retval)
compat_43_netbsd32_osetrlimit(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_osetrlimit_args /* {
struct compat_43_netbsd32_osetrlimit_args /* {
syscallarg(int) which;
syscallarg(netbsd32_orlimitp_t) rlp;
} */ *uap = v;
@ -370,12 +370,12 @@ compat_43_compat_netbsd32_osetrlimit(p, v, retval)
}
int
compat_43_compat_netbsd32_killpg(p, v, retval)
compat_43_netbsd32_killpg(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_killpg_args /* {
struct compat_43_netbsd32_killpg_args /* {
syscallarg(int) pgid;
syscallarg(int) signum;
} */ *uap = v;
@ -388,12 +388,12 @@ compat_43_compat_netbsd32_killpg(p, v, retval)
/* virtual memory syscalls */
int
compat_43_compat_netbsd32_ommap(p, v, retval)
compat_43_netbsd32_ommap(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_ommap_args /* {
struct compat_43_netbsd32_ommap_args /* {
syscallarg(netbsd32_caddr_t) addr;
syscallarg(netbsd32_size_t) len;
syscallarg(int) prot;
@ -414,12 +414,12 @@ compat_43_compat_netbsd32_ommap(p, v, retval)
/* virtual memory syscalls */
int
compat_netbsd32_ovadvise(p, v, retval)
netbsd32_ovadvise(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_netbsd32_ovadvise_args /* {
struct netbsd32_ovadvise_args /* {
syscallarg(int) anom;
} */ *uap = v;
struct sys_ovadvise_args ua;
@ -430,12 +430,12 @@ compat_netbsd32_ovadvise(p, v, retval)
/* network syscalls */
int
compat_43_compat_netbsd32_oaccept(p, v, retval)
compat_43_netbsd32_oaccept(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_oaccept_args /* {
struct compat_43_netbsd32_oaccept_args /* {
syscallarg(int) s;
syscallarg(netbsd32_caddr_t) name;
syscallarg(netbsd32_intp) anamelen;
@ -449,12 +449,12 @@ compat_43_compat_netbsd32_oaccept(p, v, retval)
}
int
compat_43_compat_netbsd32_osend(p, v, retval)
compat_43_netbsd32_osend(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_osend_args /* {
struct compat_43_netbsd32_osend_args /* {
syscallarg(int) s;
syscallarg(netbsd32_caddr_t) buf;
syscallarg(int) len;
@ -470,12 +470,12 @@ compat_43_compat_netbsd32_osend(p, v, retval)
}
int
compat_43_compat_netbsd32_orecv(p, v, retval)
compat_43_netbsd32_orecv(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_orecv_args /* {
struct compat_43_netbsd32_orecv_args /* {
syscallarg(int) s;
syscallarg(netbsd32_caddr_t) buf;
syscallarg(int) len;
@ -495,12 +495,12 @@ compat_43_compat_netbsd32_orecv(p, v, retval)
* netbsd call.
*/
int
compat_43_compat_netbsd32_orecvmsg(p, v, retval)
compat_43_netbsd32_orecvmsg(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_orecvmsg_args /* {
struct compat_43_netbsd32_orecvmsg_args /* {
syscallarg(int) s;
syscallarg(netbsd32_omsghdrp_t) msg;
syscallarg(int) flags;
@ -536,12 +536,12 @@ compat_43_compat_netbsd32_orecvmsg(p, v, retval)
}
int
compat_43_compat_netbsd32_osendmsg(p, v, retval)
compat_43_netbsd32_osendmsg(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_osendmsg_args /* {
struct compat_43_netbsd32_osendmsg_args /* {
syscallarg(int) s;
syscallarg(netbsd32_caddr_t) msg;
syscallarg(int) flags;
@ -577,12 +577,12 @@ compat_43_compat_netbsd32_osendmsg(p, v, retval)
}
int
compat_43_compat_netbsd32_orecvfrom(p, v, retval)
compat_43_netbsd32_orecvfrom(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_orecvfrom_args /* {
struct compat_43_netbsd32_orecvfrom_args /* {
syscallarg(int) s;
syscallarg(netbsd32_caddr_t) buf;
syscallarg(netbsd32_size_t) len;
@ -602,12 +602,12 @@ compat_43_compat_netbsd32_orecvfrom(p, v, retval)
}
int
compat_43_compat_netbsd32_ogetsockname(p, v, retval)
compat_43_netbsd32_ogetsockname(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_ogetsockname_args /* {
struct compat_43_netbsd32_ogetsockname_args /* {
syscallarg(int) fdec;
syscallarg(netbsd32_caddr_t) asa;
syscallarg(netbsd32_intp) alen;
@ -621,12 +621,12 @@ compat_43_compat_netbsd32_ogetsockname(p, v, retval)
}
int
compat_43_compat_netbsd32_ogetpeername(p, v, retval)
compat_43_netbsd32_ogetpeername(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_ogetpeername_args /* {
struct compat_43_netbsd32_ogetpeername_args /* {
syscallarg(int) fdes;
syscallarg(netbsd32_caddr_t) asa;
syscallarg(netbsd32_intp) alen;
@ -641,12 +641,12 @@ compat_43_compat_netbsd32_ogetpeername(p, v, retval)
/* signal syscalls */
int
compat_43_compat_netbsd32_osigvec(p, v, retval)
compat_43_netbsd32_osigvec(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_osigvec_args /* {
struct compat_43_netbsd32_osigvec_args /* {
syscallarg(int) signum;
syscallarg(netbsd32_sigvecp_t) nsv;
syscallarg(netbsd32_sigvecp_t) osv;
@ -684,12 +684,12 @@ compat_43_compat_netbsd32_osigvec(p, v, retval)
}
int
compat_43_compat_netbsd32_sigblock(p, v, retval)
compat_43_netbsd32_sigblock(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_sigblock_args /* {
struct compat_43_netbsd32_sigblock_args /* {
syscallarg(int) mask;
} */ *uap = v;
struct compat_43_sys_sigblock_args ua;
@ -699,12 +699,12 @@ compat_43_compat_netbsd32_sigblock(p, v, retval)
}
int
compat_43_compat_netbsd32_sigsetmask(p, v, retval)
compat_43_netbsd32_sigsetmask(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_sigsetmask_args /* {
struct compat_43_netbsd32_sigsetmask_args /* {
syscallarg(int) mask;
} */ *uap = v;
struct compat_43_sys_sigsetmask_args ua;
@ -714,12 +714,12 @@ compat_43_compat_netbsd32_sigsetmask(p, v, retval)
}
int
compat_43_compat_netbsd32_osigstack(p, v, retval)
compat_43_netbsd32_osigstack(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_43_compat_netbsd32_osigstack_args /* {
struct compat_43_netbsd32_osigstack_args /* {
syscallarg(netbsd32_sigstackp_t) nss;
syscallarg(netbsd32_sigstackp_t) oss;
} */ *uap = v;

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_exec.c,v 1.15 1999/03/26 04:29:26 eeh Exp $ */
/* $NetBSD: netbsd32_exec.c,v 1.16 1999/10/11 01:36:22 eeh Exp $ */
/* from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
/*
@ -84,7 +84,9 @@ struct emul emul_netbsd32 = {
NULL,
#endif
0,
#if FIXED
netbsd32_copyinargs,
#endif
netbsd32_copyargs,
netbsd32_setregs, /* XXX needs to be written?? */
netbsd32_sigcode,

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_ioctl.c,v 1.3 1999/03/25 16:58:40 mrg Exp $ */
/* $NetBSD: netbsd32_ioctl.c,v 1.4 1999/10/11 01:36:23 eeh Exp $ */
/*
* Copyright (c) 1998 Matthew R. Green
@ -356,12 +356,12 @@ netbsd32_from_sioc_sg_req(p, s32p)
* on the ioctl command before and afterwards.
*/
int
compat_netbsd32_ioctl(p, v, retval)
netbsd32_ioctl(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct compat_netbsd32_ioctl_args /* {
struct netbsd32_ioctl_args /* {
syscallarg(int) fd;
syscallarg(netbsd32_u_long) com;
syscallarg(netbsd32_voidp) data;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscalls.c,v 1.10 1999/06/09 04:50:32 christos Exp $ */
/* $NetBSD: netbsd32_syscalls.c,v 1.11 1999/10/11 01:36:24 eeh Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.8 1999/06/09 04:50:11 christos Exp
* created from NetBSD: syscalls.master,v 1.9 1999/07/12 21:55:20 kleink Exp
*/
#if defined(_KERNEL) && !defined(_LKM)
@ -27,204 +27,204 @@
char *netbsd32_syscallnames[] = {
"syscall", /* 0 = syscall */
"compat_netbsd32_exit", /* 1 = compat_netbsd32_exit */
"netbsd32_exit", /* 1 = netbsd32_exit */
"fork", /* 2 = fork */
"compat_netbsd32_read", /* 3 = compat_netbsd32_read */
"compat_netbsd32_write", /* 4 = compat_netbsd32_write */
"compat_netbsd32_open", /* 5 = compat_netbsd32_open */
"compat_netbsd32_close", /* 6 = compat_netbsd32_close */
"compat_netbsd32_wait4", /* 7 = compat_netbsd32_wait4 */
"compat_43_compat_netbsd32_ocreat", /* 8 = compat_43 compat_netbsd32_ocreat */
"compat_netbsd32_link", /* 9 = compat_netbsd32_link */
"compat_netbsd32_unlink", /* 10 = compat_netbsd32_unlink */
"netbsd32_read", /* 3 = netbsd32_read */
"netbsd32_write", /* 4 = netbsd32_write */
"netbsd32_open", /* 5 = netbsd32_open */
"netbsd32_close", /* 6 = netbsd32_close */
"netbsd32_wait4", /* 7 = netbsd32_wait4 */
"compat_43_netbsd32_ocreat", /* 8 = compat_43 netbsd32_ocreat */
"netbsd32_link", /* 9 = netbsd32_link */
"netbsd32_unlink", /* 10 = netbsd32_unlink */
"#11 (obsolete execv)", /* 11 = obsolete execv */
"compat_netbsd32_chdir", /* 12 = compat_netbsd32_chdir */
"compat_netbsd32_fchdir", /* 13 = compat_netbsd32_fchdir */
"compat_netbsd32_mknod", /* 14 = compat_netbsd32_mknod */
"compat_netbsd32_chmod", /* 15 = compat_netbsd32_chmod */
"compat_netbsd32_chown", /* 16 = compat_netbsd32_chown */
"compat_netbsd32_break", /* 17 = compat_netbsd32_break */
"compat_netbsd32_getfsstat", /* 18 = compat_netbsd32_getfsstat */
"compat_43_compat_netbsd32_olseek", /* 19 = compat_43 compat_netbsd32_olseek */
"netbsd32_chdir", /* 12 = netbsd32_chdir */
"netbsd32_fchdir", /* 13 = netbsd32_fchdir */
"netbsd32_mknod", /* 14 = netbsd32_mknod */
"netbsd32_chmod", /* 15 = netbsd32_chmod */
"netbsd32_chown", /* 16 = netbsd32_chown */
"netbsd32_break", /* 17 = netbsd32_break */
"netbsd32_getfsstat", /* 18 = netbsd32_getfsstat */
"compat_43_netbsd32_olseek", /* 19 = compat_43 netbsd32_olseek */
"getpid", /* 20 = getpid */
"compat_netbsd32_mount", /* 21 = compat_netbsd32_mount */
"compat_netbsd32_unmount", /* 22 = compat_netbsd32_unmount */
"compat_netbsd32_setuid", /* 23 = compat_netbsd32_setuid */
"netbsd32_mount", /* 21 = netbsd32_mount */
"netbsd32_unmount", /* 22 = netbsd32_unmount */
"netbsd32_setuid", /* 23 = netbsd32_setuid */
"getuid", /* 24 = getuid */
"geteuid", /* 25 = geteuid */
"compat_netbsd32_ptrace", /* 26 = compat_netbsd32_ptrace */
"compat_netbsd32_recvmsg", /* 27 = compat_netbsd32_recvmsg */
"compat_netbsd32_sendmsg", /* 28 = compat_netbsd32_sendmsg */
"compat_netbsd32_recvfrom", /* 29 = compat_netbsd32_recvfrom */
"compat_netbsd32_accept", /* 30 = compat_netbsd32_accept */
"compat_netbsd32_getpeername", /* 31 = compat_netbsd32_getpeername */
"compat_netbsd32_getsockname", /* 32 = compat_netbsd32_getsockname */
"compat_netbsd32_access", /* 33 = compat_netbsd32_access */
"compat_netbsd32_chflags", /* 34 = compat_netbsd32_chflags */
"compat_netbsd32_fchflags", /* 35 = compat_netbsd32_fchflags */
"netbsd32_ptrace", /* 26 = netbsd32_ptrace */
"netbsd32_recvmsg", /* 27 = netbsd32_recvmsg */
"netbsd32_sendmsg", /* 28 = netbsd32_sendmsg */
"netbsd32_recvfrom", /* 29 = netbsd32_recvfrom */
"netbsd32_accept", /* 30 = netbsd32_accept */
"netbsd32_getpeername", /* 31 = netbsd32_getpeername */
"netbsd32_getsockname", /* 32 = netbsd32_getsockname */
"netbsd32_access", /* 33 = netbsd32_access */
"netbsd32_chflags", /* 34 = netbsd32_chflags */
"netbsd32_fchflags", /* 35 = netbsd32_fchflags */
"sync", /* 36 = sync */
"compat_netbsd32_kill", /* 37 = compat_netbsd32_kill */
"compat_43_compat_netbsd32_stat43", /* 38 = compat_43 compat_netbsd32_stat43 */
"netbsd32_kill", /* 37 = netbsd32_kill */
"compat_43_netbsd32_stat43", /* 38 = compat_43 netbsd32_stat43 */
"getppid", /* 39 = getppid */
"compat_43_compat_netbsd32_lstat43", /* 40 = compat_43 compat_netbsd32_lstat43 */
"compat_netbsd32_dup", /* 41 = compat_netbsd32_dup */
"compat_43_netbsd32_lstat43", /* 40 = compat_43 netbsd32_lstat43 */
"netbsd32_dup", /* 41 = netbsd32_dup */
"pipe", /* 42 = pipe */
"getegid", /* 43 = getegid */
"compat_netbsd32_profil", /* 44 = compat_netbsd32_profil */
"netbsd32_profil", /* 44 = netbsd32_profil */
#if defined(KTRACE) || !defined(_KERNEL)
"compat_netbsd32_ktrace", /* 45 = compat_netbsd32_ktrace */
"netbsd32_ktrace", /* 45 = netbsd32_ktrace */
#else
"#45 (excluded compat_netbsd32_ktrace)", /* 45 = excluded compat_netbsd32_ktrace */
"#45 (excluded netbsd32_ktrace)", /* 45 = excluded netbsd32_ktrace */
#endif
"compat_netbsd32_sigaction", /* 46 = compat_netbsd32_sigaction */
"netbsd32_sigaction", /* 46 = netbsd32_sigaction */
"getgid", /* 47 = getgid */
"compat_13_sigprocmask13", /* 48 = compat_13 sigprocmask13 */
"compat_netbsd32___getlogin", /* 49 = compat_netbsd32___getlogin */
"compat_netbsd32_setlogin", /* 50 = compat_netbsd32_setlogin */
"compat_netbsd32_acct", /* 51 = compat_netbsd32_acct */
"netbsd32___getlogin", /* 49 = netbsd32___getlogin */
"netbsd32_setlogin", /* 50 = netbsd32_setlogin */
"netbsd32_acct", /* 51 = netbsd32_acct */
"compat_13_sigpending13", /* 52 = compat_13 sigpending13 */
"compat_13_compat_netbsd32_sigaltstack13", /* 53 = compat_13 compat_netbsd32_sigaltstack13 */
"compat_netbsd32_ioctl", /* 54 = compat_netbsd32_ioctl */
"compat_13_netbsd32_sigaltstack13", /* 53 = compat_13 netbsd32_sigaltstack13 */
"netbsd32_ioctl", /* 54 = netbsd32_ioctl */
#ifdef COMPAT_12
"compat_12_compat_netbsd32_reboot", /* 55 = compat_12 compat_netbsd32_reboot */
"compat_12_netbsd32_reboot", /* 55 = compat_12 netbsd32_reboot */
#else
"#55 (obsolete oreboot)", /* 55 = obsolete oreboot */
#endif
"compat_netbsd32_revoke", /* 56 = compat_netbsd32_revoke */
"compat_netbsd32_symlink", /* 57 = compat_netbsd32_symlink */
"compat_netbsd32_readlink", /* 58 = compat_netbsd32_readlink */
"compat_netbsd32_execve", /* 59 = compat_netbsd32_execve */
"compat_netbsd32_umask", /* 60 = compat_netbsd32_umask */
"compat_netbsd32_chroot", /* 61 = compat_netbsd32_chroot */
"compat_43_compat_netbsd32_fstat43", /* 62 = compat_43 compat_netbsd32_fstat43 */
"compat_43_compat_netbsd32_ogetkerninfo", /* 63 = compat_43 compat_netbsd32_ogetkerninfo */
"netbsd32_revoke", /* 56 = netbsd32_revoke */
"netbsd32_symlink", /* 57 = netbsd32_symlink */
"netbsd32_readlink", /* 58 = netbsd32_readlink */
"netbsd32_execve", /* 59 = netbsd32_execve */
"netbsd32_umask", /* 60 = netbsd32_umask */
"netbsd32_chroot", /* 61 = netbsd32_chroot */
"compat_43_netbsd32_fstat43", /* 62 = compat_43 netbsd32_fstat43 */
"compat_43_netbsd32_ogetkerninfo", /* 63 = compat_43 netbsd32_ogetkerninfo */
"compat_43_ogetpagesize", /* 64 = compat_43 ogetpagesize */
"compat_12_compat_netbsd32_msync", /* 65 = compat_12 compat_netbsd32_msync */
"compat_12_netbsd32_msync", /* 65 = compat_12 netbsd32_msync */
"vfork", /* 66 = vfork */
"#67 (obsolete vread)", /* 67 = obsolete vread */
"#68 (obsolete vwrite)", /* 68 = obsolete vwrite */
"compat_netbsd32_sbrk", /* 69 = compat_netbsd32_sbrk */
"compat_netbsd32_sstk", /* 70 = compat_netbsd32_sstk */
"compat_43_compat_netbsd32_ommap", /* 71 = compat_43 compat_netbsd32_ommap */
"netbsd32_sbrk", /* 69 = netbsd32_sbrk */
"netbsd32_sstk", /* 70 = netbsd32_sstk */
"compat_43_netbsd32_ommap", /* 71 = compat_43 netbsd32_ommap */
"vadvise", /* 72 = vadvise */
"compat_netbsd32_munmap", /* 73 = compat_netbsd32_munmap */
"compat_netbsd32_mprotect", /* 74 = compat_netbsd32_mprotect */
"compat_netbsd32_madvise", /* 75 = compat_netbsd32_madvise */
"netbsd32_munmap", /* 73 = netbsd32_munmap */
"netbsd32_mprotect", /* 74 = netbsd32_mprotect */
"netbsd32_madvise", /* 75 = netbsd32_madvise */
"#76 (obsolete vhangup)", /* 76 = obsolete vhangup */
"#77 (obsolete vlimit)", /* 77 = obsolete vlimit */
"compat_netbsd32_mincore", /* 78 = compat_netbsd32_mincore */
"compat_netbsd32_getgroups", /* 79 = compat_netbsd32_getgroups */
"compat_netbsd32_setgroups", /* 80 = compat_netbsd32_setgroups */
"netbsd32_mincore", /* 78 = netbsd32_mincore */
"netbsd32_getgroups", /* 79 = netbsd32_getgroups */
"netbsd32_setgroups", /* 80 = netbsd32_setgroups */
"getpgrp", /* 81 = getpgrp */
"compat_netbsd32_setpgid", /* 82 = compat_netbsd32_setpgid */
"compat_netbsd32_setitimer", /* 83 = compat_netbsd32_setitimer */
"netbsd32_setpgid", /* 82 = netbsd32_setpgid */
"netbsd32_setitimer", /* 83 = netbsd32_setitimer */
"compat_43_owait", /* 84 = compat_43 owait */
"compat_12_compat_netbsd32_oswapon", /* 85 = compat_12 compat_netbsd32_oswapon */
"compat_netbsd32_getitimer", /* 86 = compat_netbsd32_getitimer */
"compat_43_compat_netbsd32_ogethostname", /* 87 = compat_43 compat_netbsd32_ogethostname */
"compat_43_compat_netbsd32_osethostname", /* 88 = compat_43 compat_netbsd32_osethostname */
"compat_12_netbsd32_oswapon", /* 85 = compat_12 netbsd32_oswapon */
"netbsd32_getitimer", /* 86 = netbsd32_getitimer */
"compat_43_netbsd32_ogethostname", /* 87 = compat_43 netbsd32_ogethostname */
"compat_43_netbsd32_osethostname", /* 88 = compat_43 netbsd32_osethostname */
"compat_43_ogetdtablesize", /* 89 = compat_43 ogetdtablesize */
"compat_netbsd32_dup2", /* 90 = compat_netbsd32_dup2 */
"netbsd32_dup2", /* 90 = netbsd32_dup2 */
"#91 (unimplemented getdopt)", /* 91 = unimplemented getdopt */
"compat_netbsd32_fcntl", /* 92 = compat_netbsd32_fcntl */
"compat_netbsd32_select", /* 93 = compat_netbsd32_select */
"netbsd32_fcntl", /* 92 = netbsd32_fcntl */
"netbsd32_select", /* 93 = netbsd32_select */
"#94 (unimplemented setdopt)", /* 94 = unimplemented setdopt */
"compat_netbsd32_fsync", /* 95 = compat_netbsd32_fsync */
"compat_netbsd32_setpriority", /* 96 = compat_netbsd32_setpriority */
"compat_netbsd32_socket", /* 97 = compat_netbsd32_socket */
"compat_netbsd32_connect", /* 98 = compat_netbsd32_connect */
"compat_43_compat_netbsd32_oaccept", /* 99 = compat_43 compat_netbsd32_oaccept */
"compat_netbsd32_getpriority", /* 100 = compat_netbsd32_getpriority */
"compat_43_compat_netbsd32_osend", /* 101 = compat_43 compat_netbsd32_osend */
"compat_43_compat_netbsd32_orecv", /* 102 = compat_43 compat_netbsd32_orecv */
"compat_netbsd32_sigreturn", /* 103 = compat_netbsd32_sigreturn */
"compat_netbsd32_bind", /* 104 = compat_netbsd32_bind */
"compat_netbsd32_setsockopt", /* 105 = compat_netbsd32_setsockopt */
"compat_netbsd32_listen", /* 106 = compat_netbsd32_listen */
"netbsd32_fsync", /* 95 = netbsd32_fsync */
"netbsd32_setpriority", /* 96 = netbsd32_setpriority */
"netbsd32_socket", /* 97 = netbsd32_socket */
"netbsd32_connect", /* 98 = netbsd32_connect */
"compat_43_netbsd32_oaccept", /* 99 = compat_43 netbsd32_oaccept */
"netbsd32_getpriority", /* 100 = netbsd32_getpriority */
"compat_43_netbsd32_osend", /* 101 = compat_43 netbsd32_osend */
"compat_43_netbsd32_orecv", /* 102 = compat_43 netbsd32_orecv */
"netbsd32_sigreturn", /* 103 = netbsd32_sigreturn */
"netbsd32_bind", /* 104 = netbsd32_bind */
"netbsd32_setsockopt", /* 105 = netbsd32_setsockopt */
"netbsd32_listen", /* 106 = netbsd32_listen */
"#107 (obsolete vtimes)", /* 107 = obsolete vtimes */
"compat_43_compat_netbsd32_osigvec", /* 108 = compat_43 compat_netbsd32_osigvec */
"compat_43_netbsd32_osigvec", /* 108 = compat_43 netbsd32_osigvec */
#ifdef COMPAT_43
"compat_43_compat_netbsd32_sigblock", /* 109 = compat_43 compat_netbsd32_sigblock */
"compat_43_compat_netbsd32_sigsetmask", /* 110 = compat_43 compat_netbsd32_sigsetmask */
"compat_43_netbsd32_sigblock", /* 109 = compat_43 netbsd32_sigblock */
"compat_43_netbsd32_sigsetmask", /* 110 = compat_43 netbsd32_sigsetmask */
#else
"#109 (obsolete sigblock)", /* 109 = obsolete sigblock */
"#110 (obsolete sigsetmask)", /* 110 = obsolete sigsetmask */
#endif
"compat_13_sigsuspend13", /* 111 = compat_13 sigsuspend13 */
"compat_43_compat_netbsd32_osigstack", /* 112 = compat_43 compat_netbsd32_osigstack */
"compat_43_compat_netbsd32_orecvmsg", /* 113 = compat_43 compat_netbsd32_orecvmsg */
"compat_43_compat_netbsd32_osendmsg", /* 114 = compat_43 compat_netbsd32_osendmsg */
"compat_43_netbsd32_osigstack", /* 112 = compat_43 netbsd32_osigstack */
"compat_43_netbsd32_orecvmsg", /* 113 = compat_43 netbsd32_orecvmsg */
"compat_43_netbsd32_osendmsg", /* 114 = compat_43 netbsd32_osendmsg */
"#115 (obsolete vtrace)", /* 115 = obsolete vtrace */
"compat_netbsd32_gettimeofday", /* 116 = compat_netbsd32_gettimeofday */
"compat_netbsd32_getrusage", /* 117 = compat_netbsd32_getrusage */
"compat_netbsd32_getsockopt", /* 118 = compat_netbsd32_getsockopt */
"netbsd32_gettimeofday", /* 116 = netbsd32_gettimeofday */
"netbsd32_getrusage", /* 117 = netbsd32_getrusage */
"netbsd32_getsockopt", /* 118 = netbsd32_getsockopt */
"#119 (obsolete resuba)", /* 119 = obsolete resuba */
"compat_netbsd32_readv", /* 120 = compat_netbsd32_readv */
"compat_netbsd32_writev", /* 121 = compat_netbsd32_writev */
"compat_netbsd32_settimeofday", /* 122 = compat_netbsd32_settimeofday */
"compat_netbsd32_fchown", /* 123 = compat_netbsd32_fchown */
"compat_netbsd32_fchmod", /* 124 = compat_netbsd32_fchmod */
"compat_43_compat_netbsd32_orecvfrom", /* 125 = compat_43 compat_netbsd32_orecvfrom */
"compat_netbsd32_setreuid", /* 126 = compat_netbsd32_setreuid */
"compat_netbsd32_setregid", /* 127 = compat_netbsd32_setregid */
"compat_netbsd32_rename", /* 128 = compat_netbsd32_rename */
"compat_43_compat_netbsd32_otruncate", /* 129 = compat_43 compat_netbsd32_otruncate */
"compat_43_compat_netbsd32_oftruncate", /* 130 = compat_43 compat_netbsd32_oftruncate */
"compat_netbsd32_flock", /* 131 = compat_netbsd32_flock */
"compat_netbsd32_mkfifo", /* 132 = compat_netbsd32_mkfifo */
"compat_netbsd32_sendto", /* 133 = compat_netbsd32_sendto */
"compat_netbsd32_shutdown", /* 134 = compat_netbsd32_shutdown */
"compat_netbsd32_socketpair", /* 135 = compat_netbsd32_socketpair */
"compat_netbsd32_mkdir", /* 136 = compat_netbsd32_mkdir */
"compat_netbsd32_rmdir", /* 137 = compat_netbsd32_rmdir */
"compat_netbsd32_utimes", /* 138 = compat_netbsd32_utimes */
"netbsd32_readv", /* 120 = netbsd32_readv */
"netbsd32_writev", /* 121 = netbsd32_writev */
"netbsd32_settimeofday", /* 122 = netbsd32_settimeofday */
"netbsd32_fchown", /* 123 = netbsd32_fchown */
"netbsd32_fchmod", /* 124 = netbsd32_fchmod */
"compat_43_netbsd32_orecvfrom", /* 125 = compat_43 netbsd32_orecvfrom */
"netbsd32_setreuid", /* 126 = netbsd32_setreuid */
"netbsd32_setregid", /* 127 = netbsd32_setregid */
"netbsd32_rename", /* 128 = netbsd32_rename */
"compat_43_netbsd32_otruncate", /* 129 = compat_43 netbsd32_otruncate */
"compat_43_netbsd32_oftruncate", /* 130 = compat_43 netbsd32_oftruncate */
"netbsd32_flock", /* 131 = netbsd32_flock */
"netbsd32_mkfifo", /* 132 = netbsd32_mkfifo */
"netbsd32_sendto", /* 133 = netbsd32_sendto */
"netbsd32_shutdown", /* 134 = netbsd32_shutdown */
"netbsd32_socketpair", /* 135 = netbsd32_socketpair */
"netbsd32_mkdir", /* 136 = netbsd32_mkdir */
"netbsd32_rmdir", /* 137 = netbsd32_rmdir */
"netbsd32_utimes", /* 138 = netbsd32_utimes */
"#139 (obsolete 4.2 sigreturn)", /* 139 = obsolete 4.2 sigreturn */
"compat_netbsd32_adjtime", /* 140 = compat_netbsd32_adjtime */
"compat_43_compat_netbsd32_ogetpeername", /* 141 = compat_43 compat_netbsd32_ogetpeername */
"netbsd32_adjtime", /* 140 = netbsd32_adjtime */
"compat_43_netbsd32_ogetpeername", /* 141 = compat_43 netbsd32_ogetpeername */
"compat_43_ogethostid", /* 142 = compat_43 ogethostid */
#ifdef COMPAT_43
"compat_43_compat_netbsd32_sethostid", /* 143 = compat_43 compat_netbsd32_sethostid */
"compat_43_netbsd32_sethostid", /* 143 = compat_43 netbsd32_sethostid */
#else
"#143 (obsolete sethostid)", /* 143 = obsolete sethostid */
#endif
"compat_43_compat_netbsd32_ogetrlimit", /* 144 = compat_43 compat_netbsd32_ogetrlimit */
"compat_43_compat_netbsd32_osetrlimit", /* 145 = compat_43 compat_netbsd32_osetrlimit */
"compat_43_netbsd32_ogetrlimit", /* 144 = compat_43 netbsd32_ogetrlimit */
"compat_43_netbsd32_osetrlimit", /* 145 = compat_43 netbsd32_osetrlimit */
#ifdef COMPAT_43
"compat_43_compat_netbsd32_killpg", /* 146 = compat_43 compat_netbsd32_killpg */
"compat_43_netbsd32_killpg", /* 146 = compat_43 netbsd32_killpg */
#else
"#146 (obsolete killpg)", /* 146 = obsolete killpg */
#endif
"setsid", /* 147 = setsid */
"compat_netbsd32_quotactl", /* 148 = compat_netbsd32_quotactl */
"netbsd32_quotactl", /* 148 = netbsd32_quotactl */
"compat_43_oquota", /* 149 = compat_43 oquota */
"compat_43_compat_netbsd32_ogetsockname", /* 150 = compat_43 compat_netbsd32_ogetsockname */
"compat_43_netbsd32_ogetsockname", /* 150 = compat_43 netbsd32_ogetsockname */
"#151 (unimplemented)", /* 151 = unimplemented */
"#152 (unimplemented)", /* 152 = unimplemented */
"#153 (unimplemented)", /* 153 = unimplemented */
"#154 (unimplemented)", /* 154 = unimplemented */
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
"compat_netbsd32_nfssvc", /* 155 = compat_netbsd32_nfssvc */
"netbsd32_nfssvc", /* 155 = netbsd32_nfssvc */
#else
"#155 (excluded compat_netbsd32_nfssvc)", /* 155 = excluded compat_netbsd32_nfssvc */
"#155 (excluded netbsd32_nfssvc)", /* 155 = excluded netbsd32_nfssvc */
#endif
"compat_43_compat_netbsd32_ogetdirentries", /* 156 = compat_43 compat_netbsd32_ogetdirentries */
"compat_netbsd32_statfs", /* 157 = compat_netbsd32_statfs */
"compat_netbsd32_fstatfs", /* 158 = compat_netbsd32_fstatfs */
"compat_43_netbsd32_ogetdirentries", /* 156 = compat_43 netbsd32_ogetdirentries */
"netbsd32_statfs", /* 157 = netbsd32_statfs */
"netbsd32_fstatfs", /* 158 = netbsd32_fstatfs */
"#159 (unimplemented)", /* 159 = unimplemented */
"#160 (unimplemented)", /* 160 = unimplemented */
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
"compat_netbsd32_getfh", /* 161 = compat_netbsd32_getfh */
"netbsd32_getfh", /* 161 = netbsd32_getfh */
#else
"#161 (excluded compat_netbsd32_getfh)", /* 161 = excluded compat_netbsd32_getfh */
"#161 (excluded netbsd32_getfh)", /* 161 = excluded netbsd32_getfh */
#endif
"compat_09_compat_netbsd32_ogetdomainname", /* 162 = compat_09 compat_netbsd32_ogetdomainname */
"compat_09_compat_netbsd32_osetdomainname", /* 163 = compat_09 compat_netbsd32_osetdomainname */
"compat_09_compat_netbsd32_uname", /* 164 = compat_09 compat_netbsd32_uname */
"compat_netbsd32_sysarch", /* 165 = compat_netbsd32_sysarch */
"compat_09_netbsd32_ogetdomainname", /* 162 = compat_09 netbsd32_ogetdomainname */
"compat_09_netbsd32_osetdomainname", /* 163 = compat_09 netbsd32_osetdomainname */
"compat_09_netbsd32_uname", /* 164 = compat_09 netbsd32_uname */
"netbsd32_sysarch", /* 165 = netbsd32_sysarch */
"#166 (unimplemented)", /* 166 = unimplemented */
"#167 (unimplemented)", /* 167 = unimplemented */
"#168 (unimplemented)", /* 168 = unimplemented */
#if (defined(SYSVSEM) || !defined(_KERNEL) && !defined(alpha) && defined(COMPAT_10)
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
"osemsys", /* 169 = osemsys */
#else
"#169 (excluded 1.0 semsys)", /* 169 = excluded 1.0 semsys */
@ -240,55 +240,55 @@ char *netbsd32_syscallnames[] = {
"#171 (excluded 1.0 shmsys)", /* 171 = excluded 1.0 shmsys */
#endif
"#172 (unimplemented)", /* 172 = unimplemented */
"compat_netbsd32_pread", /* 173 = compat_netbsd32_pread */
"compat_netbsd32_pwrite", /* 174 = compat_netbsd32_pwrite */
"netbsd32_pread", /* 173 = netbsd32_pread */
"netbsd32_pwrite", /* 174 = netbsd32_pwrite */
#if defined(NTP) && !defined(_KERNEL)
"compat_netbsd32_ntp_gettime", /* 175 = compat_netbsd32_ntp_gettime */
"compat_netbsd32_ntp_adjtime", /* 176 = compat_netbsd32_ntp_adjtime */
"netbsd32_ntp_gettime", /* 175 = netbsd32_ntp_gettime */
"netbsd32_ntp_adjtime", /* 176 = netbsd32_ntp_adjtime */
#else
"#175 (excluded compat_netbsd32_ntp_gettime)", /* 175 = excluded compat_netbsd32_ntp_gettime */
"#176 (excluded compat_netbsd32_ntp_adjtime)", /* 176 = excluded compat_netbsd32_ntp_adjtime */
"#175 (excluded netbsd32_ntp_gettime)", /* 175 = excluded netbsd32_ntp_gettime */
"#176 (excluded netbsd32_ntp_adjtime)", /* 176 = excluded netbsd32_ntp_adjtime */
#endif
"#177 (unimplemented)", /* 177 = unimplemented */
"#178 (unimplemented)", /* 178 = unimplemented */
"#179 (unimplemented)", /* 179 = unimplemented */
"#180 (unimplemented)", /* 180 = unimplemented */
"compat_netbsd32_setgid", /* 181 = compat_netbsd32_setgid */
"compat_netbsd32_setegid", /* 182 = compat_netbsd32_setegid */
"compat_netbsd32_seteuid", /* 183 = compat_netbsd32_seteuid */
"netbsd32_setgid", /* 181 = netbsd32_setgid */
"netbsd32_setegid", /* 182 = netbsd32_setegid */
"netbsd32_seteuid", /* 183 = netbsd32_seteuid */
#if defined(LFS) || !defined(_KERNEL)
"lfs_bmapv", /* 184 = lfs_bmapv */
"lfs_markv", /* 185 = lfs_markv */
"lfs_segclean", /* 186 = lfs_segclean */
"lfs_segwait", /* 187 = lfs_segwait */
#else
"#184 (excluded compat_netbsd32_sys_lfs_bmapv)", /* 184 = excluded compat_netbsd32_sys_lfs_bmapv */
"#185 (excluded compat_netbsd32_sys_lfs_markv)", /* 185 = excluded compat_netbsd32_sys_lfs_markv */
"#186 (excluded compat_netbsd32_sys_lfs_segclean)", /* 186 = excluded compat_netbsd32_sys_lfs_segclean */
"#187 (excluded compat_netbsd32_sys_lfs_segwait)", /* 187 = excluded compat_netbsd32_sys_lfs_segwait */
"#184 (excluded netbsd32_sys_lfs_bmapv)", /* 184 = excluded netbsd32_sys_lfs_bmapv */
"#185 (excluded netbsd32_sys_lfs_markv)", /* 185 = excluded netbsd32_sys_lfs_markv */
"#186 (excluded netbsd32_sys_lfs_segclean)", /* 186 = excluded netbsd32_sys_lfs_segclean */
"#187 (excluded netbsd32_sys_lfs_segwait)", /* 187 = excluded netbsd32_sys_lfs_segwait */
#endif
"compat_12_compat_netbsd32_stat12", /* 188 = compat_12 compat_netbsd32_stat12 */
"compat_12_compat_netbsd32_fstat12", /* 189 = compat_12 compat_netbsd32_fstat12 */
"compat_12_compat_netbsd32_lstat12", /* 190 = compat_12 compat_netbsd32_lstat12 */
"compat_netbsd32_pathconf", /* 191 = compat_netbsd32_pathconf */
"compat_netbsd32_fpathconf", /* 192 = compat_netbsd32_fpathconf */
"compat_12_netbsd32_stat12", /* 188 = compat_12 netbsd32_stat12 */
"compat_12_netbsd32_fstat12", /* 189 = compat_12 netbsd32_fstat12 */
"compat_12_netbsd32_lstat12", /* 190 = compat_12 netbsd32_lstat12 */
"netbsd32_pathconf", /* 191 = netbsd32_pathconf */
"netbsd32_fpathconf", /* 192 = netbsd32_fpathconf */
"#193 (unimplemented)", /* 193 = unimplemented */
"compat_netbsd32_getrlimit", /* 194 = compat_netbsd32_getrlimit */
"compat_netbsd32_setrlimit", /* 195 = compat_netbsd32_setrlimit */
"compat_12_compat_netbsd32_getdirentries", /* 196 = compat_12 compat_netbsd32_getdirentries */
"compat_netbsd32_mmap", /* 197 = compat_netbsd32_mmap */
"netbsd32_getrlimit", /* 194 = netbsd32_getrlimit */
"netbsd32_setrlimit", /* 195 = netbsd32_setrlimit */
"compat_12_netbsd32_getdirentries", /* 196 = compat_12 netbsd32_getdirentries */
"netbsd32_mmap", /* 197 = netbsd32_mmap */
"__syscall", /* 198 = __syscall */
"compat_netbsd32_lseek", /* 199 = compat_netbsd32_lseek */
"compat_netbsd32_truncate", /* 200 = compat_netbsd32_truncate */
"compat_netbsd32_ftruncate", /* 201 = compat_netbsd32_ftruncate */
"compat_netbsd32___sysctl", /* 202 = compat_netbsd32___sysctl */
"compat_netbsd32_mlock", /* 203 = compat_netbsd32_mlock */
"compat_netbsd32_munlock", /* 204 = compat_netbsd32_munlock */
"compat_netbsd32_undelete", /* 205 = compat_netbsd32_undelete */
"compat_netbsd32_futimes", /* 206 = compat_netbsd32_futimes */
"compat_netbsd32_getpgid", /* 207 = compat_netbsd32_getpgid */
"compat_netbsd32_reboot", /* 208 = compat_netbsd32_reboot */
"compat_netbsd32_poll", /* 209 = compat_netbsd32_poll */
"netbsd32_lseek", /* 199 = netbsd32_lseek */
"netbsd32_truncate", /* 200 = netbsd32_truncate */
"netbsd32_ftruncate", /* 201 = netbsd32_ftruncate */
"netbsd32___sysctl", /* 202 = netbsd32___sysctl */
"netbsd32_mlock", /* 203 = netbsd32_mlock */
"netbsd32_munlock", /* 204 = netbsd32_munlock */
"netbsd32_undelete", /* 205 = netbsd32_undelete */
"netbsd32_futimes", /* 206 = netbsd32_futimes */
"netbsd32_getpgid", /* 207 = netbsd32_getpgid */
"netbsd32_reboot", /* 208 = netbsd32_reboot */
"netbsd32_poll", /* 209 = netbsd32_poll */
#if defined(LKM) || !defined(_KERNEL)
"lkmnosys", /* 210 = lkmnosys */
"lkmnosys", /* 211 = lkmnosys */
@ -313,48 +313,48 @@ char *netbsd32_syscallnames[] = {
"#219 (excluded lkmnosys)", /* 219 = excluded lkmnosys */
#endif /* !LKM || !_KERNEL */
#if defined(SYSVSEM) || !defined(_KERNEL)
"compat_netbsd32___semctl", /* 220 = compat_netbsd32___semctl */
"compat_netbsd32_semget", /* 221 = compat_netbsd32_semget */
"compat_netbsd32_semop", /* 222 = compat_netbsd32_semop */
"compat_netbsd32_semconfig", /* 223 = compat_netbsd32_semconfig */
"compat_14_netbsd32___semctl", /* 220 = compat_14 netbsd32___semctl */
"netbsd32_semget", /* 221 = netbsd32_semget */
"netbsd32_semop", /* 222 = netbsd32_semop */
"netbsd32_semconfig", /* 223 = netbsd32_semconfig */
#else
"#220 (excluded compat_netbsd32_semctl)", /* 220 = excluded compat_netbsd32_semctl */
"#221 (excluded compat_netbsd32_semget)", /* 221 = excluded compat_netbsd32_semget */
"#222 (excluded compat_netbsd32_semop)", /* 222 = excluded compat_netbsd32_semop */
"#223 (excluded compat_netbsd32_semconfig)", /* 223 = excluded compat_netbsd32_semconfig */
"#220 (excluded netbsd32_semctl)", /* 220 = excluded netbsd32_semctl */
"#221 (excluded netbsd32_semget)", /* 221 = excluded netbsd32_semget */
"#222 (excluded netbsd32_semop)", /* 222 = excluded netbsd32_semop */
"#223 (excluded netbsd32_semconfig)", /* 223 = excluded netbsd32_semconfig */
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
"compat_netbsd32_msgctl", /* 224 = compat_netbsd32_msgctl */
"compat_netbsd32_msgget", /* 225 = compat_netbsd32_msgget */
"compat_netbsd32_msgsnd", /* 226 = compat_netbsd32_msgsnd */
"compat_netbsd32_msgrcv", /* 227 = compat_netbsd32_msgrcv */
"compat_14_netbsd32_msgctl", /* 224 = compat_14 netbsd32_msgctl */
"netbsd32_msgget", /* 225 = netbsd32_msgget */
"netbsd32_msgsnd", /* 226 = netbsd32_msgsnd */
"netbsd32_msgrcv", /* 227 = netbsd32_msgrcv */
#else
"#224 (excluded compat_netbsd32_msgctl)", /* 224 = excluded compat_netbsd32_msgctl */
"#225 (excluded compat_netbsd32_msgget)", /* 225 = excluded compat_netbsd32_msgget */
"#226 (excluded compat_netbsd32_msgsnd)", /* 226 = excluded compat_netbsd32_msgsnd */
"#227 (excluded compat_netbsd32_msgrcv)", /* 227 = excluded compat_netbsd32_msgrcv */
"#224 (excluded netbsd32_msgctl)", /* 224 = excluded netbsd32_msgctl */
"#225 (excluded netbsd32_msgget)", /* 225 = excluded netbsd32_msgget */
"#226 (excluded netbsd32_msgsnd)", /* 226 = excluded netbsd32_msgsnd */
"#227 (excluded netbsd32_msgrcv)", /* 227 = excluded netbsd32_msgrcv */
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
"compat_netbsd32_shmat", /* 228 = compat_netbsd32_shmat */
"compat_netbsd32_shmctl", /* 229 = compat_netbsd32_shmctl */
"compat_netbsd32_shmdt", /* 230 = compat_netbsd32_shmdt */
"compat_netbsd32_shmget", /* 231 = compat_netbsd32_shmget */
"netbsd32_shmat", /* 228 = netbsd32_shmat */
"compat_14_netbsd32_shmctl", /* 229 = compat_14 netbsd32_shmctl */
"netbsd32_shmdt", /* 230 = netbsd32_shmdt */
"netbsd32_shmget", /* 231 = netbsd32_shmget */
#else
"#228 (excluded compat_netbsd32_shmat)", /* 228 = excluded compat_netbsd32_shmat */
"#229 (excluded compat_netbsd32_shmctl)", /* 229 = excluded compat_netbsd32_shmctl */
"#230 (excluded compat_netbsd32_shmdt)", /* 230 = excluded compat_netbsd32_shmdt */
"#231 (excluded compat_netbsd32_shmget)", /* 231 = excluded compat_netbsd32_shmget */
"#228 (excluded netbsd32_shmat)", /* 228 = excluded netbsd32_shmat */
"#229 (excluded netbsd32_shmctl)", /* 229 = excluded netbsd32_shmctl */
"#230 (excluded netbsd32_shmdt)", /* 230 = excluded netbsd32_shmdt */
"#231 (excluded netbsd32_shmget)", /* 231 = excluded netbsd32_shmget */
#endif
"compat_netbsd32_clock_gettime", /* 232 = compat_netbsd32_clock_gettime */
"compat_netbsd32_clock_settime", /* 233 = compat_netbsd32_clock_settime */
"compat_netbsd32_clock_getres", /* 234 = compat_netbsd32_clock_getres */
"netbsd32_clock_gettime", /* 232 = netbsd32_clock_gettime */
"netbsd32_clock_settime", /* 233 = netbsd32_clock_settime */
"netbsd32_clock_getres", /* 234 = netbsd32_clock_getres */
"#235 (unimplemented timer_create)", /* 235 = unimplemented timer_create */
"#236 (unimplemented timer_delete)", /* 236 = unimplemented timer_delete */
"#237 (unimplemented timer_settime)", /* 237 = unimplemented timer_settime */
"#238 (unimplemented timer_gettime)", /* 238 = unimplemented timer_gettime */
"#239 (unimplemented timer_getoverrun)", /* 239 = unimplemented timer_getoverrun */
"compat_netbsd32_nanosleep", /* 240 = compat_netbsd32_nanosleep */
"compat_netbsd32_fdatasync", /* 241 = compat_netbsd32_fdatasync */
"netbsd32_nanosleep", /* 240 = netbsd32_nanosleep */
"netbsd32_fdatasync", /* 241 = netbsd32_fdatasync */
"#242 (unimplemented)", /* 242 = unimplemented */
"#243 (unimplemented)", /* 243 = unimplemented */
"#244 (unimplemented)", /* 244 = unimplemented */
@ -383,29 +383,29 @@ char *netbsd32_syscallnames[] = {
"#267 (unimplemented)", /* 267 = unimplemented */
"#268 (unimplemented)", /* 268 = unimplemented */
"#269 (unimplemented)", /* 269 = unimplemented */
"compat_netbsd32___posix_rename", /* 270 = compat_netbsd32___posix_rename */
"compat_netbsd32_swapctl", /* 271 = compat_netbsd32_swapctl */
"compat_netbsd32_getdents", /* 272 = compat_netbsd32_getdents */
"compat_netbsd32_minherit", /* 273 = compat_netbsd32_minherit */
"compat_netbsd32_lchmod", /* 274 = compat_netbsd32_lchmod */
"compat_netbsd32_lchown", /* 275 = compat_netbsd32_lchown */
"compat_netbsd32_lutimes", /* 276 = compat_netbsd32_lutimes */
"compat_netbsd32___msync13", /* 277 = compat_netbsd32___msync13 */
"compat_netbsd32___stat13", /* 278 = compat_netbsd32___stat13 */
"compat_netbsd32___fstat13", /* 279 = compat_netbsd32___fstat13 */
"compat_netbsd32___lstat13", /* 280 = compat_netbsd32___lstat13 */
"compat_netbsd32___sigaltstack14", /* 281 = compat_netbsd32___sigaltstack14 */
"netbsd32___posix_rename", /* 270 = netbsd32___posix_rename */
"netbsd32_swapctl", /* 271 = netbsd32_swapctl */
"netbsd32_getdents", /* 272 = netbsd32_getdents */
"netbsd32_minherit", /* 273 = netbsd32_minherit */
"netbsd32_lchmod", /* 274 = netbsd32_lchmod */
"netbsd32_lchown", /* 275 = netbsd32_lchown */
"netbsd32_lutimes", /* 276 = netbsd32_lutimes */
"netbsd32___msync13", /* 277 = netbsd32___msync13 */
"netbsd32___stat13", /* 278 = netbsd32___stat13 */
"netbsd32___fstat13", /* 279 = netbsd32___fstat13 */
"netbsd32___lstat13", /* 280 = netbsd32___lstat13 */
"netbsd32___sigaltstack14", /* 281 = netbsd32___sigaltstack14 */
"__vfork14", /* 282 = __vfork14 */
"compat_netbsd32___posix_chown", /* 283 = compat_netbsd32___posix_chown */
"compat_netbsd32___posix_fchown", /* 284 = compat_netbsd32___posix_fchown */
"compat_netbsd32___posix_lchown", /* 285 = compat_netbsd32___posix_lchown */
"compat_netbsd32_getsid", /* 286 = compat_netbsd32_getsid */
"netbsd32___posix_chown", /* 283 = netbsd32___posix_chown */
"netbsd32___posix_fchown", /* 284 = netbsd32___posix_fchown */
"netbsd32___posix_lchown", /* 285 = netbsd32___posix_lchown */
"netbsd32_getsid", /* 286 = netbsd32_getsid */
"#287 (unimplemented)", /* 287 = unimplemented */
#if defined(KTRACE) || !defined(_KERNEL)
"compat_netbsd32_fktrace", /* 288 = compat_netbsd32_fktrace */
"netbsd32_fktrace", /* 288 = netbsd32_fktrace */
#else
"#288 (excluded compat_netbsd32_fktrace)", /* 288 = excluded compat_netbsd32_fktrace */
"#288 (excluded netbsd32_fktrace)", /* 288 = excluded netbsd32_fktrace */
#endif
"compat_netbsd32_preadv", /* 289 = compat_netbsd32_preadv */
"compat_netbsd32_pwritev", /* 290 = compat_netbsd32_pwritev */
"netbsd32_preadv", /* 289 = netbsd32_preadv */
"netbsd32_pwritev", /* 290 = netbsd32_pwritev */
};

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
# $NetBSD: syscalls.conf,v 1.3 1999/03/25 16:22:50 mrg Exp $
# $NetBSD: syscalls.conf,v 1.4 1999/10/11 01:36:24 eeh Exp $
sysnames="netbsd32_syscalls.c"
sysnumhdr="netbsd32_syscall.h"
syssw="netbsd32_sysent.c"
sysarghdr="netbsd32_syscallargs.h"
compatopts="compat_43 compat_09 compat_10 compat_11 compat_12 compat_13"
compatopts="compat_43 compat_09 compat_10 compat_11 compat_12 compat_13 compat_14"
libcompatopts=""
switchname="netbsd32_sysent"

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.9 1999/07/12 21:55:20 kleink Exp $
$NetBSD: syscalls.master,v 1.10 1999/10/11 01:36:24 eeh Exp $
; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@ -61,179 +61,179 @@
; of the current calls.
0 INDIR { int sys_syscall(int number, ...); }
1 STD { void compat_netbsd32_exit(int rval); }
1 STD { void netbsd32_exit(int rval); }
2 NOARGS { int sys_fork(void); }
3 STD { netbsd32_ssize_t compat_netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
4 STD { netbsd32_ssize_t compat_netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
5 STD { int compat_netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); }
6 STD { int compat_netbsd32_close(int fd); }
7 STD { int compat_netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); }
8 COMPAT_43 { int compat_netbsd32_ocreat(const netbsd32_charp path, mode_t mode); }
9 STD { int compat_netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); }
10 STD { int compat_netbsd32_unlink(const netbsd32_charp path); }
3 STD { netbsd32_ssize_t netbsd32_read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
4 STD { netbsd32_ssize_t netbsd32_write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
5 STD { int netbsd32_open(const netbsd32_charp path, int flags, ... mode_t mode); }
6 STD { int netbsd32_close(int fd); }
7 STD { int netbsd32_wait4(int pid, netbsd32_intp status, int options, netbsd32_rusagep_t rusage); }
8 COMPAT_43 { int netbsd32_ocreat(const netbsd32_charp path, mode_t mode); }
9 STD { int netbsd32_link(const netbsd32_charp path, const netbsd32_charp link); }
10 STD { int netbsd32_unlink(const netbsd32_charp path); }
11 OBSOL execv
12 STD { int compat_netbsd32_chdir(const netbsd32_charp path); }
13 STD { int compat_netbsd32_fchdir(int fd); }
14 STD { int compat_netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); }
15 STD { int compat_netbsd32_chmod(const netbsd32_charp path, mode_t mode); }
16 STD { int compat_netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
17 STD { int compat_netbsd32_break(netbsd32_charp nsize); }
18 STD { int compat_netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); }
19 COMPAT_43 { netbsd32_long compat_netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
12 STD { int netbsd32_chdir(const netbsd32_charp path); }
13 STD { int netbsd32_fchdir(int fd); }
14 STD { int netbsd32_mknod(const netbsd32_charp path, mode_t mode, dev_t dev); }
15 STD { int netbsd32_chmod(const netbsd32_charp path, mode_t mode); }
16 STD { int netbsd32_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
17 STD { int netbsd32_break(netbsd32_charp nsize); }
18 STD { int netbsd32_getfsstat(netbsd32_statfsp_t buf, netbsd32_long bufsize, int flags); }
19 COMPAT_43 { netbsd32_long netbsd32_olseek(int fd, netbsd32_long offset, int whence); }
20 NOARGS { pid_t sys_getpid(void); }
21 STD { int compat_netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); }
22 STD { int compat_netbsd32_unmount(const netbsd32_charp path, int flags); }
23 STD { int compat_netbsd32_setuid(uid_t uid); }
21 STD { int netbsd32_mount(const netbsd32_charp type, const netbsd32_charp path, int flags, netbsd32_voidp data); }
22 STD { int netbsd32_unmount(const netbsd32_charp path, int flags); }
23 STD { int netbsd32_setuid(uid_t uid); }
24 NOARGS { uid_t sys_getuid(void); }
25 NOARGS { uid_t sys_geteuid(void); }
26 STD { int compat_netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); }
27 STD { netbsd32_ssize_t compat_netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); }
28 STD { netbsd32_ssize_t compat_netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); }
29 STD { netbsd32_ssize_t compat_netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); }
30 STD { int compat_netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
31 STD { int compat_netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
32 STD { int compat_netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
33 STD { int compat_netbsd32_access(const netbsd32_charp path, int flags); }
34 STD { int compat_netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); }
35 STD { int compat_netbsd32_fchflags(int fd, netbsd32_u_long flags); }
26 STD { int netbsd32_ptrace(int req, pid_t pid, netbsd32_caddr_t addr, int data); }
27 STD { netbsd32_ssize_t netbsd32_recvmsg(int s, netbsd32_msghdrp_t msg, int flags); }
28 STD { netbsd32_ssize_t netbsd32_sendmsg(int s, const netbsd32_msghdrp_t msg, int flags); }
29 STD { netbsd32_ssize_t netbsd32_recvfrom(int s, netbsd32_voidp buf, netbsd32_size_t len, int flags, netbsd32_sockaddrp_t from, netbsd32_intp fromlenaddr); }
30 STD { int netbsd32_accept(int s, netbsd32_sockaddrp_t name, netbsd32_intp anamelen); }
31 STD { int netbsd32_getpeername(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
32 STD { int netbsd32_getsockname(int fdes, netbsd32_sockaddrp_t asa, netbsd32_intp alen); }
33 STD { int netbsd32_access(const netbsd32_charp path, int flags); }
34 STD { int netbsd32_chflags(const netbsd32_charp path, netbsd32_u_long flags); }
35 STD { int netbsd32_fchflags(int fd, netbsd32_u_long flags); }
36 NOARGS { void sys_sync(void); }
37 STD { int compat_netbsd32_kill(int pid, int signum); }
38 COMPAT_43 { int compat_netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
37 STD { int netbsd32_kill(int pid, int signum); }
38 COMPAT_43 { int netbsd32_stat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
39 NOARGS { pid_t sys_getppid(void); }
40 COMPAT_43 { int compat_netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
41 STD { int compat_netbsd32_dup(int fd); }
40 COMPAT_43 { int netbsd32_lstat43(const netbsd32_charp path, netbsd32_stat43p_t ub); }
41 STD { int netbsd32_dup(int fd); }
42 NOARGS { int sys_pipe(void); }
43 NOARGS { gid_t sys_getegid(void); }
44 STD { int compat_netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); }
44 STD { int netbsd32_profil(netbsd32_caddr_t samples, netbsd32_size_t size, netbsd32_u_long offset, u_int scale); }
#if defined(KTRACE) || !defined(_KERNEL)
45 STD { int compat_netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); }
45 STD { int netbsd32_ktrace(const netbsd32_charp fname, int ops, int facs, int pid); }
#else
45 EXCL compat_netbsd32_ktrace
45 EXCL netbsd32_ktrace
#endif
46 STD { int compat_netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); }
46 STD { int netbsd32_sigaction(int signum, const netbsd32_sigactionp_t nsa, netbsd32_sigactionp_t osa); }
47 NOARGS { gid_t sys_getgid(void); }
48 COMPAT_13 { int compat_netbsd32_sigprocmask(int how, \
48 COMPAT_13 { int netbsd32_sigprocmask(int how, \
int mask); } sigprocmask13
49 STD { int compat_netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); }
50 STD { int compat_netbsd32_setlogin(const netbsd32_charp namebuf); }
51 STD { int compat_netbsd32_acct(const netbsd32_charp path); }
49 STD { int netbsd32___getlogin(netbsd32_charp namebuf, u_int namelen); }
50 STD { int netbsd32_setlogin(const netbsd32_charp namebuf); }
51 STD { int netbsd32_acct(const netbsd32_charp path); }
52 COMPAT_13 { int sys_sigpending(void); } sigpending13
53 COMPAT_13 { int compat_netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); }
54 STD { int compat_netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); }
53 COMPAT_13 { int netbsd32_sigaltstack13(const netbsd32_sigaltstack13p_t nss, netbsd32_sigaltstack13p_t oss); }
54 STD { int netbsd32_ioctl(int fd, netbsd32_u_long com, ... netbsd32_voidp data); }
#ifdef COMPAT_12
55 COMPAT_12 { int compat_netbsd32_reboot(int opt); }
55 COMPAT_12 { int netbsd32_reboot(int opt); }
#else
55 OBSOL oreboot
#endif
56 STD { int compat_netbsd32_revoke(const netbsd32_charp path); }
57 STD { int compat_netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); }
58 STD { int compat_netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
59 STD { int compat_netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); }
60 STD { mode_t compat_netbsd32_umask(mode_t newmask); }
61 STD { int compat_netbsd32_chroot(const netbsd32_charp path); }
62 COMPAT_43 { int compat_netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
63 COMPAT_43 { int compat_netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); }
56 STD { int netbsd32_revoke(const netbsd32_charp path); }
57 STD { int netbsd32_symlink(const netbsd32_charp path, const netbsd32_charp link); }
58 STD { int netbsd32_readlink(const netbsd32_charp path, netbsd32_charp buf, netbsd32_size_t count); }
59 STD { int netbsd32_execve(const netbsd32_charp path, netbsd32_charpp argp, netbsd32_charpp envp); }
60 STD { mode_t netbsd32_umask(mode_t newmask); }
61 STD { int netbsd32_chroot(const netbsd32_charp path); }
62 COMPAT_43 { int netbsd32_fstat43(int fd, netbsd32_stat43p_t sb); }
63 COMPAT_43 { int netbsd32_ogetkerninfo(int op, netbsd32_charp where, netbsd32_intp size, int arg); }
64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize
65 COMPAT_12 { int compat_netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); }
65 COMPAT_12 { int netbsd32_msync(netbsd32_caddr_t addr, netbsd32_size_t len); }
; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
66 NOARGS { int sys_vfork(void); }
67 OBSOL vread
68 OBSOL vwrite
69 STD { int compat_netbsd32_sbrk(netbsd32_intptr_t incr); }
70 STD { int compat_netbsd32_sstk(int incr); }
71 COMPAT_43 { int compat_netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); }
72 STD { int compat_netbsd32_ovadvise(int anom); } vadvise
73 STD { int compat_netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
74 STD { int compat_netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); }
75 STD { int compat_netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); }
69 STD { int netbsd32_sbrk(netbsd32_intptr_t incr); }
70 STD { int netbsd32_sstk(int incr); }
71 COMPAT_43 { int netbsd32_ommap(netbsd32_caddr_t addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pos); }
72 STD { int netbsd32_ovadvise(int anom); } vadvise
73 STD { int netbsd32_munmap(netbsd32_voidp addr, netbsd32_size_t len); }
74 STD { int netbsd32_mprotect(netbsd32_voidp addr, netbsd32_size_t len, int prot); }
75 STD { int netbsd32_madvise(netbsd32_voidp addr, netbsd32_size_t len, int behav); }
76 OBSOL vhangup
77 OBSOL vlimit
78 STD { int compat_netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
79 STD { int compat_netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
80 STD { int compat_netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); }
78 STD { int netbsd32_mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
79 STD { int netbsd32_getgroups(int gidsetsize, netbsd32_gid_tp gidset); }
80 STD { int netbsd32_setgroups(int gidsetsize, const netbsd32_gid_tp gidset); }
81 NOARGS { int sys_getpgrp(void); }
82 STD { int compat_netbsd32_setpgid(int pid, int pgid); }
83 STD { int compat_netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
82 STD { int netbsd32_setpgid(int pid, int pgid); }
83 STD { int netbsd32_setitimer(int which, const netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
84 COMPAT_43 { int sys_wait(void); } owait
85 COMPAT_12 { int compat_netbsd32_oswapon(const netbsd32_charp name); }
86 STD { int compat_netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); }
87 COMPAT_43 { int compat_netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
88 COMPAT_43 { int compat_netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
85 COMPAT_12 { int netbsd32_oswapon(const netbsd32_charp name); }
86 STD { int netbsd32_getitimer(int which, netbsd32_itimervalp_t itv); }
87 COMPAT_43 { int netbsd32_ogethostname(netbsd32_charp hostname, u_int len); }
88 COMPAT_43 { int netbsd32_osethostname(netbsd32_charp hostname, u_int len); }
89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize
90 STD { int compat_netbsd32_dup2(int from, int to); }
90 STD { int netbsd32_dup2(int from, int to); }
91 UNIMPL getdopt
92 STD { int compat_netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); }
93 STD { int compat_netbsd32_select(int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
92 STD { int netbsd32_fcntl(int fd, int cmd, ... netbsd32_voidp arg); }
93 STD { int netbsd32_select(int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
94 UNIMPL setdopt
95 STD { int compat_netbsd32_fsync(int fd); }
96 STD { int compat_netbsd32_setpriority(int which, int who, int prio); }
97 STD { int compat_netbsd32_socket(int domain, int type, int protocol); }
98 STD { int compat_netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); }
99 COMPAT_43 { int compat_netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
100 STD { int compat_netbsd32_getpriority(int which, int who); }
101 COMPAT_43 { int compat_netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); }
102 COMPAT_43 { int compat_netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); }
103 STD { int compat_netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); }
104 STD { int compat_netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); }
105 STD { int compat_netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); }
106 STD { int compat_netbsd32_listen(int s, int backlog); }
95 STD { int netbsd32_fsync(int fd); }
96 STD { int netbsd32_setpriority(int which, int who, int prio); }
97 STD { int netbsd32_socket(int domain, int type, int protocol); }
98 STD { int netbsd32_connect(int s, const netbsd32_sockaddrp_t name, int namelen); }
99 COMPAT_43 { int netbsd32_oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
100 STD { int netbsd32_getpriority(int which, int who); }
101 COMPAT_43 { int netbsd32_osend(int s, netbsd32_caddr_t buf, int len, int flags); }
102 COMPAT_43 { int netbsd32_orecv(int s, netbsd32_caddr_t buf, int len, int flags); }
103 STD { int netbsd32_sigreturn(netbsd32_sigcontextp_t sigcntxp); }
104 STD { int netbsd32_bind(int s, const netbsd32_sockaddrp_t name, int namelen); }
105 STD { int netbsd32_setsockopt(int s, int level, int name, const netbsd32_voidp val, int valsize); }
106 STD { int netbsd32_listen(int s, int backlog); }
107 OBSOL vtimes
108 COMPAT_43 { int compat_netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
108 COMPAT_43 { int netbsd32_osigvec(int signum, netbsd32_sigvecp_t nsv, netbsd32_sigvecp_t osv); }
#ifdef COMPAT_43
109 COMPAT_43 { int compat_netbsd32_sigblock(int mask); }
110 COMPAT_43 { int compat_netbsd32_sigsetmask(int mask); }
109 COMPAT_43 { int netbsd32_sigblock(int mask); }
110 COMPAT_43 { int netbsd32_sigsetmask(int mask); }
#else
109 OBSOL sigblock
110 OBSOL sigsetmask
#endif
111 COMPAT_13 { int compat_netbsd32_sigsuspend(int mask); } sigsuspend13
112 COMPAT_43 { int compat_netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); }
113 COMPAT_43 { int compat_netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); }
114 COMPAT_43 { int compat_netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); }
111 COMPAT_13 { int netbsd32_sigsuspend(int mask); } sigsuspend13
112 COMPAT_43 { int netbsd32_osigstack(netbsd32_sigstackp_t nss, netbsd32_sigstackp_t oss); }
113 COMPAT_43 { int netbsd32_orecvmsg(int s, netbsd32_omsghdrp_t msg, int flags); }
114 COMPAT_43 { int netbsd32_osendmsg(int s, netbsd32_caddr_t msg, int flags); }
115 OBSOL vtrace
116 STD { int compat_netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); }
117 STD { int compat_netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
118 STD { int compat_netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); }
116 STD { int netbsd32_gettimeofday(netbsd32_timevalp_t tp, netbsd32_timezonep_t tzp); }
117 STD { int netbsd32_getrusage(int who, netbsd32_rusagep_t rusage); }
118 STD { int netbsd32_getsockopt(int s, int level, int name, netbsd32_voidp val, netbsd32_intp avalsize); }
119 OBSOL resuba
120 STD { netbsd32_ssize_t compat_netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
121 STD { netbsd32_ssize_t compat_netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
122 STD { int compat_netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); }
123 STD { int compat_netbsd32_fchown(int fd, uid_t uid, gid_t gid); }
124 STD { int compat_netbsd32_fchmod(int fd, mode_t mode); }
125 COMPAT_43 { int compat_netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); }
126 STD { int compat_netbsd32_setreuid(uid_t ruid, uid_t euid); }
127 STD { int compat_netbsd32_setregid(gid_t rgid, gid_t egid); }
128 STD { int compat_netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); }
129 COMPAT_43 { int compat_netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); }
130 COMPAT_43 { int compat_netbsd32_oftruncate(int fd, netbsd32_long length); }
131 STD { int compat_netbsd32_flock(int fd, int how); }
132 STD { int compat_netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); }
133 STD { netbsd32_ssize_t compat_netbsd32_sendto(int s, const netbsd32_voidp buf, netbsd32_size_t len, int flags, const netbsd32_sockaddrp_t to, int tolen); }
134 STD { int compat_netbsd32_shutdown(int s, int how); }
135 STD { int compat_netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); }
136 STD { int compat_netbsd32_mkdir(const netbsd32_charp path, mode_t mode); }
137 STD { int compat_netbsd32_rmdir(const netbsd32_charp path); }
138 STD { int compat_netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
120 STD { netbsd32_ssize_t netbsd32_readv(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
121 STD { netbsd32_ssize_t netbsd32_writev(int fd, const netbsd32_iovecp_t iovp, int iovcnt); }
122 STD { int netbsd32_settimeofday(const netbsd32_timevalp_t tv, const netbsd32_timezonep_t tzp); }
123 STD { int netbsd32_fchown(int fd, uid_t uid, gid_t gid); }
124 STD { int netbsd32_fchmod(int fd, mode_t mode); }
125 COMPAT_43 { int netbsd32_orecvfrom(int s, netbsd32_caddr_t buf, netbsd32_size_t len, int flags, netbsd32_caddr_t from, netbsd32_intp fromlenaddr); }
126 STD { int netbsd32_setreuid(uid_t ruid, uid_t euid); }
127 STD { int netbsd32_setregid(gid_t rgid, gid_t egid); }
128 STD { int netbsd32_rename(const netbsd32_charp from, const netbsd32_charp to); }
129 COMPAT_43 { int netbsd32_otruncate(const netbsd32_charp path, netbsd32_long length); }
130 COMPAT_43 { int netbsd32_oftruncate(int fd, netbsd32_long length); }
131 STD { int netbsd32_flock(int fd, int how); }
132 STD { int netbsd32_mkfifo(const netbsd32_charp path, mode_t mode); }
133 STD { netbsd32_ssize_t netbsd32_sendto(int s, const netbsd32_voidp buf, netbsd32_size_t len, int flags, const netbsd32_sockaddrp_t to, int tolen); }
134 STD { int netbsd32_shutdown(int s, int how); }
135 STD { int netbsd32_socketpair(int domain, int type, int protocol, netbsd32_intp rsv); }
136 STD { int netbsd32_mkdir(const netbsd32_charp path, mode_t mode); }
137 STD { int netbsd32_rmdir(const netbsd32_charp path); }
138 STD { int netbsd32_utimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
139 OBSOL 4.2 sigreturn
140 STD { int compat_netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
141 COMPAT_43 { int compat_netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); }
140 STD { int netbsd32_adjtime(const netbsd32_timevalp_t delta, netbsd32_timevalp_t olddelta); }
141 COMPAT_43 { int netbsd32_ogetpeername(int fdes, netbsd32_caddr_t asa, netbsd32_intp alen); }
142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid
#ifdef COMPAT_43
143 COMPAT_43 { int compat_netbsd32_sethostid(int32_t hostid); }
143 COMPAT_43 { int netbsd32_sethostid(int32_t hostid); }
#else
143 OBSOL sethostid
#endif
144 COMPAT_43 { int compat_netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); }
145 COMPAT_43 { int compat_netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); }
144 COMPAT_43 { int netbsd32_ogetrlimit(int which, netbsd32_orlimitp_t rlp); }
145 COMPAT_43 { int netbsd32_osetrlimit(int which, const netbsd32_orlimitp_t rlp); }
#ifdef COMPAT_43
146 COMPAT_43 { int compat_netbsd32_killpg(int pgid, int signum); }
146 COMPAT_43 { int netbsd32_killpg(int pgid, int signum); }
#else
146 OBSOL killpg
#endif
147 NOARGS { int sys_setsid(void); }
148 STD { int compat_netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); }
148 STD { int netbsd32_quotactl(const netbsd32_charp path, int cmd, int uid, netbsd32_caddr_t arg); }
149 COMPAT_43 { int sys_quota(void); } oquota
150 COMPAT_43 { int compat_netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); }
150 COMPAT_43 { int netbsd32_ogetsockname(int fdec, netbsd32_caddr_t asa, netbsd32_intp alen); }
; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls. (This includes various calls added for compatibity
@ -244,54 +244,54 @@
153 UNIMPL
154 UNIMPL
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
155 STD { int compat_netbsd32_nfssvc(int flag, netbsd32_voidp argp); }
155 STD { int netbsd32_nfssvc(int flag, netbsd32_voidp argp); }
#else
155 EXCL compat_netbsd32_nfssvc
155 EXCL netbsd32_nfssvc
#endif
156 COMPAT_43 { int compat_netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
157 STD { int compat_netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); }
158 STD { int compat_netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); }
156 COMPAT_43 { int netbsd32_ogetdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
157 STD { int netbsd32_statfs(const netbsd32_charp path, netbsd32_statfsp_t buf); }
158 STD { int netbsd32_fstatfs(int fd, netbsd32_statfsp_t buf); }
159 UNIMPL
160 UNIMPL
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
161 STD { int compat_netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
161 STD { int netbsd32_getfh(const netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
#else
161 EXCL compat_netbsd32_getfh
161 EXCL netbsd32_getfh
#endif
162 COMPAT_09 { int compat_netbsd32_ogetdomainname(netbsd32_charp domainname, int len); }
163 COMPAT_09 { int compat_netbsd32_osetdomainname(netbsd32_charp domainname, int len); }
164 COMPAT_09 { int compat_netbsd32_uname(netbsd32_outsnamep_t name); }
165 STD { int compat_netbsd32_sysarch(int op, netbsd32_voidp parms); }
162 COMPAT_09 { int netbsd32_ogetdomainname(netbsd32_charp domainname, int len); }
163 COMPAT_09 { int netbsd32_osetdomainname(netbsd32_charp domainname, int len); }
164 COMPAT_09 { int netbsd32_uname(netbsd32_outsnamep_t name); }
165 STD { int netbsd32_sysarch(int op, netbsd32_voidp parms); }
166 UNIMPL
167 UNIMPL
168 UNIMPL
; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
#if (defined(SYSVSEM) || !defined(_KERNEL) && !defined(alpha) && defined(COMPAT_10)
169 STD { int compat_netbsd32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
169 STD { int netbsd32_compat_10_sys_semsys(int which, int a2, int a3, int a4, int a5); } osemsys
#else
169 EXCL 1.0 semsys
#endif
; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
170 STD { int compat_netbsd32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
170 STD { int netbsd32_compat_10_sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); } omsgsys
#else
170 EXCL 1.0 msgsys
#endif
; XXX more generally, never on machines where sizeof(netbsd32_voidp ) != sizeof(int)
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
171 STD { int compat_netbsd32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
171 STD { int netbsd32_compat_10_sys_shmsys(int which, int a2, int a3, int a4); } oshmsys
#else
171 EXCL 1.0 shmsys
#endif
172 UNIMPL
173 STD { netbsd32_ssize_t compat_netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
174 STD { netbsd32_ssize_t compat_netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
173 STD { netbsd32_ssize_t netbsd32_pread(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
174 STD { netbsd32_ssize_t netbsd32_pwrite(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte, int pad, off_t offset); }
#if defined(NTP) && !defined(_KERNEL)
175 STD { int compat_netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
176 STD { int compat_netbsd32_ntp_adjtime(netbsd32_timexp_t tp); }
175 STD { int netbsd32_ntp_gettime(netbsd32_ntptimevalp_t ntvp); }
176 STD { int netbsd32_ntp_adjtime(netbsd32_timexp_t tp); }
#else
175 EXCL compat_netbsd32_ntp_gettime
176 EXCL compat_netbsd32_ntp_adjtime
175 EXCL netbsd32_ntp_gettime
176 EXCL netbsd32_ntp_adjtime
#endif
177 UNIMPL
178 UNIMPL
@ -299,42 +299,42 @@
180 UNIMPL
; Syscalls 180-199 are used by/reserved for BSD
181 STD { int compat_netbsd32_setgid(gid_t gid); }
182 STD { int compat_netbsd32_setegid(gid_t egid); }
183 STD { int compat_netbsd32_seteuid(uid_t euid); }
181 STD { int netbsd32_setgid(gid_t gid); }
182 STD { int netbsd32_setegid(gid_t egid); }
183 STD { int netbsd32_seteuid(uid_t euid); }
#if defined(LFS) || !defined(_KERNEL)
184 STD { int compat_netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
185 STD { int compat_netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
186 STD { int compat_netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); }
187 STD { int compat_netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); }
184 STD { int netbsd32_sys_lfs_bmapv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
185 STD { int netbsd32_sys_lfs_markv(netbsd32_fsid_tp_t fsidp, netbsd32_block_infop_t blkiov, int blkcnt); }
186 STD { int netbsd32_sys_lfs_segclean(netbsd32_fsid_tp_t fsidp, netbsd32_u_long segment); }
187 STD { int netbsd32_sys_lfs_segwait(netbsd32_fsid_tp_t fsidp, netbsd32_timevalp_t tv); }
#else
184 EXCL compat_netbsd32_sys_lfs_bmapv
185 EXCL compat_netbsd32_sys_lfs_markv
186 EXCL compat_netbsd32_sys_lfs_segclean
187 EXCL compat_netbsd32_sys_lfs_segwait
184 EXCL netbsd32_sys_lfs_bmapv
185 EXCL netbsd32_sys_lfs_markv
186 EXCL netbsd32_sys_lfs_segclean
187 EXCL netbsd32_sys_lfs_segwait
#endif
188 COMPAT_12 { int compat_netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
189 COMPAT_12 { int compat_netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); }
190 COMPAT_12 { int compat_netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
191 STD { netbsd32_long compat_netbsd32_pathconf(const netbsd32_charp path, int name); }
192 STD { netbsd32_long compat_netbsd32_fpathconf(int fd, int name); }
188 COMPAT_12 { int netbsd32_stat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
189 COMPAT_12 { int netbsd32_fstat12(int fd, netbsd32_stat12p_t sb); }
190 COMPAT_12 { int netbsd32_lstat12(const netbsd32_charp path, netbsd32_stat12p_t ub); }
191 STD { netbsd32_long netbsd32_pathconf(const netbsd32_charp path, int name); }
192 STD { netbsd32_long netbsd32_fpathconf(int fd, int name); }
193 UNIMPL
194 STD { int compat_netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); }
195 STD { int compat_netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); }
196 COMPAT_12 { int compat_netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
197 STD { netbsd32_voidp compat_netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); }
194 STD { int netbsd32_getrlimit(int which, netbsd32_rlimitp_t rlp); }
195 STD { int netbsd32_setrlimit(int which, const netbsd32_rlimitp_t rlp); }
196 COMPAT_12 { int netbsd32_getdirentries(int fd, netbsd32_charp buf, u_int count, netbsd32_longp basep); }
197 STD { netbsd32_voidp netbsd32_mmap(netbsd32_voidp addr, netbsd32_size_t len, int prot, int flags, int fd, netbsd32_long pad, off_t pos); }
198 INDIR { quad_t sys___syscall(quad_t num, ...); }
199 STD { off_t compat_netbsd32_lseek(int fd, int pad, off_t offset, int whence); }
200 STD { int compat_netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); }
201 STD { int compat_netbsd32_ftruncate(int fd, int pad, off_t length); }
202 STD { int compat_netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); }
203 STD { int compat_netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); }
204 STD { int compat_netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); }
205 STD { int compat_netbsd32_undelete(const netbsd32_charp path); }
206 STD { int compat_netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); }
207 STD { int compat_netbsd32_getpgid(pid_t pid); }
208 STD { int compat_netbsd32_reboot(int opt, netbsd32_charp bootstr); }
209 STD { int compat_netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); }
199 STD { off_t netbsd32_lseek(int fd, int pad, off_t offset, int whence); }
200 STD { int netbsd32_truncate(const netbsd32_charp path, int pad, off_t length); }
201 STD { int netbsd32_ftruncate(int fd, int pad, off_t length); }
202 STD { int netbsd32___sysctl(netbsd32_intp name, u_int namelen, netbsd32_voidp old, netbsd32_size_tp oldlenp, netbsd32_voidp new, netbsd32_size_t newlen); }
203 STD { int netbsd32_mlock(const netbsd32_voidp addr, netbsd32_size_t len); }
204 STD { int netbsd32_munlock(const netbsd32_voidp addr, netbsd32_size_t len); }
205 STD { int netbsd32_undelete(const netbsd32_charp path); }
206 STD { int netbsd32_futimes(int fd, const netbsd32_timevalp_t tptr); }
207 STD { int netbsd32_getpgid(pid_t pid); }
208 STD { int netbsd32_reboot(int opt, netbsd32_charp bootstr); }
209 STD { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, int timeout); }
;
; Syscalls 210-219 are reserved for dynamically loaded syscalls
;
@ -363,41 +363,41 @@
#endif /* !LKM || !_KERNEL */
; System calls 220-300 are reserved for use by NetBSD
#if defined(SYSVSEM) || !defined(_KERNEL)
220 STD { int compat_netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); }
221 STD { int compat_netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); }
222 STD { int compat_netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
223 STD { int compat_netbsd32_semconfig(int flag); }
220 COMPAT_14 { int netbsd32___semctl(int semid, int semnum, int cmd, netbsd32_semunu_t arg); }
221 STD { int netbsd32_semget(netbsd32_key_t key, int nsems, int semflg); }
222 STD { int netbsd32_semop(int semid, netbsd32_sembufp_t sops, netbsd32_size_t nsops); }
223 STD { int netbsd32_semconfig(int flag); }
#else
220 EXCL compat_netbsd32_semctl
221 EXCL compat_netbsd32_semget
222 EXCL compat_netbsd32_semop
223 EXCL compat_netbsd32_semconfig
220 EXCL netbsd32_semctl
221 EXCL netbsd32_semget
222 EXCL netbsd32_semop
223 EXCL netbsd32_semconfig
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
224 STD { int compat_netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); }
225 STD { int compat_netbsd32_msgget(netbsd32_key_t key, int msgflg); }
226 STD { int compat_netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); }
227 STD { netbsd32_ssize_t compat_netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); }
224 COMPAT_14 { int netbsd32_msgctl(int msqid, int cmd, netbsd32_msqid_dsp_t buf); }
225 STD { int netbsd32_msgget(netbsd32_key_t key, int msgflg); }
226 STD { int netbsd32_msgsnd(int msqid, const netbsd32_voidp msgp, netbsd32_size_t msgsz, int msgflg); }
227 STD { netbsd32_ssize_t netbsd32_msgrcv(int msqid, netbsd32_voidp msgp, netbsd32_size_t msgsz, netbsd32_long msgtyp, int msgflg); }
#else
224 EXCL compat_netbsd32_msgctl
225 EXCL compat_netbsd32_msgget
226 EXCL compat_netbsd32_msgsnd
227 EXCL compat_netbsd32_msgrcv
224 EXCL netbsd32_msgctl
225 EXCL netbsd32_msgget
226 EXCL netbsd32_msgsnd
227 EXCL netbsd32_msgrcv
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
228 STD { netbsd32_voidp compat_netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); }
229 STD { int compat_netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); }
230 STD { int compat_netbsd32_shmdt(const netbsd32_voidp shmaddr); }
231 STD { int compat_netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); }
228 STD { netbsd32_voidp netbsd32_shmat(int shmid, const netbsd32_voidp shmaddr, int shmflg); }
229 COMPAT_14 { int netbsd32_shmctl(int shmid, int cmd, netbsd32_shmid_dsp_t buf); }
230 STD { int netbsd32_shmdt(const netbsd32_voidp shmaddr); }
231 STD { int netbsd32_shmget(netbsd32_key_t key, netbsd32_size_t size, int shmflg); }
#else
228 EXCL compat_netbsd32_shmat
229 EXCL compat_netbsd32_shmctl
230 EXCL compat_netbsd32_shmdt
231 EXCL compat_netbsd32_shmget
228 EXCL netbsd32_shmat
229 EXCL netbsd32_shmctl
230 EXCL netbsd32_shmdt
231 EXCL netbsd32_shmget
#endif
232 STD { int compat_netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
233 STD { int compat_netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); }
234 STD { int compat_netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
232 STD { int netbsd32_clock_gettime(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
233 STD { int netbsd32_clock_settime(netbsd32_clockid_t clock_id, const netbsd32_timespecp_t tp); }
234 STD { int netbsd32_clock_getres(netbsd32_clockid_t clock_id, netbsd32_timespecp_t tp); }
235 UNIMPL timer_create
236 UNIMPL timer_delete
237 UNIMPL timer_settime
@ -406,8 +406,8 @@
;
; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
;
240 STD { int compat_netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); }
241 STD { int compat_netbsd32_fdatasync(int fd); }
240 STD { int netbsd32_nanosleep(const netbsd32_timespecp_t rqtp, netbsd32_timespecp_t rmtp); }
241 STD { int netbsd32_fdatasync(int fd); }
242 UNIMPL
243 UNIMPL
244 UNIMPL
@ -436,28 +436,28 @@
267 UNIMPL
268 UNIMPL
269 UNIMPL
270 STD { int compat_netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); }
271 STD { int compat_netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); }
272 STD { int compat_netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); }
273 STD { int compat_netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); }
274 STD { int compat_netbsd32_lchmod(const netbsd32_charp path, mode_t mode); }
275 STD { int compat_netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
276 STD { int compat_netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
277 STD { int compat_netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); }
278 STD { int compat_netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); }
279 STD { int compat_netbsd32___fstat13(int fd, netbsd32_statp_t sb); }
280 STD { int compat_netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); }
281 STD { int compat_netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); }
270 STD { int netbsd32___posix_rename(const netbsd32_charp from, const netbsd32_charp to); }
271 STD { int netbsd32_swapctl(int cmd, const netbsd32_voidp arg, int misc); }
272 STD { int netbsd32_getdents(int fd, netbsd32_charp buf, netbsd32_size_t count); }
273 STD { int netbsd32_minherit(netbsd32_voidp addr, netbsd32_size_t len, int inherit); }
274 STD { int netbsd32_lchmod(const netbsd32_charp path, mode_t mode); }
275 STD { int netbsd32_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
276 STD { int netbsd32_lutimes(const netbsd32_charp path, const netbsd32_timevalp_t tptr); }
277 STD { int netbsd32___msync13(netbsd32_voidp addr, netbsd32_size_t len, int flags); }
278 STD { int netbsd32___stat13(const netbsd32_charp path, netbsd32_statp_t ub); }
279 STD { int netbsd32___fstat13(int fd, netbsd32_statp_t sb); }
280 STD { int netbsd32___lstat13(const netbsd32_charp path, netbsd32_statp_t ub); }
281 STD { int netbsd32___sigaltstack14(const netbsd32_sigaltstackp_t nss, netbsd32_sigaltstackp_t oss); }
282 NOARGS { int sys___vfork14(void); }
283 STD { int compat_netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
284 STD { int compat_netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
285 STD { int compat_netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
286 STD { pid_t compat_netbsd32_getsid(pid_t pid); }
283 STD { int netbsd32___posix_chown(const netbsd32_charp path, uid_t uid, gid_t gid); }
284 STD { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); }
285 STD { int netbsd32___posix_lchown(const netbsd32_charp path, uid_t uid, gid_t gid); }
286 STD { pid_t netbsd32_getsid(pid_t pid); }
287 UNIMPL
#if defined(KTRACE) || !defined(_KERNEL)
288 STD { int compat_netbsd32_fktrace(const int fd, int ops, int facs, int pid); }
288 STD { int netbsd32_fktrace(const int fd, int ops, int facs, int pid); }
#else
288 EXCL compat_netbsd32_fktrace
288 EXCL netbsd32_fktrace
#endif
289 STD { netbsd32_ssize_t compat_netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
290 STD { netbsd32_ssize_t compat_netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
289 STD { netbsd32_ssize_t netbsd32_preadv(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }
290 STD { netbsd32_ssize_t netbsd32_pwritev(int fd, const netbsd32_iovecp_t iovp, int iovcnt, int pad, off_t offset); }