1 #include <sys/stat.h> 2 #include <fcntl.h> 3 stat(const char * restrict path,struct stat * restrict buf)4 int stat(const char *restrict path, struct stat *restrict buf) 5 { 6 return fstatat(AT_FDCWD, path, buf, 0); 7 } 8