Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/aoutm68k remove all alternative path check code, ...



details:   https://anonhg.NetBSD.org/src/rev/c86ef92bb28c
branches:  trunk
changeset: 569961:c86ef92bb28c
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Sep 14 17:39:18 2004 +0000

description:
remove all alternative path check code, and (empty) ioctl wrapper

diffstat:

 sys/compat/aoutm68k/aoutm68k_ioctl.c |   65 ----
 sys/compat/aoutm68k/aoutm68k_misc.c  |  501 -----------------------------------
 sys/compat/aoutm68k/files.aoutm68k   |    4 +-
 sys/compat/aoutm68k/syscalls.master  |  110 +-------
 4 files changed, 3 insertions(+), 677 deletions(-)

diffs (truncated from 861 to 300 lines):

diff -r c49d4c4ed461 -r c86ef92bb28c sys/compat/aoutm68k/aoutm68k_ioctl.c
--- a/sys/compat/aoutm68k/aoutm68k_ioctl.c      Tue Sep 14 17:38:30 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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));
-}
diff -r c49d4c4ed461 -r c86ef92bb28c sys/compat/aoutm68k/aoutm68k_misc.c
--- a/sys/compat/aoutm68k/aoutm68k_misc.c       Tue Sep 14 17:38:30 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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);
-}
-
-



Home | Main Index | Thread Index | Old Index