linux系统调用函数 lstat--获取文件属性_lstat() 绝对路径-CSDN博客

网站介绍:文章浏览阅读1.8w次,点赞6次,收藏40次。所需头文件:#include<unistd.h>#include<sys/stat.h>#include<sys/types.h>函数功能:用来获取linux操作系统下文件的属性。 函数原型: int stat(const char *pathname,struct stat *buf);参数:第一个参数为传入参数,pathname为文件的..._lstat() 绝对路径