Source-Changes-HG archive

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

[src/trunk]: src/sys remove COMPAT_AOUT



details:   https://anonhg.NetBSD.org/src/rev/b5361670370c
branches:  trunk
changeset: 569955:b5361670370c
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Sep 14 16:57:31 2004 +0000

description:
remove COMPAT_AOUT

diffstat:

 sys/compat/aout/Makefile           |     9 -
 sys/compat/aout/aout_exec.c        |   109 ---
 sys/compat/aout/aout_misc.c        |   595 -----------------
 sys/compat/aout/aout_syscall.h     |   851 -------------------------
 sys/compat/aout/aout_syscallargs.h |   813 -----------------------
 sys/compat/aout/aout_syscalls.c    |   457 -------------
 sys/compat/aout/aout_sysent.c      |  1221 ------------------------------------
 sys/compat/aout/files.aout         |    12 -
 sys/compat/aout/syscalls.conf      |    12 -
 sys/compat/aout/syscalls.master    |   647 -------------------
 sys/conf/files                     |     3 +-
 11 files changed, 1 insertions(+), 4728 deletions(-)

diffs (truncated from 4783 to 300 lines):

diff -r e80c45a05a56 -r b5361670370c sys/compat/aout/Makefile
--- a/sys/compat/aout/Makefile  Tue Sep 14 16:51:57 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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
diff -r e80c45a05a56 -r b5361670370c sys/compat/aout/aout_exec.c
--- a/sys/compat/aout/aout_exec.c       Tue Sep 14 16:51:57 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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,
-};
diff -r e80c45a05a56 -r b5361670370c sys/compat/aout/aout_misc.c
--- a/sys/compat/aout/aout_misc.c       Tue Sep 14 16:51:57 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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);
-}
-
-



Home | Main Index | Thread Index | Old Index