2014-09-30 171 views

回答

9

系统调用你想要的是symlink(2)

#include <unistd.h> 

int symlink(const char *name1, const char *name2); 

符号链接name2创建于name1

+0

谢谢,这有助于:) – 2014-09-30 10:11:40

4

您可以拨打symlink()

int symlink(const char *name1, const char *name2); 

A symbolic link name2 is created to name1 (name2 is the name of the file 
created, name1 is the string used in creating the symbolic link). Either 
name may be an arbitrary path name; the files need not be on the same 
file system. 
+0

谢谢,这有助于。系统编程新手。 – 2014-09-30 10:13:17