summaryrefslogtreecommitdiff
path: root/lib/libc/stat/stat.c
blob: d839f0eb509dbd05fe9d3c79871381f04296dfbf (plain)
1
2
3
4
5
6
7
#include <fcntl.h>    // for AT_FDCWD
#include <sys/stat.h> // for fstatat, stat

int stat(const char *restrict path, struct stat *restrict buf)
{
	return fstatat(AT_FDCWD, path, buf, 0);
}