Skip to content

Commit

Permalink
libcore: Add symlink(2) to libc. rs=trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton committed Dec 27, 2012
1 parent efb8711 commit 6b65939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libcore/libc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,8 @@ pub mod funcs {
overwrite: c_int) -> c_int;
fn unsetenv(name: *c_char) -> c_int;
fn putenv(string: *c_char) -> c_int;

fn symlink(path1: *c_char, path2: *c_char) -> c_int;
}

#[nolink]
Expand Down Expand Up @@ -1365,7 +1367,6 @@ pub mod funcs {
pub mod bsd44 {
}


#[cfg(target_os = "macos")]
#[nolink]
#[abi = "cdecl"]
Expand Down

0 comments on commit 6b65939

Please sign in to comment.