简单易懂哦!显示文件长格式信息 void printlong(char *name) { struct stat buf; struct passwd *usr; struct group *grp; int rt; struct tm *ttime; char linkname[64]; rt=lstat(name,&buf;); //调用lstat 获取文件属性,并对返回值做错