summaryrefslogtreecommitdiff
path: root/sys/compat/osf1/osf1_misc.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/osf1/osf1_misc.c
parent69189bf9794c800b106a391ec8409cc13efb8ebe (diff)
route execve via compat filename translation
Diffstat (limited to 'sys/compat/osf1/osf1_misc.c')
-rw-r--r--sys/compat/osf1/osf1_misc.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/compat/osf1/osf1_misc.c b/sys/compat/osf1/osf1_misc.c
index 008900407fa..ed0e94aeffc 100644
--- a/sys/compat/osf1/osf1_misc.c
+++ b/sys/compat/osf1/osf1_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osf1_misc.c,v 1.3 1996/08/23 11:46:51 niklas Exp $ */
+2/* $OpenBSD: osf1_misc.c,v 1.4 1996/08/25 12:19:53 deraadt Exp $ */
/* $NetBSD: osf1_misc.c,v 1.7 1995/10/07 06:53:04 mycroft Exp $ */
/*
@@ -956,3 +956,17 @@ osf1_sys_madvise(p, v, retval)
/* XXX */
return EINVAL;
}
+
+int
+osf1_sys_execve(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct osf1_sys_execve_args *uap = v;
+
+ caddr_t sg = stackgap_init(p->p_emul);
+ OSF1_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
+
+ return (sys_execve(p, (struct sys_execve_args *)&uap, retval));
+}