remove COMPAT_AOUT
This commit is contained in:
parent
3ea04717bf
commit
120bb37404
|
@ -1,9 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.3 2003/11/15 20:30:59 thorpej Exp $
|
||||
|
||||
.include <bsd.sys.mk> # for HOST_SH
|
||||
|
||||
DEP= syscalls.conf syscalls.master ../../kern/makesyscalls.sh
|
||||
OBJS= aout_sysent.c aout_syscalls.c aout_syscall.h aout_syscallargs.h
|
||||
|
||||
${OBJS}: ${DEP}
|
||||
${HOST_SH} ../../kern/makesyscalls.sh syscalls.conf syscalls.master
|
|
@ -1,109 +0,0 @@
|
|||
/* $NetBSD: aout_exec.c,v 1.22 2004/03/25 16:54:10 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Christos Zoulas.
|
||||
*
|
||||
* 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. All advertising materials mentioning features or use of this software
|
||||
* must display the following acknowledgement:
|
||||
* This product includes software developed by the NetBSD
|
||||
* Foundation, Inc. and its contributors.
|
||||
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
* ``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 FOUNDATION OR CONTRIBUTORS
|
||||
* 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/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aout_exec.c,v 1.22 2004/03/25 16:54:10 drochner Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_syscall_debug.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/signalvar.h>
|
||||
|
||||
#include <compat/aout/aout_syscall.h>
|
||||
|
||||
extern struct sysent aout_sysent[];
|
||||
#ifdef SYSCALL_DEBUG
|
||||
extern const char * const aout_syscallnames[];
|
||||
#endif
|
||||
#ifdef COMPAT_16
|
||||
extern char sigcode[], esigcode[];
|
||||
struct uvm_object *emul_netbsd_aout_object;
|
||||
#endif
|
||||
#ifdef __HAVE_SYSCALL_INTERN
|
||||
void syscall_intern __P((struct proc *));
|
||||
#else
|
||||
void syscall __P((void));
|
||||
#endif
|
||||
|
||||
const struct emul emul_netbsd_aout = {
|
||||
"netbsd",
|
||||
"/emul/aout",
|
||||
#ifndef __HAVE_MINIMAL_EMUL
|
||||
EMUL_HAS_SYS___syscall,
|
||||
NULL,
|
||||
AOUT_SYS_syscall,
|
||||
AOUT_SYS_NSYSENT,
|
||||
#endif
|
||||
aout_sysent,
|
||||
#ifdef SYSCALL_DEBUG
|
||||
aout_syscallnames,
|
||||
#else
|
||||
NULL,
|
||||
#endif
|
||||
sendsig,
|
||||
trapsignal,
|
||||
NULL,
|
||||
#ifdef COMPAT_16
|
||||
sigcode,
|
||||
esigcode,
|
||||
&emul_netbsd_aout_object,
|
||||
#else
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
#endif
|
||||
setregs,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
#ifdef __HAVE_SYSCALL_INTERN
|
||||
syscall_intern,
|
||||
#else
|
||||
syscall,
|
||||
#endif
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
|
@ -1,595 +0,0 @@
|
|||
/* $NetBSD: aout_misc.c,v 1.14 2004/04/21 01:05:35 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Christos Zoulas.
|
||||
*
|
||||
* 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. All advertising materials mentioning features or use of this software
|
||||
* must display the following acknowledgement:
|
||||
* This product includes software developed by the NetBSD
|
||||
* Foundation, Inc. and its contributors.
|
||||
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
* ``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 FOUNDATION OR CONTRIBUTORS
|
||||
* 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/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aout_misc.c,v 1.14 2004/04/21 01:05:35 christos Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ktrace.h"
|
||||
#include "opt_nfsserver.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_sysv.h"
|
||||
#include "opt_compat_43.h"
|
||||
|
||||
#include "fs_lfs.h"
|
||||
#include "fs_nfs.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/syscallargs.h>
|
||||
|
||||
#include <compat/common/compat_util.h>
|
||||
#include <compat/aout/aout_syscall.h>
|
||||
#include <compat/aout/aout_syscallargs.h>
|
||||
|
||||
int
|
||||
aout_sys_open(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_open_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
#if 0
|
||||
if (SCARG(uap, flags) & O_CREAT)
|
||||
CHECK_ALT_CREAT(p, &sg, SCARG(uap, path));
|
||||
else
|
||||
#endif
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_open(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_link(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_link_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
#if 0
|
||||
CHECK_ALT_CREAT(p, &sg, SCARG(uap, link));
|
||||
#endif
|
||||
|
||||
return sys_link(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_unlink(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_unlink_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_unlink(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_chdir(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_chdir_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_chdir(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_chmod(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_chmod_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_chmod(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_chown(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_chown_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_chown(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_unmount(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_unmount_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_unmount(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_access(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_access_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_access(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_chflags(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_chflags_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_chflags(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_compat_43_sys_stat(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_compat_43_sys_stat_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return compat_43_sys_stat(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_compat_43_sys_lstat(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_compat_43_sys_lstat_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return compat_43_sys_lstat(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_revoke(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_revoke_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_revoke(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_symlink(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_symlink_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
#if 0
|
||||
CHECK_ALT_CREAT(p, &sg, SCARG(uap, link));
|
||||
#endif
|
||||
|
||||
return sys_symlink(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_readlink(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_readlink_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_SYMLINK(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_readlink(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_execve(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_execve_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_execve(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_chroot(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_chroot_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_chroot(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_rename(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_rename_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, from));
|
||||
#if 0
|
||||
CHECK_ALT_CREAT(p, &sg, SCARG(uap, to));
|
||||
#endif
|
||||
|
||||
return sys_rename(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_compat_43_sys_truncate(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_compat_43_sys_truncate_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return compat_43_sys_truncate(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_rmdir(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_rmdir_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_rmdir(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_utimes(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_utimes_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_utimes(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_statfs(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_statfs_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return compat_20_sys_statfs(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
#if defined(NFS) || defined(NFSSERVER)
|
||||
int
|
||||
aout_sys_getfh(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_getfh_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, fname));
|
||||
|
||||
return sys_getfh(l, v, retval);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
int
|
||||
aout_compat_12_sys_stat(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_compat_12_sys_stat_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return compat_12_sys_stat(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_compat_12_sys_lstat(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_compat_12_sys_lstat_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return compat_12_sys_lstat(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_pathconf(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_pathconf_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_pathconf(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_truncate(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_truncate_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_truncate(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_undelete(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_undelete_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_undelete(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys___posix_rename(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys___posix_rename_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, from));
|
||||
#if 0
|
||||
CHECK_ALT_CREAT(p, &sg, SCARG(uap, to));
|
||||
#endif
|
||||
|
||||
return sys___posix_rename(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_lchmod(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_lchmod_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_SYMLINK(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_lchmod(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_lchown(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_lchown_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_SYMLINK(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_lchown(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys_lutimes(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys_lutimes_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_SYMLINK(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys_lutimes(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aout_sys___posix_chown(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aout_sys___posix_chown_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
||||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
||||
return sys___posix_chown(l, v, retval);
|
||||
}
|
|
@ -1,851 +0,0 @@
|
|||
/* $NetBSD: aout_syscall.h,v 1.26 2004/04/21 01:05:35 christos Exp $ */
|
||||
|
||||
/*
|
||||
* System call numbers.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.20 2004/03/26 15:18:54 drochner Exp
|
||||
*/
|
||||
|
||||
/* syscall: "syscall" ret: "int" args: "int" "..." */
|
||||
#define AOUT_SYS_syscall 0
|
||||
|
||||
/* syscall: "exit" ret: "void" args: "int" */
|
||||
#define AOUT_SYS_exit 1
|
||||
|
||||
/* syscall: "fork" ret: "int" args: */
|
||||
#define AOUT_SYS_fork 2
|
||||
|
||||
/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
|
||||
#define AOUT_SYS_read 3
|
||||
|
||||
/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
|
||||
#define AOUT_SYS_write 4
|
||||
|
||||
/* syscall: "open" ret: "int" args: "const char *" "int" "..." */
|
||||
#define AOUT_SYS_open 5
|
||||
|
||||
/* syscall: "close" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_close 6
|
||||
|
||||
/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
|
||||
#define AOUT_SYS_wait4 7
|
||||
|
||||
/* syscall: "ocreat" ret: "int" args: "const char *" "mode_t" */
|
||||
#define AOUT_SYS_ocreat 8
|
||||
|
||||
/* syscall: "link" ret: "int" args: "const char *" "const char *" */
|
||||
#define AOUT_SYS_link 9
|
||||
|
||||
/* syscall: "unlink" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS_unlink 10
|
||||
|
||||
/* 11 is obsolete execv */
|
||||
/* syscall: "chdir" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS_chdir 12
|
||||
|
||||
/* syscall: "fchdir" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_fchdir 13
|
||||
|
||||
/* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */
|
||||
#define AOUT_SYS_mknod 14
|
||||
|
||||
/* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */
|
||||
#define AOUT_SYS_chmod 15
|
||||
|
||||
/* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
|
||||
#define AOUT_SYS_chown 16
|
||||
|
||||
/* syscall: "break" ret: "int" args: "char *" */
|
||||
#define AOUT_SYS_break 17
|
||||
|
||||
#ifdef COMPAT_20
|
||||
/* syscall: "getfsstat" ret: "int" args: "struct statfs12 *" "long" "int" */
|
||||
#define AOUT_SYS_getfsstat 18
|
||||
|
||||
#else
|
||||
/* 18 is excluded compat_20_sys_getfsstat */
|
||||
#endif
|
||||
/* syscall: "olseek" ret: "long" args: "int" "long" "int" */
|
||||
#define AOUT_SYS_olseek 19
|
||||
|
||||
/* syscall: "getpid" ret: "pid_t" args: */
|
||||
#define AOUT_SYS_getpid 20
|
||||
|
||||
/* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */
|
||||
#define AOUT_SYS_mount 21
|
||||
|
||||
/* syscall: "unmount" ret: "int" args: "const char *" "int" */
|
||||
#define AOUT_SYS_unmount 22
|
||||
|
||||
/* syscall: "setuid" ret: "int" args: "uid_t" */
|
||||
#define AOUT_SYS_setuid 23
|
||||
|
||||
/* syscall: "getuid" ret: "uid_t" args: */
|
||||
#define AOUT_SYS_getuid 24
|
||||
|
||||
/* syscall: "geteuid" ret: "uid_t" args: */
|
||||
#define AOUT_SYS_geteuid 25
|
||||
|
||||
/* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */
|
||||
#define AOUT_SYS_ptrace 26
|
||||
|
||||
/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
|
||||
#define AOUT_SYS_recvmsg 27
|
||||
|
||||
/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
|
||||
#define AOUT_SYS_sendmsg 28
|
||||
|
||||
/* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "int *" */
|
||||
#define AOUT_SYS_recvfrom 29
|
||||
|
||||
/* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "int *" */
|
||||
#define AOUT_SYS_accept 30
|
||||
|
||||
/* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "int *" */
|
||||
#define AOUT_SYS_getpeername 31
|
||||
|
||||
/* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "int *" */
|
||||
#define AOUT_SYS_getsockname 32
|
||||
|
||||
/* syscall: "access" ret: "int" args: "const char *" "int" */
|
||||
#define AOUT_SYS_access 33
|
||||
|
||||
/* syscall: "chflags" ret: "int" args: "const char *" "u_long" */
|
||||
#define AOUT_SYS_chflags 34
|
||||
|
||||
/* syscall: "fchflags" ret: "int" args: "int" "u_long" */
|
||||
#define AOUT_SYS_fchflags 35
|
||||
|
||||
/* syscall: "sync" ret: "void" args: */
|
||||
#define AOUT_SYS_sync 36
|
||||
|
||||
/* syscall: "kill" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_kill 37
|
||||
|
||||
/* syscall: "stat43" ret: "int" args: "const char *" "struct stat43 *" */
|
||||
#define AOUT_SYS_stat43 38
|
||||
|
||||
/* syscall: "getppid" ret: "pid_t" args: */
|
||||
#define AOUT_SYS_getppid 39
|
||||
|
||||
/* syscall: "lstat43" ret: "int" args: "const char *" "struct stat43 *" */
|
||||
#define AOUT_SYS_lstat43 40
|
||||
|
||||
/* syscall: "dup" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_dup 41
|
||||
|
||||
/* syscall: "pipe" ret: "int" args: */
|
||||
#define AOUT_SYS_pipe 42
|
||||
|
||||
/* syscall: "getegid" ret: "gid_t" args: */
|
||||
#define AOUT_SYS_getegid 43
|
||||
|
||||
/* syscall: "profil" ret: "int" args: "caddr_t" "size_t" "u_long" "u_int" */
|
||||
#define AOUT_SYS_profil 44
|
||||
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
/* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "int" */
|
||||
#define AOUT_SYS_ktrace 45
|
||||
|
||||
#else
|
||||
/* 45 is excluded ktrace */
|
||||
#endif
|
||||
/* syscall: "sigaction13" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */
|
||||
#define AOUT_SYS_sigaction13 46
|
||||
|
||||
/* syscall: "getgid" ret: "gid_t" args: */
|
||||
#define AOUT_SYS_getgid 47
|
||||
|
||||
/* syscall: "sigprocmask13" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_sigprocmask13 48
|
||||
|
||||
/* syscall: "__getlogin" ret: "int" args: "char *" "size_t" */
|
||||
#define AOUT_SYS___getlogin 49
|
||||
|
||||
/* syscall: "__setlogin" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS___setlogin 50
|
||||
|
||||
/* syscall: "acct" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS_acct 51
|
||||
|
||||
/* syscall: "sigpending13" ret: "int" args: */
|
||||
#define AOUT_SYS_sigpending13 52
|
||||
|
||||
/* syscall: "sigaltstack13" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */
|
||||
#define AOUT_SYS_sigaltstack13 53
|
||||
|
||||
/* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */
|
||||
#define AOUT_SYS_ioctl 54
|
||||
|
||||
/* syscall: "oreboot" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_oreboot 55
|
||||
|
||||
/* syscall: "revoke" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS_revoke 56
|
||||
|
||||
/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
|
||||
#define AOUT_SYS_symlink 57
|
||||
|
||||
/* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */
|
||||
#define AOUT_SYS_readlink 58
|
||||
|
||||
/* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */
|
||||
#define AOUT_SYS_execve 59
|
||||
|
||||
/* syscall: "umask" ret: "mode_t" args: "mode_t" */
|
||||
#define AOUT_SYS_umask 60
|
||||
|
||||
/* syscall: "chroot" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS_chroot 61
|
||||
|
||||
/* syscall: "fstat43" ret: "int" args: "int" "struct stat43 *" */
|
||||
#define AOUT_SYS_fstat43 62
|
||||
|
||||
/* syscall: "ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */
|
||||
#define AOUT_SYS_ogetkerninfo 63
|
||||
|
||||
/* syscall: "ogetpagesize" ret: "int" args: */
|
||||
#define AOUT_SYS_ogetpagesize 64
|
||||
|
||||
/* syscall: "msync" ret: "int" args: "caddr_t" "size_t" */
|
||||
#define AOUT_SYS_msync 65
|
||||
|
||||
/* syscall: "vfork" ret: "int" args: */
|
||||
#define AOUT_SYS_vfork 66
|
||||
|
||||
/* 67 is obsolete vread */
|
||||
/* 68 is obsolete vwrite */
|
||||
/* syscall: "sbrk" ret: "int" args: "intptr_t" */
|
||||
#define AOUT_SYS_sbrk 69
|
||||
|
||||
/* syscall: "sstk" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_sstk 70
|
||||
|
||||
/* syscall: "ommap" ret: "int" args: "caddr_t" "size_t" "int" "int" "int" "long" */
|
||||
#define AOUT_SYS_ommap 71
|
||||
|
||||
/* syscall: "vadvise" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_vadvise 72
|
||||
|
||||
/* syscall: "munmap" ret: "int" args: "void *" "size_t" */
|
||||
#define AOUT_SYS_munmap 73
|
||||
|
||||
/* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
|
||||
#define AOUT_SYS_mprotect 74
|
||||
|
||||
/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
|
||||
#define AOUT_SYS_madvise 75
|
||||
|
||||
/* 76 is obsolete vhangup */
|
||||
/* 77 is obsolete vlimit */
|
||||
/* syscall: "mincore" ret: "int" args: "caddr_t" "size_t" "char *" */
|
||||
#define AOUT_SYS_mincore 78
|
||||
|
||||
/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
|
||||
#define AOUT_SYS_getgroups 79
|
||||
|
||||
/* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
|
||||
#define AOUT_SYS_setgroups 80
|
||||
|
||||
/* syscall: "getpgrp" ret: "int" args: */
|
||||
#define AOUT_SYS_getpgrp 81
|
||||
|
||||
/* syscall: "setpgid" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_setpgid 82
|
||||
|
||||
/* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */
|
||||
#define AOUT_SYS_setitimer 83
|
||||
|
||||
/* syscall: "owait" ret: "int" args: */
|
||||
#define AOUT_SYS_owait 84
|
||||
|
||||
/* syscall: "oswapon" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS_oswapon 85
|
||||
|
||||
/* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */
|
||||
#define AOUT_SYS_getitimer 86
|
||||
|
||||
/* syscall: "ogethostname" ret: "int" args: "char *" "u_int" */
|
||||
#define AOUT_SYS_ogethostname 87
|
||||
|
||||
/* syscall: "osethostname" ret: "int" args: "char *" "u_int" */
|
||||
#define AOUT_SYS_osethostname 88
|
||||
|
||||
/* syscall: "ogetdtablesize" ret: "int" args: */
|
||||
#define AOUT_SYS_ogetdtablesize 89
|
||||
|
||||
/* syscall: "dup2" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_dup2 90
|
||||
|
||||
/* syscall: "fcntl" ret: "int" args: "int" "int" "..." */
|
||||
#define AOUT_SYS_fcntl 92
|
||||
|
||||
/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
|
||||
#define AOUT_SYS_select 93
|
||||
|
||||
/* syscall: "fsync" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_fsync 95
|
||||
|
||||
/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
|
||||
#define AOUT_SYS_setpriority 96
|
||||
|
||||
/* syscall: "socket" ret: "int" args: "int" "int" "int" */
|
||||
#define AOUT_SYS_socket 97
|
||||
|
||||
/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
|
||||
#define AOUT_SYS_connect 98
|
||||
|
||||
/* syscall: "oaccept" ret: "int" args: "int" "caddr_t" "int *" */
|
||||
#define AOUT_SYS_oaccept 99
|
||||
|
||||
/* syscall: "getpriority" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_getpriority 100
|
||||
|
||||
/* syscall: "osend" ret: "int" args: "int" "caddr_t" "int" "int" */
|
||||
#define AOUT_SYS_osend 101
|
||||
|
||||
/* syscall: "orecv" ret: "int" args: "int" "caddr_t" "int" "int" */
|
||||
#define AOUT_SYS_orecv 102
|
||||
|
||||
/* syscall: "sigreturn13" ret: "int" args: "struct sigcontext13 *" */
|
||||
#define AOUT_SYS_sigreturn13 103
|
||||
|
||||
/* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */
|
||||
#define AOUT_SYS_bind 104
|
||||
|
||||
/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "int" */
|
||||
#define AOUT_SYS_setsockopt 105
|
||||
|
||||
/* syscall: "listen" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_listen 106
|
||||
|
||||
/* 107 is obsolete vtimes */
|
||||
/* syscall: "osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
|
||||
#define AOUT_SYS_osigvec 108
|
||||
|
||||
/* syscall: "osigblock" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_osigblock 109
|
||||
|
||||
/* syscall: "osigsetmask" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_osigsetmask 110
|
||||
|
||||
/* syscall: "sigsuspend13" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_sigsuspend13 111
|
||||
|
||||
/* syscall: "osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
|
||||
#define AOUT_SYS_osigstack 112
|
||||
|
||||
/* syscall: "orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
|
||||
#define AOUT_SYS_orecvmsg 113
|
||||
|
||||
/* syscall: "osendmsg" ret: "int" args: "int" "caddr_t" "int" */
|
||||
#define AOUT_SYS_osendmsg 114
|
||||
|
||||
/* 115 is obsolete vtrace */
|
||||
/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
|
||||
#define AOUT_SYS_gettimeofday 116
|
||||
|
||||
/* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
|
||||
#define AOUT_SYS_getrusage 117
|
||||
|
||||
/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
|
||||
#define AOUT_SYS_getsockopt 118
|
||||
|
||||
/* 119 is obsolete resuba */
|
||||
/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
|
||||
#define AOUT_SYS_readv 120
|
||||
|
||||
/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
|
||||
#define AOUT_SYS_writev 121
|
||||
|
||||
/* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */
|
||||
#define AOUT_SYS_settimeofday 122
|
||||
|
||||
/* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */
|
||||
#define AOUT_SYS_fchown 123
|
||||
|
||||
/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
|
||||
#define AOUT_SYS_fchmod 124
|
||||
|
||||
/* syscall: "orecvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */
|
||||
#define AOUT_SYS_orecvfrom 125
|
||||
|
||||
/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
|
||||
#define AOUT_SYS_setreuid 126
|
||||
|
||||
/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
|
||||
#define AOUT_SYS_setregid 127
|
||||
|
||||
/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
|
||||
#define AOUT_SYS_rename 128
|
||||
|
||||
/* syscall: "otruncate" ret: "int" args: "const char *" "long" */
|
||||
#define AOUT_SYS_otruncate 129
|
||||
|
||||
/* syscall: "oftruncate" ret: "int" args: "int" "long" */
|
||||
#define AOUT_SYS_oftruncate 130
|
||||
|
||||
/* syscall: "flock" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_flock 131
|
||||
|
||||
/* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */
|
||||
#define AOUT_SYS_mkfifo 132
|
||||
|
||||
/* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */
|
||||
#define AOUT_SYS_sendto 133
|
||||
|
||||
/* syscall: "shutdown" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_shutdown 134
|
||||
|
||||
/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
|
||||
#define AOUT_SYS_socketpair 135
|
||||
|
||||
/* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */
|
||||
#define AOUT_SYS_mkdir 136
|
||||
|
||||
/* syscall: "rmdir" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS_rmdir 137
|
||||
|
||||
/* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval *" */
|
||||
#define AOUT_SYS_utimes 138
|
||||
|
||||
/* 139 is obsolete 4.2 sigreturn */
|
||||
/* syscall: "adjtime" ret: "int" args: "const struct timeval *" "struct timeval *" */
|
||||
#define AOUT_SYS_adjtime 140
|
||||
|
||||
/* syscall: "ogetpeername" ret: "int" args: "int" "caddr_t" "int *" */
|
||||
#define AOUT_SYS_ogetpeername 141
|
||||
|
||||
/* syscall: "ogethostid" ret: "int32_t" args: */
|
||||
#define AOUT_SYS_ogethostid 142
|
||||
|
||||
/* syscall: "osethostid" ret: "int" args: "int32_t" */
|
||||
#define AOUT_SYS_osethostid 143
|
||||
|
||||
/* syscall: "ogetrlimit" ret: "int" args: "int" "struct orlimit *" */
|
||||
#define AOUT_SYS_ogetrlimit 144
|
||||
|
||||
/* syscall: "osetrlimit" ret: "int" args: "int" "const struct orlimit *" */
|
||||
#define AOUT_SYS_osetrlimit 145
|
||||
|
||||
/* syscall: "okillpg" ret: "int" args: "int" "int" */
|
||||
#define AOUT_SYS_okillpg 146
|
||||
|
||||
/* syscall: "setsid" ret: "int" args: */
|
||||
#define AOUT_SYS_setsid 147
|
||||
|
||||
/* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "caddr_t" */
|
||||
#define AOUT_SYS_quotactl 148
|
||||
|
||||
/* syscall: "oquota" ret: "int" args: */
|
||||
#define AOUT_SYS_oquota 149
|
||||
|
||||
/* syscall: "ogetsockname" ret: "int" args: "int" "caddr_t" "int *" */
|
||||
#define AOUT_SYS_ogetsockname 150
|
||||
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
/* syscall: "nfssvc" ret: "int" args: "int" "void *" */
|
||||
#define AOUT_SYS_nfssvc 155
|
||||
|
||||
#else
|
||||
/* 155 is excluded nfssvc */
|
||||
#endif
|
||||
/* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
|
||||
#define AOUT_SYS_ogetdirentries 156
|
||||
|
||||
/* syscall: "statfs" ret: "int" args: "const char *" "struct statfs12 *" */
|
||||
#define AOUT_SYS_statfs 157
|
||||
|
||||
#ifdef COMPAT_20
|
||||
/* syscall: "fstatfs" ret: "int" args: "int" "struct statfs12 *" */
|
||||
#define AOUT_SYS_fstatfs 158
|
||||
|
||||
#else
|
||||
/* 158 is excluded compat_20_sys_fstatfs */
|
||||
#endif
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
/* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */
|
||||
#define AOUT_SYS_getfh 161
|
||||
|
||||
#else
|
||||
/* 161 is excluded getfh */
|
||||
#endif
|
||||
/* syscall: "ogetdomainname" ret: "int" args: "char *" "int" */
|
||||
#define AOUT_SYS_ogetdomainname 162
|
||||
|
||||
/* syscall: "osetdomainname" ret: "int" args: "char *" "int" */
|
||||
#define AOUT_SYS_osetdomainname 163
|
||||
|
||||
/* syscall: "ouname" ret: "int" args: "struct outsname *" */
|
||||
#define AOUT_SYS_ouname 164
|
||||
|
||||
/* syscall: "sysarch" ret: "int" args: "int" "void *" */
|
||||
#define AOUT_SYS_sysarch 165
|
||||
|
||||
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
/* syscall: "osemsys" ret: "int" args: "int" "int" "int" "int" "int" */
|
||||
#define AOUT_SYS_osemsys 169
|
||||
|
||||
#else
|
||||
/* 169 is excluded 1.0 semsys */
|
||||
#endif
|
||||
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
/* syscall: "omsgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
|
||||
#define AOUT_SYS_omsgsys 170
|
||||
|
||||
#else
|
||||
/* 170 is excluded 1.0 msgsys */
|
||||
#endif
|
||||
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
/* syscall: "oshmsys" ret: "int" args: "int" "int" "int" "int" */
|
||||
#define AOUT_SYS_oshmsys 171
|
||||
|
||||
#else
|
||||
/* 171 is excluded 1.0 shmsys */
|
||||
#endif
|
||||
/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
|
||||
#define AOUT_SYS_pread 173
|
||||
|
||||
/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
|
||||
#define AOUT_SYS_pwrite 174
|
||||
|
||||
/* syscall: "ntp_gettime" ret: "int" args: "struct ntptimeval *" */
|
||||
#define AOUT_SYS_ntp_gettime 175
|
||||
|
||||
#if defined(NTP) || !defined(_KERNEL)
|
||||
/* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */
|
||||
#define AOUT_SYS_ntp_adjtime 176
|
||||
|
||||
#else
|
||||
/* 176 is excluded ntp_adjtime */
|
||||
#endif
|
||||
/* syscall: "setgid" ret: "int" args: "gid_t" */
|
||||
#define AOUT_SYS_setgid 181
|
||||
|
||||
/* syscall: "setegid" ret: "int" args: "gid_t" */
|
||||
#define AOUT_SYS_setegid 182
|
||||
|
||||
/* syscall: "seteuid" ret: "int" args: "uid_t" */
|
||||
#define AOUT_SYS_seteuid 183
|
||||
|
||||
#if defined(LFS) || !defined(_KERNEL)
|
||||
/* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
|
||||
#define AOUT_SYS_lfs_bmapv 184
|
||||
|
||||
/* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
|
||||
#define AOUT_SYS_lfs_markv 185
|
||||
|
||||
/* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */
|
||||
#define AOUT_SYS_lfs_segclean 186
|
||||
|
||||
/* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */
|
||||
#define AOUT_SYS_lfs_segwait 187
|
||||
|
||||
#else
|
||||
/* 184 is excluded lfs_bmapv */
|
||||
/* 185 is excluded lfs_markv */
|
||||
/* 186 is excluded lfs_segclean */
|
||||
/* 187 is excluded lfs_segwait */
|
||||
#endif
|
||||
/* syscall: "stat12" ret: "int" args: "const char *" "struct stat12 *" */
|
||||
#define AOUT_SYS_stat12 188
|
||||
|
||||
/* syscall: "fstat12" ret: "int" args: "int" "struct stat12 *" */
|
||||
#define AOUT_SYS_fstat12 189
|
||||
|
||||
/* syscall: "lstat12" ret: "int" args: "const char *" "struct stat12 *" */
|
||||
#define AOUT_SYS_lstat12 190
|
||||
|
||||
/* syscall: "pathconf" ret: "long" args: "const char *" "int" */
|
||||
#define AOUT_SYS_pathconf 191
|
||||
|
||||
/* syscall: "fpathconf" ret: "long" args: "int" "int" */
|
||||
#define AOUT_SYS_fpathconf 192
|
||||
|
||||
/* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
|
||||
#define AOUT_SYS_getrlimit 194
|
||||
|
||||
/* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */
|
||||
#define AOUT_SYS_setrlimit 195
|
||||
|
||||
/* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
|
||||
#define AOUT_SYS_getdirentries 196
|
||||
|
||||
/* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
|
||||
#define AOUT_SYS_mmap 197
|
||||
|
||||
/* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */
|
||||
#define AOUT_SYS___syscall 198
|
||||
|
||||
/* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */
|
||||
#define AOUT_SYS_lseek 199
|
||||
|
||||
/* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
|
||||
#define AOUT_SYS_truncate 200
|
||||
|
||||
/* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
|
||||
#define AOUT_SYS_ftruncate 201
|
||||
|
||||
/* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */
|
||||
#define AOUT_SYS___sysctl 202
|
||||
|
||||
/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
|
||||
#define AOUT_SYS_mlock 203
|
||||
|
||||
/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
|
||||
#define AOUT_SYS_munlock 204
|
||||
|
||||
/* syscall: "undelete" ret: "int" args: "const char *" */
|
||||
#define AOUT_SYS_undelete 205
|
||||
|
||||
/* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */
|
||||
#define AOUT_SYS_futimes 206
|
||||
|
||||
/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
|
||||
#define AOUT_SYS_getpgid 207
|
||||
|
||||
/* syscall: "reboot" ret: "int" args: "int" "char *" */
|
||||
#define AOUT_SYS_reboot 208
|
||||
|
||||
/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
|
||||
#define AOUT_SYS_poll 209
|
||||
|
||||
#if defined(LKM) || !defined(_KERNEL)
|
||||
#else /* !LKM */
|
||||
/* 210 is excluded lkmnosys */
|
||||
/* 211 is excluded lkmnosys */
|
||||
/* 212 is excluded lkmnosys */
|
||||
/* 213 is excluded lkmnosys */
|
||||
/* 214 is excluded lkmnosys */
|
||||
/* 215 is excluded lkmnosys */
|
||||
/* 216 is excluded lkmnosys */
|
||||
/* 217 is excluded lkmnosys */
|
||||
/* 218 is excluded lkmnosys */
|
||||
/* 219 is excluded lkmnosys */
|
||||
#endif /* !LKM */
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
/* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union __semun *" */
|
||||
#define AOUT_SYS___semctl 220
|
||||
|
||||
#else
|
||||
/* 220 is excluded compat_14_semctl */
|
||||
#endif
|
||||
/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
|
||||
#define AOUT_SYS_semget 221
|
||||
|
||||
/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
|
||||
#define AOUT_SYS_semop 222
|
||||
|
||||
/* syscall: "semconfig" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_semconfig 223
|
||||
|
||||
#else
|
||||
/* 220 is excluded compat_14_semctl */
|
||||
/* 221 is excluded semget */
|
||||
/* 222 is excluded semop */
|
||||
/* 223 is excluded semconfig */
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
/* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid_ds14 *" */
|
||||
#define AOUT_SYS_msgctl 224
|
||||
|
||||
#else
|
||||
/* 224 is excluded compat_14_sys_msgctl */
|
||||
#endif
|
||||
/* syscall: "msgget" ret: "int" args: "key_t" "int" */
|
||||
#define AOUT_SYS_msgget 225
|
||||
|
||||
/* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */
|
||||
#define AOUT_SYS_msgsnd 226
|
||||
|
||||
/* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
|
||||
#define AOUT_SYS_msgrcv 227
|
||||
|
||||
#else
|
||||
/* 224 is excluded compat_14_msgctl */
|
||||
/* 225 is excluded msgget */
|
||||
/* 226 is excluded msgsnd */
|
||||
/* 227 is excluded msgrcv */
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
/* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */
|
||||
#define AOUT_SYS_shmat 228
|
||||
|
||||
#ifdef COMPAT_14
|
||||
/* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */
|
||||
#define AOUT_SYS_shmctl 229
|
||||
|
||||
#else
|
||||
/* 229 is excluded compat_14_sys_shmctl */
|
||||
#endif
|
||||
/* syscall: "shmdt" ret: "int" args: "const void *" */
|
||||
#define AOUT_SYS_shmdt 230
|
||||
|
||||
/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
|
||||
#define AOUT_SYS_shmget 231
|
||||
|
||||
#else
|
||||
/* 228 is excluded shmat */
|
||||
/* 229 is excluded compat_14_shmctl */
|
||||
/* 230 is excluded shmdt */
|
||||
/* 231 is excluded shmget */
|
||||
#endif
|
||||
/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */
|
||||
#define AOUT_SYS_clock_gettime 232
|
||||
|
||||
/* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */
|
||||
#define AOUT_SYS_clock_settime 233
|
||||
|
||||
/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */
|
||||
#define AOUT_SYS_clock_getres 234
|
||||
|
||||
/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
|
||||
#define AOUT_SYS_nanosleep 240
|
||||
|
||||
/* syscall: "fdatasync" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_fdatasync 241
|
||||
|
||||
/* syscall: "mlockall" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_mlockall 242
|
||||
|
||||
/* syscall: "munlockall" ret: "int" args: */
|
||||
#define AOUT_SYS_munlockall 243
|
||||
|
||||
/* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
|
||||
#define AOUT_SYS___posix_rename 270
|
||||
|
||||
/* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */
|
||||
#define AOUT_SYS_swapctl 271
|
||||
|
||||
/* syscall: "getdents" ret: "int" args: "int" "char *" "size_t" */
|
||||
#define AOUT_SYS_getdents 272
|
||||
|
||||
/* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */
|
||||
#define AOUT_SYS_minherit 273
|
||||
|
||||
/* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */
|
||||
#define AOUT_SYS_lchmod 274
|
||||
|
||||
/* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
|
||||
#define AOUT_SYS_lchown 275
|
||||
|
||||
/* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval *" */
|
||||
#define AOUT_SYS_lutimes 276
|
||||
|
||||
/* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
|
||||
#define AOUT_SYS___msync13 277
|
||||
|
||||
/* syscall: "__stat13" ret: "int" args: "const char *" "struct stat *" */
|
||||
#define AOUT_SYS___stat13 278
|
||||
|
||||
/* syscall: "__fstat13" ret: "int" args: "int" "struct stat *" */
|
||||
#define AOUT_SYS___fstat13 279
|
||||
|
||||
/* syscall: "__lstat13" ret: "int" args: "const char *" "struct stat *" */
|
||||
#define AOUT_SYS___lstat13 280
|
||||
|
||||
/* syscall: "__sigaltstack14" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
|
||||
#define AOUT_SYS___sigaltstack14 281
|
||||
|
||||
/* syscall: "__vfork14" ret: "int" args: */
|
||||
#define AOUT_SYS___vfork14 282
|
||||
|
||||
/* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
|
||||
#define AOUT_SYS___posix_chown 283
|
||||
|
||||
/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
|
||||
#define AOUT_SYS___posix_fchown 284
|
||||
|
||||
/* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
|
||||
#define AOUT_SYS___posix_lchown 285
|
||||
|
||||
/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
|
||||
#define AOUT_SYS_getsid 286
|
||||
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
/* syscall: "fktrace" ret: "int" args: "const int" "int" "int" "int" */
|
||||
#define AOUT_SYS_fktrace 288
|
||||
|
||||
#else
|
||||
/* 288 is excluded ktrace */
|
||||
#endif
|
||||
/* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
|
||||
#define AOUT_SYS_preadv 289
|
||||
|
||||
/* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
|
||||
#define AOUT_SYS_pwritev 290
|
||||
|
||||
#ifdef COMPAT_16
|
||||
/* syscall: "__sigaction14" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */
|
||||
#define AOUT_SYS___sigaction14 291
|
||||
|
||||
#else
|
||||
/* 291 is excluded compat_16_sys___sigaction14 */
|
||||
#endif
|
||||
/* syscall: "__sigpending14" ret: "int" args: "sigset_t *" */
|
||||
#define AOUT_SYS___sigpending14 292
|
||||
|
||||
/* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */
|
||||
#define AOUT_SYS___sigprocmask14 293
|
||||
|
||||
/* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */
|
||||
#define AOUT_SYS___sigsuspend14 294
|
||||
|
||||
#ifdef COMPAT_16
|
||||
/* syscall: "__sigreturn14" ret: "int" args: "struct sigcontext *" */
|
||||
#define AOUT_SYS___sigreturn14 295
|
||||
|
||||
#else
|
||||
/* 295 is excluded compat_16_sys___sigreturn14 */
|
||||
#endif
|
||||
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
|
||||
#define AOUT_SYS___getcwd 296
|
||||
|
||||
/* syscall: "fchroot" ret: "int" args: "int" */
|
||||
#define AOUT_SYS_fchroot 297
|
||||
|
||||
/* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */
|
||||
#define AOUT_SYS_fhopen 298
|
||||
|
||||
/* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */
|
||||
#define AOUT_SYS_fhstat 299
|
||||
|
||||
#ifdef COMPAT_20
|
||||
/* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs12 *" */
|
||||
#define AOUT_SYS_fhstatfs 300
|
||||
|
||||
#else
|
||||
/* 300 is excluded compat_20_sys_fhstatfs */
|
||||
#endif
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
/* syscall: "____semctl13" ret: "int" args: "int" "int" "int" "..." */
|
||||
#define AOUT_SYS_____semctl13 301
|
||||
|
||||
#else
|
||||
/* 301 is excluded ____semctl13 */
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
/* syscall: "__msgctl13" ret: "int" args: "int" "int" "struct msqid_ds *" */
|
||||
#define AOUT_SYS___msgctl13 302
|
||||
|
||||
#else
|
||||
/* 302 is excluded __msgctl13 */
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
/* syscall: "__shmctl13" ret: "int" args: "int" "int" "struct shmid_ds *" */
|
||||
#define AOUT_SYS___shmctl13 303
|
||||
|
||||
#else
|
||||
/* 303 is excluded __shmctl13 */
|
||||
#endif
|
||||
/* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */
|
||||
#define AOUT_SYS_lchflags 304
|
||||
|
||||
/* syscall: "issetugid" ret: "int" args: */
|
||||
#define AOUT_SYS_issetugid 305
|
||||
|
||||
#define AOUT_SYS_MAXSYSCALL 306
|
||||
#define AOUT_SYS_NSYSENT 512
|
|
@ -1,813 +0,0 @@
|
|||
/* $NetBSD: aout_syscallargs.h,v 1.27 2004/04/21 01:05:35 christos Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.20 2004/03/26 15:18:54 drochner Exp
|
||||
*/
|
||||
|
||||
#ifndef _AOUT_SYS__SYSCALLARGS_H_
|
||||
#define _AOUT_SYS__SYSCALLARGS_H_
|
||||
|
||||
#ifdef syscallarg
|
||||
#undef syscallarg
|
||||
#endif
|
||||
|
||||
#define syscallarg(x) \
|
||||
union { \
|
||||
register_t pad; \
|
||||
struct { x datum; } le; \
|
||||
struct { /* LINTED zero array dimension */ \
|
||||
int8_t pad[ /* CONSTCOND */ \
|
||||
(sizeof (register_t) < sizeof (x)) \
|
||||
? 0 \
|
||||
: sizeof (register_t) - sizeof (x)]; \
|
||||
x datum; \
|
||||
} be; \
|
||||
}
|
||||
|
||||
struct aout_sys_open_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(int) flags;
|
||||
syscallarg(mode_t) mode;
|
||||
};
|
||||
|
||||
struct aout_sys_link_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(const char *) link;
|
||||
};
|
||||
|
||||
struct aout_sys_unlink_args {
|
||||
syscallarg(const char *) path;
|
||||
};
|
||||
|
||||
struct aout_sys_chdir_args {
|
||||
syscallarg(const char *) path;
|
||||
};
|
||||
|
||||
struct aout_sys_chmod_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(mode_t) mode;
|
||||
};
|
||||
|
||||
struct aout_sys_chown_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(uid_t) uid;
|
||||
syscallarg(gid_t) gid;
|
||||
};
|
||||
#ifdef COMPAT_20
|
||||
#else
|
||||
#endif
|
||||
|
||||
struct aout_sys_unmount_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(int) flags;
|
||||
};
|
||||
|
||||
struct aout_sys_access_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(int) flags;
|
||||
};
|
||||
|
||||
struct aout_sys_chflags_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(u_long) flags;
|
||||
};
|
||||
|
||||
struct aout_compat_43_sys_stat_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(struct stat43 *) ub;
|
||||
};
|
||||
|
||||
struct aout_compat_43_sys_lstat_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(struct stat43 *) ub;
|
||||
};
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
#else
|
||||
#endif
|
||||
|
||||
struct aout_sys_revoke_args {
|
||||
syscallarg(const char *) path;
|
||||
};
|
||||
|
||||
struct aout_sys_symlink_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(const char *) link;
|
||||
};
|
||||
|
||||
struct aout_sys_readlink_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(char *) buf;
|
||||
syscallarg(size_t) count;
|
||||
};
|
||||
|
||||
struct aout_sys_execve_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(char *const *) argp;
|
||||
syscallarg(char *const *) envp;
|
||||
};
|
||||
|
||||
struct aout_sys_chroot_args {
|
||||
syscallarg(const char *) path;
|
||||
};
|
||||
|
||||
struct aout_sys_rename_args {
|
||||
syscallarg(const char *) from;
|
||||
syscallarg(const char *) to;
|
||||
};
|
||||
|
||||
struct aout_compat_43_sys_truncate_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(long) length;
|
||||
};
|
||||
|
||||
struct aout_sys_rmdir_args {
|
||||
syscallarg(const char *) path;
|
||||
};
|
||||
|
||||
struct aout_sys_utimes_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(const struct timeval *) tptr;
|
||||
};
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
#else
|
||||
#endif
|
||||
|
||||
struct aout_sys_statfs_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(struct statfs12 *) buf;
|
||||
};
|
||||
#ifdef COMPAT_20
|
||||
#else
|
||||
#endif
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
|
||||
struct aout_sys_getfh_args {
|
||||
syscallarg(const char *) fname;
|
||||
syscallarg(fhandle_t *) fhp;
|
||||
};
|
||||
#else
|
||||
#endif
|
||||
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
#else
|
||||
#endif
|
||||
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
#else
|
||||
#endif
|
||||
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
#else
|
||||
#endif
|
||||
#if defined(NTP) || !defined(_KERNEL)
|
||||
#else
|
||||
#endif
|
||||
#if defined(LFS) || !defined(_KERNEL)
|
||||
#else
|
||||
#endif
|
||||
|
||||
struct aout_compat_12_sys_stat_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(struct stat12 *) ub;
|
||||
};
|
||||
|
||||
struct aout_compat_12_sys_lstat_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(struct stat12 *) ub;
|
||||
};
|
||||
|
||||
struct aout_sys_pathconf_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(int) name;
|
||||
};
|
||||
|
||||
struct aout_sys_truncate_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(int) pad;
|
||||
syscallarg(off_t) length;
|
||||
};
|
||||
|
||||
struct aout_sys_undelete_args {
|
||||
syscallarg(const char *) path;
|
||||
};
|
||||
#if defined(LKM) || !defined(_KERNEL)
|
||||
#else /* !LKM */
|
||||
#endif /* !LKM */
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
#else
|
||||
#endif
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
#else
|
||||
#endif
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
#else
|
||||
#endif
|
||||
#else
|
||||
#endif
|
||||
|
||||
struct aout_sys___posix_rename_args {
|
||||
syscallarg(const char *) from;
|
||||
syscallarg(const char *) to;
|
||||
};
|
||||
|
||||
struct aout_sys_lchmod_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(mode_t) mode;
|
||||
};
|
||||
|
||||
struct aout_sys_lchown_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(uid_t) uid;
|
||||
syscallarg(gid_t) gid;
|
||||
};
|
||||
|
||||
struct aout_sys_lutimes_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(const struct timeval *) tptr;
|
||||
};
|
||||
|
||||
struct aout_sys___posix_chown_args {
|
||||
syscallarg(const char *) path;
|
||||
syscallarg(uid_t) uid;
|
||||
syscallarg(gid_t) gid;
|
||||
};
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
#else
|
||||
#endif
|
||||
#ifdef COMPAT_16
|
||||
#else
|
||||
#endif
|
||||
#ifdef COMPAT_16
|
||||
#else
|
||||
#endif
|
||||
#ifdef COMPAT_20
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
#else
|
||||
#endif
|
||||
|
||||
/*
|
||||
* System call prototypes.
|
||||
*/
|
||||
|
||||
int sys_exit(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fork(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_read(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_write(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_open(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_close(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_wait4(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_creat(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_link(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_unlink(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_chdir(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fchdir(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mknod(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_chmod(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_chown(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_obreak(struct lwp *, void *, register_t *);
|
||||
|
||||
#ifdef COMPAT_20
|
||||
int compat_20_sys_getfsstat(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int compat_43_sys_lseek(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getpid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mount(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_unmount(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setuid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getuid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_geteuid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_ptrace(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_recvmsg(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_sendmsg(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_recvfrom(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_accept(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getpeername(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getsockname(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_access(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_chflags(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fchflags(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_sync(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_kill(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_compat_43_sys_stat(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getppid(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_compat_43_sys_lstat(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_dup(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_pipe(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getegid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_profil(struct lwp *, void *, register_t *);
|
||||
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
int sys_ktrace(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int compat_13_sys_sigaction(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getgid(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_13_sys_sigprocmask(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___getlogin(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___setlogin(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_acct(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_13_sys_sigpending(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_13_sys_sigaltstack(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_ioctl(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_12_sys_reboot(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_revoke(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_symlink(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_readlink(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_execve(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_umask(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_chroot(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_fstat(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_getkerninfo(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_12_sys_msync(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_vfork(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_sbrk(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_sstk(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_mmap(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_ovadvise(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_munmap(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mprotect(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_madvise(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mincore(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getgroups(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setgroups(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getpgrp(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setpgid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setitimer(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_wait(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_12_sys_swapon(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getitimer(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_gethostname(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_sethostname(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_getdtablesize(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_dup2(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fcntl(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_select(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fsync(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setpriority(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_socket(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_connect(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_accept(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getpriority(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_send(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_recv(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_13_sys_sigreturn(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_bind(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setsockopt(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_listen(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_sigvec(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_sigblock(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_sigsetmask(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_13_sys_sigsuspend(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_sigstack(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_recvmsg(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_sendmsg(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_gettimeofday(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getrusage(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getsockopt(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_readv(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_writev(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_settimeofday(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fchown(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fchmod(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_recvfrom(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setreuid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setregid(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_rename(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_compat_43_sys_truncate(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_flock(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mkfifo(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_sendto(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_shutdown(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_socketpair(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mkdir(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_rmdir(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_utimes(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_adjtime(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_getpeername(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_gethostid(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_sethostid(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_getrlimit(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_setrlimit(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_killpg(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setsid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_quotactl(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_quota(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_43_sys_getsockname(struct lwp *, void *, register_t *);
|
||||
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
int sys_nfssvc(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int compat_43_sys_getdirentries(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_statfs(struct lwp *, void *, register_t *);
|
||||
|
||||
#ifdef COMPAT_20
|
||||
int compat_20_sys_fstatfs(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
int aout_sys_getfh(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int compat_09_sys_getdomainname(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_09_sys_setdomainname(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_09_sys_uname(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_sysarch(struct lwp *, void *, register_t *);
|
||||
|
||||
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
int compat_10_sys_semsys(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
int compat_10_sys_msgsys(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
int compat_10_sys_shmsys(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys_pread(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_pwrite(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_ntp_gettime(struct lwp *, void *, register_t *);
|
||||
|
||||
#if defined(NTP) || !defined(_KERNEL)
|
||||
int sys_ntp_adjtime(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys_setgid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setegid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_seteuid(struct lwp *, void *, register_t *);
|
||||
|
||||
#if defined(LFS) || !defined(_KERNEL)
|
||||
int sys_lfs_bmapv(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_lfs_markv(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_lfs_segclean(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_lfs_segwait(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int aout_compat_12_sys_stat(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_12_sys_fstat(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_compat_12_sys_lstat(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_pathconf(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fpathconf(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getrlimit(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_setrlimit(struct lwp *, void *, register_t *);
|
||||
|
||||
int compat_12_sys_getdirentries(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mmap(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_lseek(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_truncate(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_ftruncate(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___sysctl(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mlock(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_munlock(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_undelete(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_futimes(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getpgid(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_reboot(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_poll(struct lwp *, void *, register_t *);
|
||||
|
||||
#if defined(LKM) || !defined(_KERNEL)
|
||||
int sys_lkmnosys(struct lwp *, void *, register_t *);
|
||||
|
||||
#else /* !LKM */
|
||||
#endif /* !LKM */
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
int compat_14_sys___semctl(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys_semget(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_semop(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_semconfig(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
int compat_14_sys_msgctl(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys_msgget(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_msgsnd(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_msgrcv(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
int sys_shmat(struct lwp *, void *, register_t *);
|
||||
|
||||
#ifdef COMPAT_14
|
||||
int compat_14_sys_shmctl(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys_shmdt(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_shmget(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys_clock_gettime(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_clock_settime(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_clock_getres(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_nanosleep(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fdatasync(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_mlockall(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_munlockall(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys___posix_rename(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_swapctl(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getdents(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_minherit(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_lchmod(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_lchown(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys_lutimes(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___msync13(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___stat13(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___fstat13(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___lstat13(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___sigaltstack14(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___vfork14(struct lwp *, void *, register_t *);
|
||||
|
||||
int aout_sys___posix_chown(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___posix_fchown(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___posix_lchown(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_getsid(struct lwp *, void *, register_t *);
|
||||
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
int sys_fktrace(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys_preadv(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_pwritev(struct lwp *, void *, register_t *);
|
||||
|
||||
#ifdef COMPAT_16
|
||||
int compat_16_sys___sigaction14(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys___sigpending14(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___sigprocmask14(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys___sigsuspend14(struct lwp *, void *, register_t *);
|
||||
|
||||
#ifdef COMPAT_16
|
||||
int compat_16_sys___sigreturn14(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys___getcwd(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fchroot(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fhopen(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_fhstat(struct lwp *, void *, register_t *);
|
||||
|
||||
#ifdef COMPAT_20
|
||||
int compat_20_sys_fhstatfs(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
int sys_____semctl13(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
int sys___msgctl13(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
int sys___shmctl13(struct lwp *, void *, register_t *);
|
||||
|
||||
#else
|
||||
#endif
|
||||
int sys_lchflags(struct lwp *, void *, register_t *);
|
||||
|
||||
int sys_issetugid(struct lwp *, void *, register_t *);
|
||||
|
||||
#endif /* _AOUT_SYS__SYSCALLARGS_H_ */
|
|
@ -1,457 +0,0 @@
|
|||
/* $NetBSD: aout_syscalls.c,v 1.27 2004/04/21 01:05:36 christos Exp $ */
|
||||
|
||||
/*
|
||||
* System call names.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.20 2004/03/26 15:18:54 drochner Exp
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aout_syscalls.c,v 1.27 2004/04/21 01:05:36 christos Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ktrace.h"
|
||||
#include "opt_nfsserver.h"
|
||||
#include "opt_ntp.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_sysv.h"
|
||||
#include "opt_compat_43.h"
|
||||
#include "fs_lfs.h"
|
||||
#include "fs_nfs.h"
|
||||
#endif
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/syscallargs.h>
|
||||
#include <compat/aout/aout_syscallargs.h>
|
||||
#endif /* _KERNEL_OPT */
|
||||
|
||||
const char *const aout_syscallnames[] = {
|
||||
"syscall", /* 0 = syscall */
|
||||
"exit", /* 1 = exit */
|
||||
"fork", /* 2 = fork */
|
||||
"read", /* 3 = read */
|
||||
"write", /* 4 = write */
|
||||
"open", /* 5 = open */
|
||||
"close", /* 6 = close */
|
||||
"wait4", /* 7 = wait4 */
|
||||
"ocreat", /* 8 = ocreat */
|
||||
"link", /* 9 = link */
|
||||
"unlink", /* 10 = unlink */
|
||||
"#11 (obsolete execv)", /* 11 = obsolete execv */
|
||||
"chdir", /* 12 = chdir */
|
||||
"fchdir", /* 13 = fchdir */
|
||||
"mknod", /* 14 = mknod */
|
||||
"chmod", /* 15 = chmod */
|
||||
"chown", /* 16 = chown */
|
||||
"break", /* 17 = break */
|
||||
#ifdef COMPAT_20
|
||||
"getfsstat", /* 18 = getfsstat */
|
||||
#else
|
||||
"#18 (excluded compat_20_sys_getfsstat)", /* 18 = excluded compat_20_sys_getfsstat */
|
||||
#endif
|
||||
"olseek", /* 19 = olseek */
|
||||
"getpid", /* 20 = getpid */
|
||||
"mount", /* 21 = mount */
|
||||
"unmount", /* 22 = unmount */
|
||||
"setuid", /* 23 = setuid */
|
||||
"getuid", /* 24 = getuid */
|
||||
"geteuid", /* 25 = geteuid */
|
||||
"ptrace", /* 26 = ptrace */
|
||||
"recvmsg", /* 27 = recvmsg */
|
||||
"sendmsg", /* 28 = sendmsg */
|
||||
"recvfrom", /* 29 = recvfrom */
|
||||
"accept", /* 30 = accept */
|
||||
"getpeername", /* 31 = getpeername */
|
||||
"getsockname", /* 32 = getsockname */
|
||||
"access", /* 33 = access */
|
||||
"chflags", /* 34 = chflags */
|
||||
"fchflags", /* 35 = fchflags */
|
||||
"sync", /* 36 = sync */
|
||||
"kill", /* 37 = kill */
|
||||
"stat43", /* 38 = stat43 */
|
||||
"getppid", /* 39 = getppid */
|
||||
"lstat43", /* 40 = lstat43 */
|
||||
"dup", /* 41 = dup */
|
||||
"pipe", /* 42 = pipe */
|
||||
"getegid", /* 43 = getegid */
|
||||
"profil", /* 44 = profil */
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
"ktrace", /* 45 = ktrace */
|
||||
#else
|
||||
"#45 (excluded ktrace)", /* 45 = excluded ktrace */
|
||||
#endif
|
||||
"sigaction13", /* 46 = sigaction13 */
|
||||
"getgid", /* 47 = getgid */
|
||||
"sigprocmask13", /* 48 = sigprocmask13 */
|
||||
"__getlogin", /* 49 = __getlogin */
|
||||
"__setlogin", /* 50 = __setlogin */
|
||||
"acct", /* 51 = acct */
|
||||
"sigpending13", /* 52 = sigpending13 */
|
||||
"sigaltstack13", /* 53 = sigaltstack13 */
|
||||
"ioctl", /* 54 = ioctl */
|
||||
"oreboot", /* 55 = oreboot */
|
||||
"revoke", /* 56 = revoke */
|
||||
"symlink", /* 57 = symlink */
|
||||
"readlink", /* 58 = readlink */
|
||||
"execve", /* 59 = execve */
|
||||
"umask", /* 60 = umask */
|
||||
"chroot", /* 61 = chroot */
|
||||
"fstat43", /* 62 = fstat43 */
|
||||
"ogetkerninfo", /* 63 = ogetkerninfo */
|
||||
"ogetpagesize", /* 64 = ogetpagesize */
|
||||
"msync", /* 65 = msync */
|
||||
"vfork", /* 66 = vfork */
|
||||
"#67 (obsolete vread)", /* 67 = obsolete vread */
|
||||
"#68 (obsolete vwrite)", /* 68 = obsolete vwrite */
|
||||
"sbrk", /* 69 = sbrk */
|
||||
"sstk", /* 70 = sstk */
|
||||
"ommap", /* 71 = ommap */
|
||||
"vadvise", /* 72 = vadvise */
|
||||
"munmap", /* 73 = munmap */
|
||||
"mprotect", /* 74 = mprotect */
|
||||
"madvise", /* 75 = madvise */
|
||||
"#76 (obsolete vhangup)", /* 76 = obsolete vhangup */
|
||||
"#77 (obsolete vlimit)", /* 77 = obsolete vlimit */
|
||||
"mincore", /* 78 = mincore */
|
||||
"getgroups", /* 79 = getgroups */
|
||||
"setgroups", /* 80 = setgroups */
|
||||
"getpgrp", /* 81 = getpgrp */
|
||||
"setpgid", /* 82 = setpgid */
|
||||
"setitimer", /* 83 = setitimer */
|
||||
"owait", /* 84 = owait */
|
||||
"oswapon", /* 85 = oswapon */
|
||||
"getitimer", /* 86 = getitimer */
|
||||
"ogethostname", /* 87 = ogethostname */
|
||||
"osethostname", /* 88 = osethostname */
|
||||
"ogetdtablesize", /* 89 = ogetdtablesize */
|
||||
"dup2", /* 90 = dup2 */
|
||||
"#91 (unimplemented getdopt)", /* 91 = unimplemented getdopt */
|
||||
"fcntl", /* 92 = fcntl */
|
||||
"select", /* 93 = select */
|
||||
"#94 (unimplemented setdopt)", /* 94 = unimplemented setdopt */
|
||||
"fsync", /* 95 = fsync */
|
||||
"setpriority", /* 96 = setpriority */
|
||||
"socket", /* 97 = socket */
|
||||
"connect", /* 98 = connect */
|
||||
"oaccept", /* 99 = oaccept */
|
||||
"getpriority", /* 100 = getpriority */
|
||||
"osend", /* 101 = osend */
|
||||
"orecv", /* 102 = orecv */
|
||||
"sigreturn13", /* 103 = sigreturn13 */
|
||||
"bind", /* 104 = bind */
|
||||
"setsockopt", /* 105 = setsockopt */
|
||||
"listen", /* 106 = listen */
|
||||
"#107 (obsolete vtimes)", /* 107 = obsolete vtimes */
|
||||
"osigvec", /* 108 = osigvec */
|
||||
"osigblock", /* 109 = osigblock */
|
||||
"osigsetmask", /* 110 = osigsetmask */
|
||||
"sigsuspend13", /* 111 = sigsuspend13 */
|
||||
"osigstack", /* 112 = osigstack */
|
||||
"orecvmsg", /* 113 = orecvmsg */
|
||||
"osendmsg", /* 114 = osendmsg */
|
||||
"#115 (obsolete vtrace)", /* 115 = obsolete vtrace */
|
||||
"gettimeofday", /* 116 = gettimeofday */
|
||||
"getrusage", /* 117 = getrusage */
|
||||
"getsockopt", /* 118 = getsockopt */
|
||||
"#119 (obsolete resuba)", /* 119 = obsolete resuba */
|
||||
"readv", /* 120 = readv */
|
||||
"writev", /* 121 = writev */
|
||||
"settimeofday", /* 122 = settimeofday */
|
||||
"fchown", /* 123 = fchown */
|
||||
"fchmod", /* 124 = fchmod */
|
||||
"orecvfrom", /* 125 = orecvfrom */
|
||||
"setreuid", /* 126 = setreuid */
|
||||
"setregid", /* 127 = setregid */
|
||||
"rename", /* 128 = rename */
|
||||
"otruncate", /* 129 = otruncate */
|
||||
"oftruncate", /* 130 = oftruncate */
|
||||
"flock", /* 131 = flock */
|
||||
"mkfifo", /* 132 = mkfifo */
|
||||
"sendto", /* 133 = sendto */
|
||||
"shutdown", /* 134 = shutdown */
|
||||
"socketpair", /* 135 = socketpair */
|
||||
"mkdir", /* 136 = mkdir */
|
||||
"rmdir", /* 137 = rmdir */
|
||||
"utimes", /* 138 = utimes */
|
||||
"#139 (obsolete 4.2 sigreturn)", /* 139 = obsolete 4.2 sigreturn */
|
||||
"adjtime", /* 140 = adjtime */
|
||||
"ogetpeername", /* 141 = ogetpeername */
|
||||
"ogethostid", /* 142 = ogethostid */
|
||||
"osethostid", /* 143 = osethostid */
|
||||
"ogetrlimit", /* 144 = ogetrlimit */
|
||||
"osetrlimit", /* 145 = osetrlimit */
|
||||
"okillpg", /* 146 = okillpg */
|
||||
"setsid", /* 147 = setsid */
|
||||
"quotactl", /* 148 = quotactl */
|
||||
"oquota", /* 149 = oquota */
|
||||
"ogetsockname", /* 150 = ogetsockname */
|
||||
"#151 (unimplemented)", /* 151 = unimplemented */
|
||||
"#152 (unimplemented)", /* 152 = unimplemented */
|
||||
"#153 (unimplemented)", /* 153 = unimplemented */
|
||||
"#154 (unimplemented)", /* 154 = unimplemented */
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
"nfssvc", /* 155 = nfssvc */
|
||||
#else
|
||||
"#155 (excluded nfssvc)", /* 155 = excluded nfssvc */
|
||||
#endif
|
||||
"ogetdirentries", /* 156 = ogetdirentries */
|
||||
"statfs", /* 157 = statfs */
|
||||
#ifdef COMPAT_20
|
||||
"fstatfs", /* 158 = fstatfs */
|
||||
#else
|
||||
"#158 (excluded compat_20_sys_fstatfs)", /* 158 = excluded compat_20_sys_fstatfs */
|
||||
#endif
|
||||
"#159 (unimplemented)", /* 159 = unimplemented */
|
||||
"#160 (unimplemented)", /* 160 = unimplemented */
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
"getfh", /* 161 = getfh */
|
||||
#else
|
||||
"#161 (excluded getfh)", /* 161 = excluded getfh */
|
||||
#endif
|
||||
"ogetdomainname", /* 162 = ogetdomainname */
|
||||
"osetdomainname", /* 163 = osetdomainname */
|
||||
"ouname", /* 164 = ouname */
|
||||
"sysarch", /* 165 = sysarch */
|
||||
"#166 (unimplemented)", /* 166 = unimplemented */
|
||||
"#167 (unimplemented)", /* 167 = unimplemented */
|
||||
"#168 (unimplemented)", /* 168 = unimplemented */
|
||||
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
"osemsys", /* 169 = osemsys */
|
||||
#else
|
||||
"#169 (excluded 1.0 semsys)", /* 169 = excluded 1.0 semsys */
|
||||
#endif
|
||||
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
"omsgsys", /* 170 = omsgsys */
|
||||
#else
|
||||
"#170 (excluded 1.0 msgsys)", /* 170 = excluded 1.0 msgsys */
|
||||
#endif
|
||||
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
"oshmsys", /* 171 = oshmsys */
|
||||
#else
|
||||
"#171 (excluded 1.0 shmsys)", /* 171 = excluded 1.0 shmsys */
|
||||
#endif
|
||||
"#172 (unimplemented)", /* 172 = unimplemented */
|
||||
"pread", /* 173 = pread */
|
||||
"pwrite", /* 174 = pwrite */
|
||||
"ntp_gettime", /* 175 = ntp_gettime */
|
||||
#if defined(NTP) || !defined(_KERNEL)
|
||||
"ntp_adjtime", /* 176 = ntp_adjtime */
|
||||
#else
|
||||
"#176 (excluded ntp_adjtime)", /* 176 = excluded ntp_adjtime */
|
||||
#endif
|
||||
"#177 (unimplemented)", /* 177 = unimplemented */
|
||||
"#178 (unimplemented)", /* 178 = unimplemented */
|
||||
"#179 (unimplemented)", /* 179 = unimplemented */
|
||||
"#180 (unimplemented)", /* 180 = unimplemented */
|
||||
"setgid", /* 181 = setgid */
|
||||
"setegid", /* 182 = setegid */
|
||||
"seteuid", /* 183 = 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 lfs_bmapv)", /* 184 = excluded lfs_bmapv */
|
||||
"#185 (excluded lfs_markv)", /* 185 = excluded lfs_markv */
|
||||
"#186 (excluded lfs_segclean)", /* 186 = excluded lfs_segclean */
|
||||
"#187 (excluded lfs_segwait)", /* 187 = excluded lfs_segwait */
|
||||
#endif
|
||||
"stat12", /* 188 = stat12 */
|
||||
"fstat12", /* 189 = fstat12 */
|
||||
"lstat12", /* 190 = lstat12 */
|
||||
"pathconf", /* 191 = pathconf */
|
||||
"fpathconf", /* 192 = fpathconf */
|
||||
"#193 (unimplemented)", /* 193 = unimplemented */
|
||||
"getrlimit", /* 194 = getrlimit */
|
||||
"setrlimit", /* 195 = setrlimit */
|
||||
"getdirentries", /* 196 = getdirentries */
|
||||
"mmap", /* 197 = mmap */
|
||||
"__syscall", /* 198 = __syscall */
|
||||
"lseek", /* 199 = lseek */
|
||||
"truncate", /* 200 = truncate */
|
||||
"ftruncate", /* 201 = ftruncate */
|
||||
"__sysctl", /* 202 = __sysctl */
|
||||
"mlock", /* 203 = mlock */
|
||||
"munlock", /* 204 = munlock */
|
||||
"undelete", /* 205 = undelete */
|
||||
"futimes", /* 206 = futimes */
|
||||
"getpgid", /* 207 = getpgid */
|
||||
"reboot", /* 208 = reboot */
|
||||
"poll", /* 209 = poll */
|
||||
#if defined(LKM) || !defined(_KERNEL)
|
||||
"lkmnosys", /* 210 = lkmnosys */
|
||||
"lkmnosys", /* 211 = lkmnosys */
|
||||
"lkmnosys", /* 212 = lkmnosys */
|
||||
"lkmnosys", /* 213 = lkmnosys */
|
||||
"lkmnosys", /* 214 = lkmnosys */
|
||||
"lkmnosys", /* 215 = lkmnosys */
|
||||
"lkmnosys", /* 216 = lkmnosys */
|
||||
"lkmnosys", /* 217 = lkmnosys */
|
||||
"lkmnosys", /* 218 = lkmnosys */
|
||||
"lkmnosys", /* 219 = lkmnosys */
|
||||
#else /* !LKM */
|
||||
"#210 (excluded lkmnosys)", /* 210 = excluded lkmnosys */
|
||||
"#211 (excluded lkmnosys)", /* 211 = excluded lkmnosys */
|
||||
"#212 (excluded lkmnosys)", /* 212 = excluded lkmnosys */
|
||||
"#213 (excluded lkmnosys)", /* 213 = excluded lkmnosys */
|
||||
"#214 (excluded lkmnosys)", /* 214 = excluded lkmnosys */
|
||||
"#215 (excluded lkmnosys)", /* 215 = excluded lkmnosys */
|
||||
"#216 (excluded lkmnosys)", /* 216 = excluded lkmnosys */
|
||||
"#217 (excluded lkmnosys)", /* 217 = excluded lkmnosys */
|
||||
"#218 (excluded lkmnosys)", /* 218 = excluded lkmnosys */
|
||||
"#219 (excluded lkmnosys)", /* 219 = excluded lkmnosys */
|
||||
#endif /* !LKM */
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
"__semctl", /* 220 = __semctl */
|
||||
#else
|
||||
"#220 (excluded compat_14_semctl)", /* 220 = excluded compat_14_semctl */
|
||||
#endif
|
||||
"semget", /* 221 = semget */
|
||||
"semop", /* 222 = semop */
|
||||
"semconfig", /* 223 = semconfig */
|
||||
#else
|
||||
"#220 (excluded compat_14_semctl)", /* 220 = excluded compat_14_semctl */
|
||||
"#221 (excluded semget)", /* 221 = excluded semget */
|
||||
"#222 (excluded semop)", /* 222 = excluded semop */
|
||||
"#223 (excluded semconfig)", /* 223 = excluded semconfig */
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
"msgctl", /* 224 = msgctl */
|
||||
#else
|
||||
"#224 (excluded compat_14_sys_msgctl)", /* 224 = excluded compat_14_sys_msgctl */
|
||||
#endif
|
||||
"msgget", /* 225 = msgget */
|
||||
"msgsnd", /* 226 = msgsnd */
|
||||
"msgrcv", /* 227 = msgrcv */
|
||||
#else
|
||||
"#224 (excluded compat_14_msgctl)", /* 224 = excluded compat_14_msgctl */
|
||||
"#225 (excluded msgget)", /* 225 = excluded msgget */
|
||||
"#226 (excluded msgsnd)", /* 226 = excluded msgsnd */
|
||||
"#227 (excluded msgrcv)", /* 227 = excluded msgrcv */
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
"shmat", /* 228 = shmat */
|
||||
#ifdef COMPAT_14
|
||||
"shmctl", /* 229 = shmctl */
|
||||
#else
|
||||
"#229 (excluded compat_14_sys_shmctl)", /* 229 = excluded compat_14_sys_shmctl */
|
||||
#endif
|
||||
"shmdt", /* 230 = shmdt */
|
||||
"shmget", /* 231 = shmget */
|
||||
#else
|
||||
"#228 (excluded shmat)", /* 228 = excluded shmat */
|
||||
"#229 (excluded compat_14_shmctl)", /* 229 = excluded compat_14_shmctl */
|
||||
"#230 (excluded shmdt)", /* 230 = excluded shmdt */
|
||||
"#231 (excluded shmget)", /* 231 = excluded shmget */
|
||||
#endif
|
||||
"clock_gettime", /* 232 = clock_gettime */
|
||||
"clock_settime", /* 233 = clock_settime */
|
||||
"clock_getres", /* 234 = 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 */
|
||||
"nanosleep", /* 240 = nanosleep */
|
||||
"fdatasync", /* 241 = fdatasync */
|
||||
"mlockall", /* 242 = mlockall */
|
||||
"munlockall", /* 243 = munlockall */
|
||||
"#244 (unimplemented)", /* 244 = unimplemented */
|
||||
"#245 (unimplemented)", /* 245 = unimplemented */
|
||||
"#246 (unimplemented)", /* 246 = unimplemented */
|
||||
"#247 (unimplemented)", /* 247 = unimplemented */
|
||||
"#248 (unimplemented)", /* 248 = unimplemented */
|
||||
"#249 (unimplemented)", /* 249 = unimplemented */
|
||||
"#250 (unimplemented)", /* 250 = unimplemented */
|
||||
"#251 (unimplemented)", /* 251 = unimplemented */
|
||||
"#252 (unimplemented)", /* 252 = unimplemented */
|
||||
"#253 (unimplemented)", /* 253 = unimplemented */
|
||||
"#254 (unimplemented)", /* 254 = unimplemented */
|
||||
"#255 (unimplemented)", /* 255 = unimplemented */
|
||||
"#256 (unimplemented)", /* 256 = unimplemented */
|
||||
"#257 (unimplemented)", /* 257 = unimplemented */
|
||||
"#258 (unimplemented)", /* 258 = unimplemented */
|
||||
"#259 (unimplemented)", /* 259 = unimplemented */
|
||||
"#260 (unimplemented)", /* 260 = unimplemented */
|
||||
"#261 (unimplemented)", /* 261 = unimplemented */
|
||||
"#262 (unimplemented)", /* 262 = unimplemented */
|
||||
"#263 (unimplemented)", /* 263 = unimplemented */
|
||||
"#264 (unimplemented)", /* 264 = unimplemented */
|
||||
"#265 (unimplemented)", /* 265 = unimplemented */
|
||||
"#266 (unimplemented)", /* 266 = unimplemented */
|
||||
"#267 (unimplemented)", /* 267 = unimplemented */
|
||||
"#268 (unimplemented)", /* 268 = unimplemented */
|
||||
"#269 (unimplemented)", /* 269 = unimplemented */
|
||||
"__posix_rename", /* 270 = __posix_rename */
|
||||
"swapctl", /* 271 = swapctl */
|
||||
"getdents", /* 272 = getdents */
|
||||
"minherit", /* 273 = minherit */
|
||||
"lchmod", /* 274 = lchmod */
|
||||
"lchown", /* 275 = lchown */
|
||||
"lutimes", /* 276 = lutimes */
|
||||
"__msync13", /* 277 = __msync13 */
|
||||
"__stat13", /* 278 = __stat13 */
|
||||
"__fstat13", /* 279 = __fstat13 */
|
||||
"__lstat13", /* 280 = __lstat13 */
|
||||
"__sigaltstack14", /* 281 = __sigaltstack14 */
|
||||
"__vfork14", /* 282 = __vfork14 */
|
||||
"__posix_chown", /* 283 = __posix_chown */
|
||||
"__posix_fchown", /* 284 = __posix_fchown */
|
||||
"__posix_lchown", /* 285 = __posix_lchown */
|
||||
"getsid", /* 286 = getsid */
|
||||
"#287 (unimplemented)", /* 287 = unimplemented */
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
"fktrace", /* 288 = fktrace */
|
||||
#else
|
||||
"#288 (excluded ktrace)", /* 288 = excluded ktrace */
|
||||
#endif
|
||||
"preadv", /* 289 = preadv */
|
||||
"pwritev", /* 290 = pwritev */
|
||||
#ifdef COMPAT_16
|
||||
"__sigaction14", /* 291 = __sigaction14 */
|
||||
#else
|
||||
"#291 (excluded compat_16_sys___sigaction14)", /* 291 = excluded compat_16_sys___sigaction14 */
|
||||
#endif
|
||||
"__sigpending14", /* 292 = __sigpending14 */
|
||||
"__sigprocmask14", /* 293 = __sigprocmask14 */
|
||||
"__sigsuspend14", /* 294 = __sigsuspend14 */
|
||||
#ifdef COMPAT_16
|
||||
"__sigreturn14", /* 295 = __sigreturn14 */
|
||||
#else
|
||||
"#295 (excluded compat_16_sys___sigreturn14)", /* 295 = excluded compat_16_sys___sigreturn14 */
|
||||
#endif
|
||||
"__getcwd", /* 296 = __getcwd */
|
||||
"fchroot", /* 297 = fchroot */
|
||||
"fhopen", /* 298 = fhopen */
|
||||
"fhstat", /* 299 = fhstat */
|
||||
#ifdef COMPAT_20
|
||||
"fhstatfs", /* 300 = fhstatfs */
|
||||
#else
|
||||
"#300 (excluded compat_20_sys_fhstatfs)", /* 300 = excluded compat_20_sys_fhstatfs */
|
||||
#endif
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
"____semctl13", /* 301 = ____semctl13 */
|
||||
#else
|
||||
"#301 (excluded ____semctl13)", /* 301 = excluded ____semctl13 */
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
"__msgctl13", /* 302 = __msgctl13 */
|
||||
#else
|
||||
"#302 (excluded __msgctl13)", /* 302 = excluded __msgctl13 */
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
"__shmctl13", /* 303 = __shmctl13 */
|
||||
#else
|
||||
"#303 (excluded __shmctl13)", /* 303 = excluded __shmctl13 */
|
||||
#endif
|
||||
"lchflags", /* 304 = lchflags */
|
||||
"issetugid", /* 305 = issetugid */
|
||||
};
|
File diff suppressed because it is too large
Load Diff
|
@ -1,12 +0,0 @@
|
|||
# $NetBSD: files.aout,v 1.1 1999/02/11 09:41:34 christos Exp $
|
||||
#
|
||||
# Config file description for machine-independent SVR4 compat code.
|
||||
# Included by ports that need it.
|
||||
|
||||
# ports should define any machine-specific files they need in their
|
||||
# own file lists.
|
||||
|
||||
file compat/aout/aout_exec.c compat_aout
|
||||
file compat/aout/aout_misc.c compat_aout
|
||||
file compat/aout/aout_syscalls.c compat_aout
|
||||
file compat/aout/aout_sysent.c compat_aout
|
|
@ -1,12 +0,0 @@
|
|||
# $NetBSD: syscalls.conf,v 1.4 2003/09/23 14:33:24 christos Exp $
|
||||
|
||||
sysnames="aout_syscalls.c"
|
||||
sysnumhdr="aout_syscall.h"
|
||||
syssw="aout_sysent.c"
|
||||
sysarghdr="aout_syscallargs.h"
|
||||
libcompatopts=""
|
||||
|
||||
switchname="aout_sysent"
|
||||
namesname="aout_syscallnames"
|
||||
constprefix="AOUT_SYS_"
|
||||
nsysent=512
|
|
@ -1,647 +0,0 @@
|
|||
$NetBSD: syscalls.master,v 1.21 2004/04/21 01:05:36 christos Exp $
|
||||
|
||||
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
||||
|
||||
; NetBSD system call name/number "master" file.
|
||||
; (See syscalls.conf to see what it is processed into.)
|
||||
;
|
||||
; Fields: number type [type-dependent ...]
|
||||
; number system call number, must be in order
|
||||
; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
|
||||
; the compatibility options defined in syscalls.conf.
|
||||
;
|
||||
; types:
|
||||
; STD always included
|
||||
; OBSOL obsolete, not included in system
|
||||
; UNIMPL unimplemented, not included in system
|
||||
; EXCL implemented, but not included in system
|
||||
; NODEF included, but don't define the syscall number
|
||||
; NOARGS included, but don't define the syscall args structure
|
||||
; INDIR included, but don't define the syscall args structure,
|
||||
; and allow it to be "really" varargs.
|
||||
;
|
||||
; The compat options are defined in the syscalls.conf file, and the
|
||||
; compat option name is prefixed to the syscall name. Other than
|
||||
; that, they're like NODEF (for 'compat' options), or STD (for
|
||||
; 'libcompat' options).
|
||||
;
|
||||
; The type-dependent arguments are as follows:
|
||||
; For STD, NODEF, NOARGS, and compat syscalls:
|
||||
; { pseudo-proto } [alias]
|
||||
; For other syscalls:
|
||||
; [comment]
|
||||
;
|
||||
; #ifdef's, etc. may be included, and are copied to the output files.
|
||||
; #include's are copied to the syscall names and switch definition files only.
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ktrace.h"
|
||||
#include "opt_nfsserver.h"
|
||||
#include "opt_ntp.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_sysv.h"
|
||||
#include "opt_compat_43.h"
|
||||
|
||||
#include "fs_lfs.h"
|
||||
#include "fs_nfs.h"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/syscallargs.h>
|
||||
#include <compat/aout/aout_syscallargs.h>
|
||||
|
||||
%%
|
||||
|
||||
; Reserved/unimplemented system calls in the range 0-150 inclusive
|
||||
; are reserved for use in future Berkeley releases.
|
||||
; Additional system calls implemented in vendor and other
|
||||
; redistributions should be placed in the reserved range at the end
|
||||
; of the current calls.
|
||||
|
||||
0 INDIR { int sys_syscall(int number, ...); }
|
||||
1 NOARGS { void sys_exit(int rval); }
|
||||
2 NOARGS { int sys_fork(void); }
|
||||
3 NOARGS { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
|
||||
4 NOARGS { ssize_t sys_write(int fd, const void *buf, \
|
||||
size_t nbyte); }
|
||||
5 STD { int aout_sys_open(const char *path, \
|
||||
int flags, ... mode_t mode); }
|
||||
6 NOARGS { int sys_close(int fd); }
|
||||
7 NOARGS { int sys_wait4(int pid, int *status, int options, \
|
||||
struct rusage *rusage); }
|
||||
8 NOARGS { int compat_43_sys_creat(const char *path, mode_t mode); } \
|
||||
ocreat
|
||||
9 STD { int aout_sys_link(const char *path, \
|
||||
const char *link); }
|
||||
10 STD { int aout_sys_unlink(const char *path); }
|
||||
11 OBSOL execv
|
||||
12 STD { int aout_sys_chdir(const char *path); }
|
||||
13 NOARGS { int sys_fchdir(int fd); }
|
||||
14 NOARGS { int sys_mknod(const char *path, mode_t mode, \
|
||||
dev_t dev); }
|
||||
15 STD { int aout_sys_chmod(const char *path, mode_t mode); }
|
||||
16 STD { int aout_sys_chown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
17 NOARGS { int sys_obreak(char *nsize); } break
|
||||
#ifdef COMPAT_20
|
||||
18 NOARGS { int compat_20_sys_getfsstat(struct statfs12 *buf, \
|
||||
long bufsize, int flags); }
|
||||
#else
|
||||
18 EXCL compat_20_sys_getfsstat
|
||||
#endif
|
||||
19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
|
||||
int whence); } olseek
|
||||
20 NOARGS MPSAFE { pid_t sys_getpid(void); }
|
||||
21 NOARGS { int sys_mount(const char *type, \
|
||||
const char *path, int flags, void *data); }
|
||||
22 STD { int aout_sys_unmount(const char *path, int flags); }
|
||||
23 NOARGS { int sys_setuid(uid_t uid); }
|
||||
24 NOARGS { uid_t sys_getuid(void); }
|
||||
25 NOARGS { uid_t sys_geteuid(void); }
|
||||
26 NOARGS { int sys_ptrace(int req, pid_t pid, caddr_t addr, \
|
||||
int data); }
|
||||
27 NOARGS { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
|
||||
int flags); }
|
||||
28 NOARGS { ssize_t sys_sendmsg(int s, \
|
||||
const struct msghdr *msg, int flags); }
|
||||
29 NOARGS { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
|
||||
int flags, struct sockaddr *from, \
|
||||
int *fromlenaddr); }
|
||||
30 NOARGS { int sys_accept(int s, struct sockaddr *name, \
|
||||
int *anamelen); }
|
||||
31 NOARGS { int sys_getpeername(int fdes, struct sockaddr *asa, \
|
||||
int *alen); }
|
||||
32 NOARGS { int sys_getsockname(int fdes, struct sockaddr *asa, \
|
||||
int *alen); }
|
||||
33 STD { int aout_sys_access(const char *path, int flags); }
|
||||
34 STD { int aout_sys_chflags(const char *path, \
|
||||
u_long flags); }
|
||||
35 NOARGS { int sys_fchflags(int fd, u_long flags); }
|
||||
36 NOARGS { void sys_sync(void); }
|
||||
37 NOARGS { int sys_kill(int pid, int signum); }
|
||||
38 STD { int aout_compat_43_sys_stat(const char *path, \
|
||||
struct stat43 *ub); } stat43
|
||||
39 NOARGS { pid_t sys_getppid(void); }
|
||||
40 STD { int aout_compat_43_sys_lstat(const char *path, \
|
||||
struct stat43 *ub); } lstat43
|
||||
41 NOARGS { int sys_dup(int fd); }
|
||||
42 NOARGS { int sys_pipe(void); }
|
||||
43 NOARGS { gid_t sys_getegid(void); }
|
||||
44 NOARGS { int sys_profil(caddr_t samples, size_t size, \
|
||||
u_long offset, u_int scale); }
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
45 NOARGS { int sys_ktrace(const char *fname, int ops, \
|
||||
int facs, int pid); }
|
||||
#else
|
||||
45 EXCL ktrace
|
||||
#endif
|
||||
46 NOARGS { int compat_13_sys_sigaction(int signum, \
|
||||
const struct sigaction13 *nsa, \
|
||||
struct sigaction13 *osa); } sigaction13
|
||||
47 NOARGS { gid_t sys_getgid(void); }
|
||||
48 NOARGS { int compat_13_sys_sigprocmask(int how, \
|
||||
int mask); } sigprocmask13
|
||||
49 NOARGS { int sys___getlogin(char *namebuf, size_t namelen); }
|
||||
50 NOARGS { int sys___setlogin(const char *namebuf); }
|
||||
51 NOARGS { int sys_acct(const char *path); }
|
||||
52 NOARGS { int compat_13_sys_sigpending(void); } sigpending13
|
||||
53 NOARGS { int compat_13_sys_sigaltstack( \
|
||||
const struct sigaltstack13 *nss, \
|
||||
struct sigaltstack13 *oss); } sigaltstack13
|
||||
54 NOARGS { int sys_ioctl(int fd, \
|
||||
u_long com, ... void *data); }
|
||||
55 NOARGS { int compat_12_sys_reboot(int opt); } oreboot
|
||||
56 STD { int aout_sys_revoke(const char *path); }
|
||||
57 STD { int aout_sys_symlink(const char *path, \
|
||||
const char *link); }
|
||||
58 STD { int aout_sys_readlink(const char *path, char *buf, \
|
||||
size_t count); }
|
||||
59 STD { int aout_sys_execve(const char *path, \
|
||||
char * const *argp, char * const *envp); }
|
||||
60 NOARGS { mode_t sys_umask(mode_t newmask); }
|
||||
61 STD { int aout_sys_chroot(const char *path); }
|
||||
62 NOARGS { int compat_43_sys_fstat(int fd, \
|
||||
struct stat43 *sb); } fstat43
|
||||
63 NOARGS { int compat_43_sys_getkerninfo(int op, char *where, \
|
||||
int *size, int arg); } ogetkerninfo
|
||||
64 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize
|
||||
65 NOARGS { int compat_12_sys_msync(caddr_t addr, size_t len); }
|
||||
; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
|
||||
66 NOARGS { int sys_vfork(void); }
|
||||
67 OBSOL vread
|
||||
68 OBSOL vwrite
|
||||
69 NOARGS { int sys_sbrk(intptr_t incr); }
|
||||
70 NOARGS { int sys_sstk(int incr); }
|
||||
71 NOARGS { int compat_43_sys_mmap(caddr_t addr, size_t len, \
|
||||
int prot, int flags, int fd, long pos); } ommap
|
||||
72 NOARGS { int sys_ovadvise(int anom); } vadvise
|
||||
73 NOARGS { int sys_munmap(void *addr, size_t len); }
|
||||
74 NOARGS { int sys_mprotect(void *addr, size_t len, \
|
||||
int prot); }
|
||||
75 NOARGS { int sys_madvise(void *addr, size_t len, \
|
||||
int behav); }
|
||||
76 OBSOL vhangup
|
||||
77 OBSOL vlimit
|
||||
78 NOARGS { int sys_mincore(caddr_t addr, size_t len, \
|
||||
char *vec); }
|
||||
79 NOARGS { int sys_getgroups(int gidsetsize, \
|
||||
gid_t *gidset); }
|
||||
80 NOARGS { int sys_setgroups(int gidsetsize, \
|
||||
const gid_t *gidset); }
|
||||
81 NOARGS { int sys_getpgrp(void); }
|
||||
82 NOARGS { int sys_setpgid(int pid, int pgid); }
|
||||
83 NOARGS { int sys_setitimer(int which, \
|
||||
const struct itimerval *itv, \
|
||||
struct itimerval *oitv); }
|
||||
84 NOARGS { int compat_43_sys_wait(void); } owait
|
||||
85 NOARGS { int compat_12_sys_swapon(const char *name); } oswapon
|
||||
86 NOARGS { int sys_getitimer(int which, \
|
||||
struct itimerval *itv); }
|
||||
87 NOARGS { int compat_43_sys_gethostname(char *hostname, \
|
||||
u_int len); } ogethostname
|
||||
88 NOARGS { int compat_43_sys_sethostname(char *hostname, \
|
||||
u_int len); } osethostname
|
||||
89 NOARGS { int compat_43_sys_getdtablesize(void); } \
|
||||
ogetdtablesize
|
||||
90 NOARGS { int sys_dup2(int from, int to); }
|
||||
91 UNIMPL getdopt
|
||||
92 NOARGS { int sys_fcntl(int fd, int cmd, ... void *arg); }
|
||||
93 NOARGS { int sys_select(int nd, fd_set *in, fd_set *ou, \
|
||||
fd_set *ex, struct timeval *tv); }
|
||||
94 UNIMPL setdopt
|
||||
95 NOARGS { int sys_fsync(int fd); }
|
||||
96 NOARGS { int sys_setpriority(int which, int who, int prio); }
|
||||
97 NOARGS { int sys_socket(int domain, int type, int protocol); }
|
||||
98 NOARGS { int sys_connect(int s, const struct sockaddr *name, \
|
||||
int namelen); }
|
||||
99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \
|
||||
int *anamelen); } oaccept
|
||||
100 NOARGS { int sys_getpriority(int which, int who); }
|
||||
101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
|
||||
int flags); } osend
|
||||
102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
|
||||
int flags); } orecv
|
||||
103 NOARGS { int compat_13_sys_sigreturn( \
|
||||
struct sigcontext13 *sigcntxp); } sigreturn13
|
||||
104 NOARGS { int sys_bind(int s, const struct sockaddr *name, \
|
||||
int namelen); }
|
||||
105 NOARGS { int sys_setsockopt(int s, int level, int name, \
|
||||
const void *val, int valsize); }
|
||||
106 NOARGS { int sys_listen(int s, int backlog); }
|
||||
107 OBSOL vtimes
|
||||
108 NOARGS { int compat_43_sys_sigvec(int signum, \
|
||||
struct sigvec *nsv, struct sigvec *osv); } osigvec
|
||||
109 NOARGS { int compat_43_sys_sigblock(int mask); } osigblock
|
||||
110 NOARGS { int compat_43_sys_sigsetmask(int mask); } osigsetmask
|
||||
111 NOARGS { int compat_13_sys_sigsuspend(int mask); } sigsuspend13
|
||||
112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
|
||||
struct sigstack *oss); } osigstack
|
||||
113 NOARGS { int compat_43_sys_recvmsg(int s, \
|
||||
struct omsghdr *msg, int flags); } orecvmsg
|
||||
114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \
|
||||
int flags); } osendmsg
|
||||
115 OBSOL vtrace
|
||||
116 NOARGS { int sys_gettimeofday(struct timeval *tp, \
|
||||
struct timezone *tzp); }
|
||||
117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
|
||||
118 NOARGS { int sys_getsockopt(int s, int level, int name, \
|
||||
void *val, int *avalsize); }
|
||||
119 OBSOL resuba
|
||||
120 NOARGS { ssize_t sys_readv(int fd, \
|
||||
const struct iovec *iovp, int iovcnt); }
|
||||
121 NOARGS { ssize_t sys_writev(int fd, \
|
||||
const struct iovec *iovp, int iovcnt); }
|
||||
122 NOARGS { int sys_settimeofday(const struct timeval *tv, \
|
||||
const struct timezone *tzp); }
|
||||
123 NOARGS { int sys_fchown(int fd, uid_t uid, gid_t gid); }
|
||||
124 NOARGS { int sys_fchmod(int fd, mode_t mode); }
|
||||
125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \
|
||||
size_t len, int flags, caddr_t from, \
|
||||
int *fromlenaddr); } orecvfrom
|
||||
126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
|
||||
127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
|
||||
128 STD { int aout_sys_rename(const char *from, \
|
||||
const char *to); }
|
||||
129 STD { int aout_compat_43_sys_truncate(const char *path, \
|
||||
long length); } otruncate
|
||||
130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } \
|
||||
oftruncate
|
||||
131 NOARGS { int sys_flock(int fd, int how); }
|
||||
132 NOARGS { int sys_mkfifo(const char *path, mode_t mode); }
|
||||
133 NOARGS { ssize_t sys_sendto(int s, const void *buf, \
|
||||
size_t len, int flags, const struct sockaddr *to, \
|
||||
int tolen); }
|
||||
134 NOARGS { int sys_shutdown(int s, int how); }
|
||||
135 NOARGS { int sys_socketpair(int domain, int type, \
|
||||
int protocol, int *rsv); }
|
||||
136 NOARGS { int sys_mkdir(const char *path, mode_t mode); }
|
||||
137 STD { int aout_sys_rmdir(const char *path); }
|
||||
138 STD { int aout_sys_utimes(const char *path, \
|
||||
const struct timeval *tptr); }
|
||||
139 OBSOL 4.2 sigreturn
|
||||
140 NOARGS { int sys_adjtime(const struct timeval *delta, \
|
||||
struct timeval *olddelta); }
|
||||
141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \
|
||||
int *alen); } ogetpeername
|
||||
142 NOARGS { int32_t compat_43_sys_gethostid(void); } ogethostid
|
||||
143 NOARGS { int compat_43_sys_sethostid(int32_t hostid); } \
|
||||
osethostid
|
||||
144 NOARGS { int compat_43_sys_getrlimit(int which, \
|
||||
struct orlimit *rlp); } ogetrlimit
|
||||
145 NOARGS { int compat_43_sys_setrlimit(int which, \
|
||||
const struct orlimit *rlp); } osetrlimit
|
||||
146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } \
|
||||
okillpg
|
||||
147 NOARGS { int sys_setsid(void); }
|
||||
148 NOARGS { int sys_quotactl(const char *path, \
|
||||
int cmd, int uid, caddr_t arg); }
|
||||
149 NOARGS { int compat_43_sys_quota(void); } oquota
|
||||
150 NOARGS { int compat_43_sys_getsockname(int fdec, caddr_t asa, \
|
||||
int *alen); } ogetsockname
|
||||
; Syscalls 151-180 inclusive are reserved for vendor-specific
|
||||
; system calls. (This includes various calls added for compatibity
|
||||
; with other Unix variants.)
|
||||
; Some of these calls are now supported by BSD...
|
||||
151 UNIMPL
|
||||
152 UNIMPL
|
||||
153 UNIMPL
|
||||
154 UNIMPL
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
155 NOARGS { int sys_nfssvc(int flag, void *argp); }
|
||||
#else
|
||||
155 EXCL nfssvc
|
||||
#endif
|
||||
156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \
|
||||
u_int count, long *basep); } ogetdirentries
|
||||
157 STD { int aout_sys_statfs(const char *path, \
|
||||
struct statfs12 *buf); }
|
||||
#ifdef COMPAT_20
|
||||
158 NOARGS { int compat_20_sys_fstatfs(int fd, \
|
||||
struct statfs12 *buf); }
|
||||
#else
|
||||
158 EXCL compat_20_sys_fstatfs
|
||||
#endif
|
||||
159 UNIMPL
|
||||
160 UNIMPL
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
161 STD { int aout_sys_getfh(const char *fname, \
|
||||
fhandle_t *fhp); }
|
||||
#else
|
||||
161 EXCL getfh
|
||||
#endif
|
||||
162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
|
||||
int len); } ogetdomainname
|
||||
163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
|
||||
int len); } osetdomainname
|
||||
164 NOARGS { int compat_09_sys_uname(struct outsname *name); } \
|
||||
ouname
|
||||
165 NOARGS { int sys_sysarch(int op, void *parms); }
|
||||
166 UNIMPL
|
||||
167 UNIMPL
|
||||
168 UNIMPL
|
||||
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
|
||||
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
169 NOARGS { int 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(void *) != sizeof(int)
|
||||
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
170 NOARGS { int 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(void *) != sizeof(int)
|
||||
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
|
||||
171 NOARGS { int compat_10_sys_shmsys(int which, int a2, int a3, \
|
||||
int a4); } oshmsys
|
||||
#else
|
||||
171 EXCL 1.0 shmsys
|
||||
#endif
|
||||
172 UNIMPL
|
||||
173 NOARGS { ssize_t sys_pread(int fd, void *buf, \
|
||||
size_t nbyte, int pad, off_t offset); }
|
||||
174 NOARGS { ssize_t sys_pwrite(int fd, const void *buf, \
|
||||
size_t nbyte, int pad, off_t offset); }
|
||||
; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
|
||||
175 NOARGS { int sys_ntp_gettime(struct ntptimeval *ntvp); }
|
||||
#if defined(NTP) || !defined(_KERNEL)
|
||||
176 NOARGS { int sys_ntp_adjtime(struct timex *tp); }
|
||||
#else
|
||||
176 EXCL ntp_adjtime
|
||||
#endif
|
||||
177 UNIMPL
|
||||
178 UNIMPL
|
||||
179 UNIMPL
|
||||
180 UNIMPL
|
||||
|
||||
; Syscalls 180-199 are used by/reserved for BSD
|
||||
181 NOARGS { int sys_setgid(gid_t gid); }
|
||||
182 NOARGS { int sys_setegid(gid_t egid); }
|
||||
183 NOARGS { int sys_seteuid(uid_t euid); }
|
||||
#if defined(LFS) || !defined(_KERNEL)
|
||||
184 NOARGS { int sys_lfs_bmapv(fsid_t *fsidp, \
|
||||
struct block_info *blkiov, int blkcnt); }
|
||||
185 NOARGS { int sys_lfs_markv(fsid_t *fsidp, \
|
||||
struct block_info *blkiov, int blkcnt); }
|
||||
186 NOARGS { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
|
||||
187 NOARGS { int sys_lfs_segwait(fsid_t *fsidp, \
|
||||
struct timeval *tv); }
|
||||
#else
|
||||
184 EXCL lfs_bmapv
|
||||
185 EXCL lfs_markv
|
||||
186 EXCL lfs_segclean
|
||||
187 EXCL lfs_segwait
|
||||
#endif
|
||||
188 STD { int aout_compat_12_sys_stat(const char *path, \
|
||||
struct stat12 *ub); } stat12
|
||||
189 NOARGS { int compat_12_sys_fstat(int fd, struct stat12 *sb); } fstat12
|
||||
190 STD { int aout_compat_12_sys_lstat(const char *path, \
|
||||
struct stat12 *ub); } lstat12
|
||||
191 STD { long aout_sys_pathconf(const char *path, int name); }
|
||||
192 NOARGS { long sys_fpathconf(int fd, int name); }
|
||||
193 UNIMPL
|
||||
194 NOARGS { int sys_getrlimit(int which, \
|
||||
struct rlimit *rlp); }
|
||||
195 NOARGS { int sys_setrlimit(int which, \
|
||||
const struct rlimit *rlp); }
|
||||
196 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \
|
||||
u_int count, long *basep); }
|
||||
197 NOARGS { void *sys_mmap(void *addr, size_t len, int prot, \
|
||||
int flags, int fd, long pad, off_t pos); }
|
||||
198 INDIR { quad_t sys___syscall(quad_t num, ...); }
|
||||
199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \
|
||||
int whence); }
|
||||
200 STD { int aout_sys_truncate(const char *path, int pad, \
|
||||
off_t length); }
|
||||
201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); }
|
||||
202 NOARGS { int sys___sysctl(int *name, u_int namelen, \
|
||||
void *old, size_t *oldlenp, void *new, \
|
||||
size_t newlen); }
|
||||
203 NOARGS { int sys_mlock(const void *addr, size_t len); }
|
||||
204 NOARGS { int sys_munlock(const void *addr, size_t len); }
|
||||
205 STD { int aout_sys_undelete(const char *path); }
|
||||
206 NOARGS { int sys_futimes(int fd, \
|
||||
const struct timeval *tptr); }
|
||||
207 NOARGS { pid_t sys_getpgid(pid_t pid); }
|
||||
208 NOARGS { int sys_reboot(int opt, char *bootstr); }
|
||||
209 NOARGS { int sys_poll(struct pollfd *fds, u_int nfds, \
|
||||
int timeout); }
|
||||
;
|
||||
; Syscalls 210-219 are reserved for dynamically loaded syscalls
|
||||
;
|
||||
#if defined(LKM) || !defined(_KERNEL)
|
||||
210 NODEF { int sys_lkmnosys(void); }
|
||||
211 NODEF { int sys_lkmnosys(void); }
|
||||
212 NODEF { int sys_lkmnosys(void); }
|
||||
213 NODEF { int sys_lkmnosys(void); }
|
||||
214 NODEF { int sys_lkmnosys(void); }
|
||||
215 NODEF { int sys_lkmnosys(void); }
|
||||
216 NODEF { int sys_lkmnosys(void); }
|
||||
217 NODEF { int sys_lkmnosys(void); }
|
||||
218 NODEF { int sys_lkmnosys(void); }
|
||||
219 NODEF { int sys_lkmnosys(void); }
|
||||
#else /* !LKM */
|
||||
210 EXCL lkmnosys
|
||||
211 EXCL lkmnosys
|
||||
212 EXCL lkmnosys
|
||||
213 EXCL lkmnosys
|
||||
214 EXCL lkmnosys
|
||||
215 EXCL lkmnosys
|
||||
216 EXCL lkmnosys
|
||||
217 EXCL lkmnosys
|
||||
218 EXCL lkmnosys
|
||||
219 EXCL lkmnosys
|
||||
#endif /* !LKM */
|
||||
; System calls 220-300 are reserved for use by NetBSD
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
220 NOARGS { int compat_14_sys___semctl(int semid, \
|
||||
int semnum, int cmd, union __semun *arg); }
|
||||
#else
|
||||
220 EXCL compat_14_semctl
|
||||
#endif
|
||||
221 NOARGS { int sys_semget(key_t key, int nsems, int semflg); }
|
||||
222 NOARGS { int sys_semop(int semid, struct sembuf *sops, \
|
||||
size_t nsops); }
|
||||
223 NOARGS { int sys_semconfig(int flag); }
|
||||
#else
|
||||
220 EXCL compat_14_semctl
|
||||
221 EXCL semget
|
||||
222 EXCL semop
|
||||
223 EXCL semconfig
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_14
|
||||
224 NOARGS { int compat_14_sys_msgctl(int msqid, int cmd, \
|
||||
struct msqid_ds14 *buf); }
|
||||
#else
|
||||
224 EXCL compat_14_sys_msgctl
|
||||
#endif
|
||||
225 NOARGS { int sys_msgget(key_t key, int msgflg); }
|
||||
226 NOARGS { int sys_msgsnd(int msqid, const void *msgp, \
|
||||
size_t msgsz, int msgflg); }
|
||||
227 NOARGS { ssize_t sys_msgrcv(int msqid, void *msgp, \
|
||||
size_t msgsz, long msgtyp, int msgflg); }
|
||||
#else
|
||||
224 EXCL compat_14_msgctl
|
||||
225 EXCL msgget
|
||||
226 EXCL msgsnd
|
||||
227 EXCL msgrcv
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
228 NOARGS { void *sys_shmat(int shmid, const void *shmaddr, \
|
||||
int shmflg); }
|
||||
#ifdef COMPAT_14
|
||||
229 NOARGS { int compat_14_sys_shmctl(int shmid, int cmd, \
|
||||
struct shmid_ds14 *buf); }
|
||||
#else
|
||||
229 EXCL compat_14_sys_shmctl
|
||||
#endif
|
||||
230 NOARGS { int sys_shmdt(const void *shmaddr); }
|
||||
231 NOARGS { int sys_shmget(key_t key, size_t size, int shmflg); }
|
||||
#else
|
||||
228 EXCL shmat
|
||||
229 EXCL compat_14_shmctl
|
||||
230 EXCL shmdt
|
||||
231 EXCL shmget
|
||||
#endif
|
||||
232 NOARGS { int sys_clock_gettime(clockid_t clock_id, \
|
||||
struct timespec *tp); }
|
||||
233 NOARGS { int sys_clock_settime(clockid_t clock_id, \
|
||||
const struct timespec *tp); }
|
||||
234 NOARGS { int sys_clock_getres(clockid_t clock_id, \
|
||||
struct timespec *tp); }
|
||||
235 UNIMPL timer_create
|
||||
236 UNIMPL timer_delete
|
||||
237 UNIMPL timer_settime
|
||||
238 UNIMPL timer_gettime
|
||||
239 UNIMPL timer_getoverrun
|
||||
;
|
||||
; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
|
||||
;
|
||||
240 NOARGS { int sys_nanosleep(const struct timespec *rqtp, \
|
||||
struct timespec *rmtp); }
|
||||
241 NOARGS { int sys_fdatasync(int fd); }
|
||||
242 NOARGS { int sys_mlockall(int flags); }
|
||||
243 NOARGS { int sys_munlockall(void); }
|
||||
244 UNIMPL
|
||||
245 UNIMPL
|
||||
246 UNIMPL
|
||||
247 UNIMPL
|
||||
248 UNIMPL
|
||||
249 UNIMPL
|
||||
250 UNIMPL
|
||||
251 UNIMPL
|
||||
252 UNIMPL
|
||||
253 UNIMPL
|
||||
254 UNIMPL
|
||||
255 UNIMPL
|
||||
256 UNIMPL
|
||||
257 UNIMPL
|
||||
258 UNIMPL
|
||||
259 UNIMPL
|
||||
260 UNIMPL
|
||||
261 UNIMPL
|
||||
262 UNIMPL
|
||||
263 UNIMPL
|
||||
264 UNIMPL
|
||||
265 UNIMPL
|
||||
266 UNIMPL
|
||||
267 UNIMPL
|
||||
268 UNIMPL
|
||||
269 UNIMPL
|
||||
270 STD { int aout_sys___posix_rename(const char *from, \
|
||||
const char *to); }
|
||||
271 NOARGS { int sys_swapctl(int cmd, const void *arg, int misc); }
|
||||
272 NOARGS { int sys_getdents(int fd, char *buf, size_t count); }
|
||||
273 NOARGS { int sys_minherit(void *addr, size_t len, \
|
||||
int inherit); }
|
||||
274 STD { int aout_sys_lchmod(const char *path, mode_t mode); }
|
||||
275 STD { int aout_sys_lchown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
276 STD { int aout_sys_lutimes(const char *path, \
|
||||
const struct timeval *tptr); }
|
||||
277 NOARGS { int sys___msync13(void *addr, size_t len, int flags); }
|
||||
278 NOARGS { int sys___stat13(const char *path, struct stat *ub); }
|
||||
279 NOARGS { int sys___fstat13(int fd, struct stat *sb); }
|
||||
280 NOARGS { int sys___lstat13(const char *path, struct stat *ub); }
|
||||
281 NOARGS { int sys___sigaltstack14( \
|
||||
const struct sigaltstack *nss, \
|
||||
struct sigaltstack *oss); }
|
||||
282 NOARGS { int sys___vfork14(void); }
|
||||
283 STD { int aout_sys___posix_chown(const char *path, \
|
||||
uid_t uid, gid_t gid); }
|
||||
284 NOARGS { int sys___posix_fchown(int fd, uid_t uid, \
|
||||
gid_t gid); }
|
||||
285 NOARGS { int sys___posix_lchown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
286 NOARGS { pid_t sys_getsid(pid_t pid); }
|
||||
287 UNIMPL
|
||||
#if defined(KTRACE) || !defined(_KERNEL)
|
||||
288 NOARGS { int sys_fktrace(const int fd, int ops, \
|
||||
int facs, int pid); }
|
||||
#else
|
||||
288 EXCL ktrace
|
||||
#endif
|
||||
289 NOARGS { ssize_t sys_preadv(int fd, \
|
||||
const struct iovec *iovp, int iovcnt, \
|
||||
int pad, off_t offset); }
|
||||
290 NOARGS { ssize_t sys_pwritev(int fd, \
|
||||
const struct iovec *iovp, int iovcnt, \
|
||||
int pad, off_t offset); }
|
||||
#ifdef COMPAT_16
|
||||
291 NOARGS { int compat_16_sys___sigaction14(int signum, \
|
||||
const struct sigaction *nsa, \
|
||||
struct sigaction *osa); }
|
||||
#else
|
||||
291 EXCL compat_16_sys___sigaction14
|
||||
#endif
|
||||
292 NOARGS { int sys___sigpending14(sigset_t *set); }
|
||||
293 NOARGS { int sys___sigprocmask14(int how, \
|
||||
const sigset_t *set, \
|
||||
sigset_t *oset); }
|
||||
294 NOARGS { int sys___sigsuspend14(const sigset_t *set); }
|
||||
#ifdef COMPAT_16
|
||||
295 NOARGS { int compat_16_sys___sigreturn14( \
|
||||
struct sigcontext *sigcntxp); }
|
||||
#else
|
||||
295 EXCL compat_16_sys___sigreturn14
|
||||
#endif
|
||||
296 NOARGS { int sys___getcwd(char *bufp, size_t length); }
|
||||
297 NOARGS { int sys_fchroot(int fd); }
|
||||
298 NOARGS { int sys_fhopen(const fhandle_t *fhp, int flags); }
|
||||
299 NOARGS { int sys_fhstat(const fhandle_t *fhp, \
|
||||
struct stat *sb); }
|
||||
#ifdef COMPAT_20
|
||||
300 NOARGS { int compat_20_sys_fhstatfs(const fhandle_t *fhp, \
|
||||
struct statfs12 *buf); }
|
||||
#else
|
||||
300 EXCL compat_20_sys_fhstatfs
|
||||
#endif
|
||||
#if defined(SYSVSEM) || !defined(_KERNEL)
|
||||
301 NOARGS { int sys_____semctl13(int semid, int semnum, int cmd, \
|
||||
... union __semun *arg); }
|
||||
#else
|
||||
301 EXCL ____semctl13
|
||||
#endif
|
||||
#if defined(SYSVMSG) || !defined(_KERNEL)
|
||||
302 NOARGS { int sys___msgctl13(int msqid, int cmd, \
|
||||
struct msqid_ds *buf); }
|
||||
#else
|
||||
302 EXCL __msgctl13
|
||||
#endif
|
||||
#if defined(SYSVSHM) || !defined(_KERNEL)
|
||||
303 NOARGS { int sys___shmctl13(int shmid, int cmd, \
|
||||
struct shmid_ds *buf); }
|
||||
#else
|
||||
303 EXCL __shmctl13
|
||||
#endif
|
||||
304 NOARGS { int sys_lchflags(const char *path, u_long flags); }
|
||||
305 NOARGS { int sys_issetugid(void); }
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: files,v 1.683 2004/08/26 16:48:06 jkunz Exp $
|
||||
# $NetBSD: files,v 1.684 2004/09/14 16:57:31 jdolecek Exp $
|
||||
|
||||
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
|
||||
|
||||
|
@ -73,7 +73,6 @@ defflag COMPAT_SUNOS
|
|||
defflag opt_compat_svr4.h COMPAT_SVR4 COMPAT_SVR4_32 SVR4_COMPAT_SOLARIS2
|
||||
defflag COMPAT_ULTRIX
|
||||
defflag COMPAT_NETBSD32
|
||||
defflag COMPAT_AOUT
|
||||
defflag COMPAT_AOUT_M68K
|
||||
defflag COMPAT_M68K4K
|
||||
defflag COMPAT_MACH
|
||||
|
|
Loading…
Reference in New Issue