Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 exec internals have been moved (and improved...
details: https://anonhg.NetBSD.org/src/rev/4d80ff97653a
branches: trunk
changeset: 472278:4d80ff97653a
user: cgd <cgd%NetBSD.org@localhost>
date: Mon Apr 26 18:34:05 1999 +0000
description:
exec internals have been moved (and improved) to osf1_exec.c. Not much
there yet, but more to come.
diffstat:
sys/compat/osf1/files.osf1 | 3 +-
sys/compat/osf1/osf1_exec.c | 74 +++++++++++++++++++++++++++++++++++++++++++++
sys/compat/osf1/osf1_misc.c | 25 +--------------
3 files changed, 77 insertions(+), 25 deletions(-)
diffs (134 lines):
diff -r 3c5c71a2fc59 -r 4d80ff97653a sys/compat/osf1/files.osf1
--- a/sys/compat/osf1/files.osf1 Mon Apr 26 18:30:45 1999 +0000
+++ b/sys/compat/osf1/files.osf1 Mon Apr 26 18:34:05 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.osf1,v 1.4 1999/04/23 06:07:55 cgd Exp $
+# $NetBSD: files.osf1,v 1.5 1999/04/26 18:34:05 cgd Exp $
#
# Config file description for machine-independent OSF/1 compat code.
# Included by ports that need it.
@@ -9,6 +9,7 @@
# XXX COMPAT_OSF1 requires ECOFF
file compat/osf1/osf1_errno.c compat_osf1
+file compat/osf1/osf1_exec.c compat_osf1
file compat/osf1/osf1_ioctl.c compat_osf1
file compat/osf1/osf1_misc.c compat_osf1
file compat/osf1/osf1_mount.c compat_osf1
diff -r 3c5c71a2fc59 -r 4d80ff97653a sys/compat/osf1/osf1_exec.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/compat/osf1/osf1_exec.c Mon Apr 26 18:34:05 1999 +0000
@@ -0,0 +1,74 @@
+/* $NetBSD: osf1_exec.c,v 1.1 1999/04/26 18:34:05 cgd Exp $ */
+
+/*
+ * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Christopher G. Demetriou
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/kernel.h>
+#include <sys/proc.h>
+#include <sys/malloc.h>
+#include <sys/namei.h>
+#include <sys/vnode.h>
+#include <sys/mount.h>
+#include <sys/exec.h>
+#include <sys/exec_ecoff.h>
+#include <sys/signalvar.h>
+#include <sys/fcntl.h>
+
+#include <compat/osf1/osf1.h>
+#include <compat/osf1/osf1_syscall.h>
+
+extern struct sysent osf1_sysent[];
+extern char *osf1_syscallnames[];
+extern void cpu_exec_ecoff_setregs __P((struct proc *, struct exec_package *,
+ u_long));
+extern char sigcode[], esigcode[];
+
+struct emul emul_osf1 = {
+ "osf1",
+ netbsd_to_osf1_errno,
+ sendsig,
+ OSF1_SYS_syscall,
+ OSF1_SYS_MAXSYSCALL,
+ osf1_sysent,
+ osf1_syscallnames,
+#if 0 /* XXX notyet */
+ MAX_AUX_ENTRIES * sizeof (struct osf1_auxv) +
+ 2 * (MAXPATHLEN + 1), /* exec name & loader name */
+ osf1_copyargs,
+#else
+ 0,
+ copyargs,
+#endif
+ cpu_exec_ecoff_setregs,
+ sigcode,
+ esigcode,
+};
diff -r 3c5c71a2fc59 -r 4d80ff97653a sys/compat/osf1/osf1_misc.c
--- a/sys/compat/osf1/osf1_misc.c Mon Apr 26 18:30:45 1999 +0000
+++ b/sys/compat/osf1/osf1_misc.c Mon Apr 26 18:34:05 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_misc.c,v 1.23 1999/04/26 06:10:37 cgd Exp $ */
+/* $NetBSD: osf1_misc.c,v 1.24 1999/04/26 18:34:05 cgd Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -91,29 +91,6 @@
const char osf1_emul_path[] = "/emul/osf1";
-/* XXX BEGIN BITS THAT DON'T BELONG HERE */
-extern struct sysent osf1_sysent[];
-extern char *osf1_syscallnames[];
-extern void cpu_exec_ecoff_setregs __P((struct proc *, struct exec_package *,
- u_long));
-extern char sigcode[], esigcode[];
-
-struct emul emul_osf1 = {
- "osf1",
- netbsd_to_osf1_errno,
- sendsig,
- OSF1_SYS_syscall,
- OSF1_SYS_MAXSYSCALL,
- osf1_sysent,
- osf1_syscallnames,
- 0,
- copyargs,
- cpu_exec_ecoff_setregs,
- sigcode,
- esigcode,
-};
-/* XXX END BITS THAT DON'T BELONG HERE */
-
const struct emul_flags_xtab osf1_open_flags_xtab[] = {
{ OSF1_O_ACCMODE, OSF1_O_RDONLY, O_RDONLY },
{ OSF1_O_ACCMODE, OSF1_O_WRONLY, O_WRONLY },
Home |
Main Index |
Thread Index |
Old Index