Jak programowo utworzyć miękkie łącze w c/C++? link() wywołanie systemowe w freebsd utworzy twardy link.Jak programowo utworzyć miękkie łącze w c/C++?
7
A
Odpowiedz
9
Wymagane wywołanie systemowe to symlink(2).
#include <unistd.h>
int symlink(const char *name1, const char *name2);
Łącze symboliczne
name2
jest stworzony doname1
+0
Dzięki, to pomaga :) –
4
Można zadzwonić 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
Dzięki, to pomaga. Nowość w programowaniu systemu. –
'funkcję symlink' zdefiniowanej w' unistd.h'. – isedev