任何一个文件可以有多个目录项指向其i节点。创建一个向现存文件连接的方法是使用l i n k函数。#include int link(const char * e x i s t i n g p a t h, const char * n e w p a t h) ;返回:若成功则为0,若出错则为-1此函数创建一个新目录项n e w p a t h,它引用现存文件e x i s t i n g p a t h。如若n e w p a t h已经存在,则返回出错。这是Apue上关于link函数的介绍,看到这里我并没有在意上面的第一句话,直到下面这个函数出现:s y m l i n k函数创建一个符 Read More
posted @ 2014-01-17 09:15 thinker-lj Views(5785) Comments(0) Diggs(0) Edit