libcore: Implement a dup2
This commit is contained in:
parent
8b8e0c2a45
commit
9440f8e9b8
1 changed files with 4 additions and 0 deletions
|
|
@ -357,6 +357,10 @@ fn pipe() -> {in: c_int, out: c_int} {
|
|||
return {in: fds.in, out: fds.out};
|
||||
}
|
||||
|
||||
fn dup2(src: c_int, dst: c_int) -> c_int {
|
||||
libc::dup2(src, dst)
|
||||
}
|
||||
|
||||
|
||||
fn dll_filename(base: ~str) -> ~str {
|
||||
return pre() + base + dll_suffix();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue