Skip to content

Commit 6a4601f

Browse files
committed
Auto merge of #481 - philippkeller:master, r=alexcrichton
Add execl, execle, execlp I tried to be as close as possible to the existing definitions of `execv` and friends. btw: do you still welcome these PR? Doesn't the [new bindgen/build.rs method](http://fitzgeraldnick.com/2016/12/14/using-libbindgen-in-build-rs.html) offer to automate this crate to 100%
2 parents 23e45ab + 9d562b9 commit 6a4601f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@ extern {
377377
pub fn close(fd: ::c_int) -> ::c_int;
378378
pub fn dup(fd: ::c_int) -> ::c_int;
379379
pub fn dup2(src: ::c_int, dst: ::c_int) -> ::c_int;
380+
pub fn execl(path: *const c_char,
381+
arg0: *const c_char, ...) -> ::c_int;
382+
pub fn execle(path: *const ::c_char,
383+
arg0: *const ::c_char, ...) -> ::c_int;
384+
pub fn execlp(file: *const ::c_char,
385+
arg0: *const ::c_char, ...) -> ::c_int;
380386
pub fn execv(prog: *const c_char,
381387
argv: *const *const c_char) -> ::c_int;
382388
pub fn execve(prog: *const c_char, argv: *const *const c_char,

0 commit comments

Comments
 (0)