1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * %sccs.include.redist.c% 9 */ 10 11#if defined(SYSLIBC_SCCS) && !defined(lint) 12 .asciz "@(#)execle.s 5.1 (Berkeley) 04/23/90" 13#endif /* SYSLIBC_SCCS and not lint */ 14 15#include "SYS.h" 16 17ENTRY(execle) 18 lea 4(%esp),%eax 191: 20 cmpl $0,(%eax) 21 je 1f 22 addl $4,%eax 23 jmp 1b 241: 25 addl $4,%eax 26 movl (%eax),%eax 27 pushl %eax /* *envp */ 28 lea 8+4(%esp),%eax 29 pushl %eax /* *ap */ 30 movl 4+8(%esp),%eax 31 pushl %eax /* file */ 32 33 call _execve 34 addl $12,%esp 35 ret /* execle(file, arg1, arg2, ..., 0, env); */ 36 /* execve (file, *ap, env) */ 37