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