Source-Changes-HG archive

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

[src/trunk]: src/sys/kern add mach/macho exec struct



details:   https://anonhg.NetBSD.org/src/rev/10685f89f0ec
branches:  trunk
changeset: 512690:10685f89f0ec
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 14 02:06:34 2001 +0000

description:
add mach/macho exec struct

diffstat:

 sys/kern/exec_conf.c |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r 62a07e500410 -r 10685f89f0ec sys/kern/exec_conf.c
--- a/sys/kern/exec_conf.c      Sat Jul 14 02:05:54 2001 +0000
+++ b/sys/kern/exec_conf.c      Sat Jul 14 02:06:34 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_conf.c,v 1.57 2001/06/19 17:58:41 jdolecek Exp $  */
+/*     $NetBSD: exec_conf.c,v 1.58 2001/07/14 02:06:34 christos Exp $  */
 
 /*
  * Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -37,6 +37,7 @@
 #include "opt_compat_sunos.h"
 #include "opt_compat_hpux.h"
 #include "opt_compat_m68k4k.h"
+#include "opt_compat_mach.h"
 #include "opt_compat_svr4.h"
 #include "opt_compat_netbsd32.h"
 #include "opt_compat_aout.h"
@@ -82,6 +83,10 @@
 #endif
 #endif /* ELF32 || ELF64 */
 
+#ifdef EXEC_MACHO
+#include <sys/exec_macho.h>
+#endif
+
 #ifdef COMPAT_SUNOS
 #include <compat/sunos/sunos_exec.h>
 #endif
@@ -116,6 +121,10 @@
 #include <compat/m68k4k/m68k4k_exec.h>
 #endif
 
+#ifdef COMPAT_MACH
+#include <compat/mach/mach_exec.h>
+#endif
+
 #ifdef COMPAT_NETBSD32
 #include <compat/netbsd32/netbsd32_exec.h>
 #ifdef COMPAT_SUNOS
@@ -225,6 +234,13 @@
          LINUX_ELF_AUX_ARGSIZ,
          LINUX_COPYARGS_FUNCTION, setregs },   /* Linux 32bit ELF bins */
 #endif
+#if defined(EXEC_MACHO) && defined(COMPAT_MACH)
+       { sizeof (struct exec_macho_fat_header), exec_macho_makecmds,
+         { .mach_probe_func = exec_mach_probe },
+         &emul_mach, EXECSW_PRIO_ANY,
+         MAXPATHLEN + 1,
+         exec_mach_copyargs, setregs },        /* Mach 32bit MACH-O bins */
+#endif
 #ifdef COMPAT_SVR4_32
        { sizeof (Elf32_Ehdr), exec_elf32_makecmds,
          { ELF32NAME2(svr4_32,probe) },



Home | Main Index | Thread Index | Old Index