summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_exec.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2004-04-15 00:22:42 +0000
committertedu <tedu@openbsd.org>2004-04-15 00:22:42 +0000
commit0b3a3f553f72eb7bfca9ec195aa803f3a08a692a (patch)
treeef110fd563ed501fae13b39e8f027430e391d402 /sys/compat/linux/linux_exec.c
parentFix urio(4) entry, MAKEDEV was correct already; ok deraadt (diff)
downloadwireguard-openbsd-0b3a3f553f72eb7bfca9ec195aa803f3a08a692a.tar.xz
wireguard-openbsd-0b3a3f553f72eb7bfca9ec195aa803f3a08a692a.zip
rework access to emulations slightly in an effort to both merge and
separate exec format from emulation. consistent naming of freebsd emuls. not much in the way of functional changes yet. testing and ok deraadt@ and others along the way.
Diffstat (limited to 'sys/compat/linux/linux_exec.c')
-rw-r--r--sys/compat/linux/linux_exec.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c
index b0203f6f956..7b40114a0ac 100644
--- a/sys/compat/linux/linux_exec.c
+++ b/sys/compat/linux/linux_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_exec.c,v 1.22 2003/08/21 18:56:07 tedu Exp $ */
+/* $OpenBSD: linux_exec.c,v 1.23 2004/04/15 00:22:42 tedu Exp $ */
/* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */
/*-
@@ -459,6 +459,14 @@ exec_linux_aout_prep_qmagic(p, epp)
}
int
+exec_linux_elf32_makecmds(struct proc *p, struct exec_package *epp)
+{
+ if (!(emul_linux_elf.e_flags & EMUL_ENABLED))
+ return (ENOEXEC);
+ return exec_elf32_makecmds(p, epp);
+}
+
+int
linux_elf_probe(p, epp, itp, pos, os)
struct proc *p;
struct exec_package *epp;