diff options
author | Philipp Keller <philipp.keller@gmail.com> | 2016-12-28 14:22:47 +0100 |
---|---|---|
committer | Philipp Keller <philipp.keller@gmail.com> | 2016-12-28 14:22:47 +0100 |
commit | da3774fd7612fa08aac02467dfc9619f409ff499 (patch) | |
tree | acd8e771e4bfc0c204b12f2a13c83a19dcadfc5d | |
parent | b42798d82426560cbf21c4d45d293d018c1f426a (diff) | |
download | rust-libc-da3774fd7612fa08aac02467dfc9619f409ff499.tar.gz |
Add execl, execle, execlp for all unix systems
-rw-r--r-- | src/unix/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index cf3a87ab48..938b3919a1 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -377,6 +377,12 @@ extern { pub fn close(fd: ::c_int) -> ::c_int; pub fn dup(fd: ::c_int) -> ::c_int; pub fn dup2(src: ::c_int, dst: ::c_int) -> ::c_int; + pub fn execl(path: *const c_char, + arg0: *const c_char, ...) -> ::c_int; + pub fn execle(path: *const ::c_char, + arg0: *const ::c_char, ...) -> ::c_int; + pub fn execlp(file: *const ::c_char, + arg0: *const ::c_char, ...) -> ::c_int; pub fn execv(prog: *const c_char, argv: *const *const c_char) -> ::c_int; pub fn execve(prog: *const c_char, argv: *const *const c_char, |