Skip to content
Snippets Groups Projects
Unverified Commit b232c9be authored by Yuki Okushi's avatar Yuki Okushi Committed by GitHub
Browse files

Merge pull request #1856 from BasixKOR/win-execl

Add execl* functions on Windows
parents 6ff0689d 1bd882e9
No related branches found
No related tags found
No related merge requests found
...@@ -444,6 +444,35 @@ extern "C" { ...@@ -444,6 +444,35 @@ extern "C" {
pub fn dup(fd: ::c_int) -> ::c_int; pub fn dup(fd: ::c_int) -> ::c_int;
#[link_name = "_dup2"] #[link_name = "_dup2"]
pub fn dup2(src: ::c_int, dst: ::c_int) -> ::c_int; pub fn dup2(src: ::c_int, dst: ::c_int) -> ::c_int;
#[link_name = "_execl"]
pub fn execl(path: *const c_char, arg0: *const c_char, ...) -> intptr_t;
#[link_name = "_wexecl"]
pub fn wexecl(path: *const wchar_t, arg0: *const wchar_t, ...)
-> intptr_t;
#[link_name = "_execle"]
pub fn execle(path: *const c_char, arg0: *const c_char, ...) -> intptr_t;
#[link_name = "_wexecle"]
pub fn wexecle(
path: *const wchar_t,
arg0: *const wchar_t,
...
) -> intptr_t;
#[link_name = "_execlp"]
pub fn execlp(path: *const c_char, arg0: *const c_char, ...) -> intptr_t;
#[link_name = "_wexeclp"]
pub fn wexeclp(
path: *const wchar_t,
arg0: *const wchar_t,
...
) -> intptr_t;
#[link_name = "_execlpe"]
pub fn execlpe(path: *const c_char, arg0: *const c_char, ...) -> intptr_t;
#[link_name = "_wexeclpe"]
pub fn wexeclpe(
path: *const wchar_t,
arg0: *const wchar_t,
...
) -> intptr_t;
#[link_name = "_execv"] #[link_name = "_execv"]
pub fn execv( pub fn execv(
prog: *const c_char, prog: *const c_char,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment