int stat(const char *restrict pathname, struct stat *restrict buf);
int fstat(int filedes, struct stat * buf);
int lstat(const char *restrict pathname, struct stat *restrict buf);

lstat和前面2个区别是 当读取符号链接的时候,读取的符号链接的信息,而不是符号链接引用文件的信息

Continue Reading...