Skip to content

Commit 6b65939

Browse files
committed
libcore: Add symlink(2) to libc. rs=trivial
1 parent efb8711 commit 6b65939

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/libc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,8 @@ pub mod funcs {
13091309
overwrite: c_int) -> c_int;
13101310
fn unsetenv(name: *c_char) -> c_int;
13111311
fn putenv(string: *c_char) -> c_int;
1312+
1313+
fn symlink(path1: *c_char, path2: *c_char) -> c_int;
13121314
}
13131315

13141316
#[nolink]
@@ -1365,7 +1367,6 @@ pub mod funcs {
13651367
pub mod bsd44 {
13661368
}
13671369

1368-
13691370
#[cfg(target_os = "macos")]
13701371
#[nolink]
13711372
#[abi = "cdecl"]

0 commit comments

Comments
 (0)