摘要: 1.首先,关于 stat, fstat, lstat#include <sys/stat.h>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);注意两点,(1) 对于链接文件,stat返回的是指向的文件的属性, lstat返回的是链接文件本身的属性。(2) fstat 接收的参数与st 阅读全文
posted @ 2011-11-17 00:09 jialejiahi 阅读(255) 评论(0) 推荐(0) 编辑