consolidate __xstat abi-compat functions into a single source file
[musl] / src / stat / __xstat.c
1 #include <sys/stat.h>
2 #include "libc.h"
3
4 int __fxstat(int ver, int fd, struct stat *buf)
5 {
6         return fstat(fd, buf);
7 }
8
9 int __fxstatat(int ver, int fd, const char *path, struct stat *buf, int flag)
10 {
11         return fstatat(fd, path, buf, flag);
12 }
13
14 int __lxstat(int ver, const char *path, struct stat *buf)
15 {
16         return lstat(path, buf);
17 }
18
19 int __xstat(int ver, const char *path, struct stat *buf)
20 {
21         return stat(path, buf);
22 }
23
24 LFS64(__fxstat);
25 LFS64(__fxstatat);
26 LFS64(__lxstat);
27 LFS64(__xstat);