前文是对stat64系列函数的源码分析。下面将介绍如何在实际情况下调用stat64系列函数。
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main(int argc,char **argv)
{
struct stat64 st64;
stat64("/home",&st64);
return 0;
}
如果使用编译上述文件将报错。
stat.c:7:16: error