系统调用,stat,fstat以及lstat函数:检查文件的属性_lstat64-CSDN博客

网站介绍:头文件:#include #include 定义函数:int stat(const char * file_name, struct stat *buf);函数说明:stat()用来将参数file_name 所指的文件状态, 复制到参数buf 所指的结构中 。 我们使用函数stat,fstat和lstat来检查文件的属性。这些函数使用struct_lstat64