remove all alternative path check code, and (empty) ioctl wrapper
This commit is contained in:
parent
edb77e2a6d
commit
c2e4e13382
|
@ -1,65 +0,0 @@
|
|||
/* $NetBSD: aoutm68k_ioctl.c,v 1.3 2003/01/18 07:21:14 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Steve C. Woodford.
|
||||
*
|
||||
* 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: aoutm68k_ioctl.c,v 1.3 2003/01/18 07:21:14 thorpej Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/syscallargs.h>
|
||||
|
||||
#include <compat/aoutm68k/aoutm68k_util.h>
|
||||
#include <compat/aoutm68k/aoutm68k_syscall.h>
|
||||
#include <compat/aoutm68k/aoutm68k_syscallargs.h>
|
||||
|
||||
int
|
||||
aoutm68k_sys_ioctl(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
/* XXX: For now ... */
|
||||
|
||||
return (sys_ioctl(l, v, retval));
|
||||
}
|
|
@ -1,501 +0,0 @@
|
|||
/* $NetBSD: aoutm68k_misc.c,v 1.9 2004/04/21 01:05:36 christos 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 and Steve C. Woodford.
|
||||
*
|
||||
* 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: aoutm68k_misc.c,v 1.9 2004/04/21 01:05:36 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/fcntl.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/sa.h>
|
||||
#include <sys/syscallargs.h>
|
||||
|
||||
#include <compat/aoutm68k/aoutm68k_util.h>
|
||||
#include <compat/aoutm68k/aoutm68k_syscall.h>
|
||||
#include <compat/aoutm68k/aoutm68k_syscallargs.h>
|
||||
|
||||
|
||||
int
|
||||
aoutm68k_sys_open(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_sys_open_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_open(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aoutm68k_sys_link(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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));
|
||||
|
||||
return sys_link(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aoutm68k_sys_unlink(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_chdir(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_chmod(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_chown(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_access(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_chflags(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_revoke(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_symlink(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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));
|
||||
|
||||
return sys_symlink(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aoutm68k_sys_readlink(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_execve(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_chroot(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_rename(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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));
|
||||
|
||||
return sys_rename(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
#ifdef COMPAT_43
|
||||
int
|
||||
aoutm68k_compat_43_sys_truncate(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
int
|
||||
aoutm68k_sys_rmdir(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_utimes(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_statfs(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_getfh(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_pathconf(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_truncate(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_undelete(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys___posix_rename(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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));
|
||||
|
||||
return sys___posix_rename(l, v, retval);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
aoutm68k_sys_lchmod(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_lchown(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys_lutimes(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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
|
||||
aoutm68k_sys___posix_chown(l, v, retval)
|
||||
struct lwp *l;
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
struct aoutm68k_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,4 +1,4 @@
|
|||
# $NetBSD: files.aoutm68k,v 1.3 2004/09/12 08:04:50 he Exp $
|
||||
# $NetBSD: files.aoutm68k,v 1.4 2004/09/14 17:39:18 jdolecek Exp $
|
||||
#
|
||||
# Config file description for m68k a.out compat code.
|
||||
|
||||
|
@ -6,7 +6,5 @@
|
|||
# own file lists.
|
||||
|
||||
file compat/aoutm68k/aoutm68k_exec.c compat_aout_m68k
|
||||
file compat/aoutm68k/aoutm68k_ioctl.c compat_aout_m68k
|
||||
file compat/aoutm68k/aoutm68k_misc.c compat_aout_m68k & compat_aout_altpath
|
||||
file compat/aoutm68k/aoutm68k_stat.c compat_aout_m68k
|
||||
file compat/aoutm68k/aoutm68k_sysent.c compat_aout_m68k
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: syscalls.master,v 1.11 2004/04/21 01:05:36 christos Exp $
|
||||
$NetBSD: syscalls.master,v 1.12 2004/09/14 17:39:18 jdolecek Exp $
|
||||
|
||||
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
||||
|
||||
|
@ -68,13 +68,8 @@
|
|||
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); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
5 STD { int aoutm68k_sys_open(const char *path, \
|
||||
int flags, ... mode_t mode); }
|
||||
#else
|
||||
5 NOARGS { int sys_open(const char *path, int flags, \
|
||||
... mode_t mode); }
|
||||
#endif
|
||||
6 NOARGS { int sys_close(int fd); }
|
||||
7 NOARGS { int sys_wait4(int pid, int *status, int options, \
|
||||
struct rusage *rusage); }
|
||||
|
@ -84,33 +79,16 @@
|
|||
#else
|
||||
8 EXCL compat_43_sys_creat
|
||||
#endif
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
9 STD { int aoutm68k_sys_link(const char *path, \
|
||||
const char *link); }
|
||||
10 STD { int aoutm68k_sys_unlink(const char *path); }
|
||||
#else
|
||||
9 NOARGS { int sys_link(const char *path, const char *link); }
|
||||
10 NOARGS { int sys_unlink(const char *path); }
|
||||
#endif
|
||||
11 OBSOL execv
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
12 STD { int aoutm68k_sys_chdir(const char *path); }
|
||||
#else
|
||||
12 NOARGS { int sys_chdir(const char *path); }
|
||||
#endif
|
||||
13 NOARGS { int sys_fchdir(int fd); }
|
||||
14 NOARGS { int sys_mknod(const char *path, mode_t mode, \
|
||||
dev_t dev); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
15 STD { int aoutm68k_sys_chmod(const char *path, \
|
||||
mode_t mode); }
|
||||
16 STD { int aoutm68k_sys_chown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
#else
|
||||
15 NOARGS { int sys_chmod(const char *path, mode_t mode); }
|
||||
16 NOARGS { int sys_chown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
#endif
|
||||
17 NOARGS { int sys_obreak(char *nsize); } break
|
||||
#ifdef COMPAT_20
|
||||
18 NOARGS { int compat_20_sys_getfsstat(struct statfs12 *buf, \
|
||||
|
@ -146,14 +124,8 @@
|
|||
unsigned int *alen); }
|
||||
32 NOARGS { int sys_getsockname(int fdes, struct sockaddr *asa, \
|
||||
unsigned int *alen); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
33 STD { int aoutm68k_sys_access(const char *path, int flags); }
|
||||
34 STD { int aoutm68k_sys_chflags(const char *path, \
|
||||
u_long flags); }
|
||||
#else
|
||||
33 NOARGS { int sys_access(const char *path, int flags); }
|
||||
34 NOARGS { int sys_chflags(const char *path, u_long flags); }
|
||||
#endif
|
||||
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); }
|
||||
|
@ -207,22 +179,12 @@
|
|||
52 EXCL compat_13_sys_sigpending
|
||||
53 EXCL compat_13_sys_sigaltstack
|
||||
#endif
|
||||
54 STD { int aoutm68k_sys_ioctl(int fd, \
|
||||
u_long com, ... void *data); }
|
||||
54 NOARGS { int sys_ioctl(int fd, u_long com, ... void *data); }
|
||||
#ifdef COMPAT_12
|
||||
55 NOARGS { int compat_12_sys_reboot(int opt); } oreboot
|
||||
#else
|
||||
55 EXCL compat_12_sys_reboot
|
||||
#endif
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
56 STD { int aoutm68k_sys_revoke(const char *path); }
|
||||
57 STD { int aoutm68k_sys_symlink(const char *path, \
|
||||
const char *link); }
|
||||
58 STD { int aoutm68k_sys_readlink(const char *path, \
|
||||
char *buf, size_t count); }
|
||||
59 STD { int aoutm68k_sys_execve(const char *path, \
|
||||
char * const *argp, char * const *envp); }
|
||||
#else
|
||||
56 NOARGS { int sys_revoke(const char *path); }
|
||||
57 NOARGS { int sys_symlink(const char *path, \
|
||||
const char *link); }
|
||||
|
@ -230,13 +192,8 @@
|
|||
char *buf, size_t count); }
|
||||
59 NOARGS { int sys_execve(const char *path, \
|
||||
char * const *argp, char * const *envp); }
|
||||
#endif
|
||||
60 NOARGS { mode_t sys_umask(mode_t newmask); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
61 STD { int aoutm68k_sys_chroot(const char *path); }
|
||||
#else
|
||||
61 NOARGS { int sys_chroot(const char *path); }
|
||||
#endif
|
||||
#ifdef COMPAT_43
|
||||
62 STD { int aoutm68k_compat_43_sys_fstat(int fd, \
|
||||
struct aoutm68k_stat43 *sb); } fstat43
|
||||
|
@ -398,28 +355,14 @@
|
|||
#endif
|
||||
126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
|
||||
127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
128 STD { int aoutm68k_sys_rename(const char *from, \
|
||||
const char *to); }
|
||||
#else
|
||||
128 NOARGS { int sys_rename(const char *from, const char *to); }
|
||||
#endif
|
||||
#ifdef COMPAT_43
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
129 STD { int aoutm68k_compat_43_sys_truncate(const char *path, \
|
||||
long length); } otruncate
|
||||
#else
|
||||
129 NOARGS { int compat_43_sys_truncate(const char *path, \
|
||||
long length); } otruncate
|
||||
#endif
|
||||
130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } \
|
||||
oftruncate
|
||||
#else
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
129 EXCL aoutm68k_compat_43_sys_truncate
|
||||
#else
|
||||
129 EXCL compat_43_sys_truncate
|
||||
#endif
|
||||
130 EXCL compat_43_sys_ftruncate
|
||||
#endif
|
||||
131 NOARGS { int sys_flock(int fd, int how); }
|
||||
|
@ -431,15 +374,9 @@
|
|||
135 NOARGS { int sys_socketpair(int domain, int type, \
|
||||
int protocol, int *rsv); }
|
||||
136 NOARGS { int sys_mkdir(const char *path, mode_t mode); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
137 STD { int aoutm68k_sys_rmdir(const char *path); }
|
||||
138 STD { int aoutm68k_sys_utimes(const char *path, \
|
||||
const struct timeval *tptr); }
|
||||
#else
|
||||
137 NOARGS { int sys_rmdir(const char *path); }
|
||||
138 NOARGS { int sys_utimes(const char *path, \
|
||||
const struct timeval *tptr); }
|
||||
#endif
|
||||
139 OBSOL 4.2 sigreturn
|
||||
140 NOARGS { int sys_adjtime(const struct timeval *delta, \
|
||||
struct timeval *olddelta); }
|
||||
|
@ -494,17 +431,12 @@
|
|||
#else
|
||||
156 EXCL compat_43_sys_getdirentries
|
||||
#endif
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
157 STD { int aoutm68k_sys_statfs(const char *path, \
|
||||
struct statfs12 *buf); }
|
||||
#else
|
||||
#ifdef COMPAT_20
|
||||
157 NOARGS { int compat_20_sys_statfs(const char *path, \
|
||||
struct statfs12 *buf); }
|
||||
#else
|
||||
157 EXCL compat_20_sys_statfs
|
||||
#endif
|
||||
#endif
|
||||
#ifdef COMPAT_20
|
||||
158 NOARGS { int compat_20_sys_fstatfs(int fd, \
|
||||
struct statfs12 *buf); }
|
||||
|
@ -514,12 +446,7 @@
|
|||
159 UNIMPL
|
||||
160 UNIMPL
|
||||
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
161 STD { int aoutm68k_sys_getfh(const char *fname, \
|
||||
fhandle_t *fhp); }
|
||||
#else
|
||||
161 NOARGS { int sys_getfh(const char *fname, fhandle_t *fhp); }
|
||||
#endif
|
||||
#else
|
||||
161 EXCL getfh
|
||||
#endif
|
||||
|
@ -607,12 +534,7 @@
|
|||
189 EXCL aoutm68k_compat_12_sys_fstat
|
||||
190 EXCL aoutm68k_compat_12_sys_lstat
|
||||
#endif
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
191 STD { long aoutm68k_sys_pathconf(const char *path, \
|
||||
int name); }
|
||||
#else
|
||||
191 NOARGS { long sys_pathconf(const char *path, int name); }
|
||||
#endif
|
||||
192 NOARGS { long sys_fpathconf(int fd, int name); }
|
||||
193 UNIMPL
|
||||
194 NOARGS { int sys_getrlimit(int which, \
|
||||
|
@ -630,24 +552,15 @@
|
|||
198 INDIR { quad_t sys___syscall(quad_t num, ...); }
|
||||
199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \
|
||||
int whence); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
200 STD { int aoutm68k_sys_truncate(const char *path, int pad, \
|
||||
off_t length); }
|
||||
#else
|
||||
200 NOARGS { int sys_truncate(const char *path, int pad, \
|
||||
off_t length); }
|
||||
#endif
|
||||
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); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
205 STD { int aoutm68k_sys_undelete(const char *path); }
|
||||
#else
|
||||
205 NOARGS { int sys_undelete(const char *path); }
|
||||
#endif
|
||||
206 NOARGS { int sys_futimes(int fd, \
|
||||
const struct timeval *tptr); }
|
||||
207 NOARGS { pid_t sys_getpgid(pid_t pid); }
|
||||
|
@ -778,31 +691,17 @@
|
|||
267 UNIMPL
|
||||
268 UNIMPL
|
||||
269 UNIMPL
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
270 STD { int aoutm68k_sys___posix_rename(const char *from, \
|
||||
const char *to); }
|
||||
#else
|
||||
270 NOARGS { int sys___posix_rename(const char *from, \
|
||||
const char *to); }
|
||||
#endif
|
||||
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); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
274 STD { int aoutm68k_sys_lchmod(const char *path, \
|
||||
mode_t mode); }
|
||||
275 STD { int aoutm68k_sys_lchown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
276 STD { int aoutm68k_sys_lutimes(const char *path, \
|
||||
const struct timeval *tptr); }
|
||||
#else
|
||||
274 NOARGS { int sys_lchmod(const char *path, mode_t mode); }
|
||||
275 NOARGS { int sys_lchown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
276 NOARGS { int sys_lutimes(const char *path, \
|
||||
const struct timeval *tptr); }
|
||||
#endif
|
||||
277 NOARGS { int sys___msync13(void *addr, size_t len, int flags); }
|
||||
278 STD { int aoutm68k_sys___stat13(const char *path, \
|
||||
struct aoutm68k_stat *ub); }
|
||||
|
@ -814,13 +713,8 @@
|
|||
const struct sigaltstack *nss, \
|
||||
struct sigaltstack *oss); }
|
||||
282 NOARGS { int sys___vfork14(void); }
|
||||
#ifdef COMPAT_AOUT_ALTPATH
|
||||
283 STD { int aoutm68k_sys___posix_chown(const char *path, \
|
||||
uid_t uid, gid_t gid); }
|
||||
#else
|
||||
283 NOARGS { int sys___posix_chown(const char *path, uid_t uid, \
|
||||
gid_t gid); }
|
||||
#endif
|
||||
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, \
|
||||
|
|
Loading…
Reference in New Issue