diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-25 12:20:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-25 12:20:03 +0000 |
commit | c0d8e069269f4b68db3b7b60ad34b70bf98b9b82 (patch) | |
tree | 710ca086b634768616e96dafeedb2d6a32906155 /sys/compat/ultrix/ultrix_misc.c | |
parent | 69189bf9794c800b106a391ec8409cc13efb8ebe (diff) |
route execve via compat filename translation
Diffstat (limited to 'sys/compat/ultrix/ultrix_misc.c')
-rw-r--r-- | sys/compat/ultrix/ultrix_misc.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/compat/ultrix/ultrix_misc.c b/sys/compat/ultrix/ultrix_misc.c index d911e80aea6..046cc440349 100644 --- a/sys/compat/ultrix/ultrix_misc.c +++ b/sys/compat/ultrix/ultrix_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ultrix_misc.c,v 1.8 1996/08/10 12:09:24 deraadt Exp $ */ +/* $OpenBSD: ultrix_misc.c,v 1.9 1996/08/25 12:20:02 deraadt Exp $ */ /* $NetBSD: ultrix_misc.c,v 1.23 1996/04/07 17:23:04 jonathan Exp $ */ /* @@ -582,3 +582,17 @@ ultrix_sys_sigreturn(p, v, retval) #endif return sys_sigreturn(p, (struct sys_sigreturn_args *)uap, retval); } + +int +ultrix_sys_execve(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + struct ultrix_sys_execve_args *uap = v; + + caddr_t sg = stackgap_init(p->p_emul); + ULTRIX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path)); + + return (sys_execve(p, (struct sys_execve_args *)&uap, retval)); +} |