From 6b659392ea4a7a15226519f26d081431f624c466 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Sun, 23 Dec 2012 17:40:18 -0500 Subject: [PATCH] libcore: Add symlink(2) to libc. rs=trivial --- src/libcore/libc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcore/libc.rs b/src/libcore/libc.rs index 80e3a22dcba..ae29bbe3085 100644 --- a/src/libcore/libc.rs +++ b/src/libcore/libc.rs @@ -1309,6 +1309,8 @@ fn setenv(name: *c_char, val: *c_char, 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] @@ -1365,7 +1367,6 @@ fn sysctlnametomib(name: *c_char, mibp: *mut c_int, pub mod bsd44 { } - #[cfg(target_os = "macos")] #[nolink] #[abi = "cdecl"]