refactor all stat functions in terms of fstatat
[musl] / src / stat / fstat.c
1 #define _BSD_SOURCE
2 #include <sys/stat.h>
3 #include <errno.h>
4 #include <fcntl.h>
5 #include "syscall.h"
6
7 int fstat(int fd, struct stat *st)
8 {
9         return fstatat(fd, "", st, AT_EMPTY_PATH);
10 }
11
12 weak_alias(fstat, fstat64);