summaryrefslogtreecommitdiff
path: root/sys/compat/hpux/hpux_exec.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-25 12:20:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-25 12:20:03 +0000
commitc0d8e069269f4b68db3b7b60ad34b70bf98b9b82 (patch)
tree710ca086b634768616e96dafeedb2d6a32906155 /sys/compat/hpux/hpux_exec.c
parent69189bf9794c800b106a391ec8409cc13efb8ebe (diff)
route execve via compat filename translation
Diffstat (limited to 'sys/compat/hpux/hpux_exec.c')
-rw-r--r--sys/compat/hpux/hpux_exec.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/compat/hpux/hpux_exec.c b/sys/compat/hpux/hpux_exec.c
index 25e4346c01d..6ecf99b7b22 100644
--- a/sys/compat/hpux/hpux_exec.c
+++ b/sys/compat/hpux/hpux_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hpux_exec.c,v 1.3 1996/08/02 20:34:54 niklas Exp $ */
+/* $OpenBSD: hpux_exec.c,v 1.4 1996/08/25 12:19:48 deraadt Exp $ */
/* $NetBSD: hpux_exec.c,v 1.3 1996/01/06 12:44:13 thorpej Exp $ */
/*
@@ -300,3 +300,17 @@ hpux_sys_execv(p, v, retval)
return sys_execve(p, &ap, retval);
}
+
+int
+hpux_sys_execve(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct hpux_sys_execve_args *uap = v;
+
+ caddr_t sg = stackgap_init(p->p_emul);
+ HPUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
+
+ return (sys_execve(p, (struct sys_execve_args *)&uap, retval));
+}