blob: 73c873aea226a1128b65c8d0719d5b06d3415ca9 [file] [log] [blame]
Rich Felker9ea20dc2012-05-31 23:32:09 -04001#include <sys/stat.h>
2#include "libc.h"
3
Rich Felker76f2bcc2014-06-22 00:29:32 -04004int __fxstat(int ver, int fd, struct stat *buf)
5{
6 return fstat(fd, buf);
7}
8
9int __fxstatat(int ver, int fd, const char *path, struct stat *buf, int flag)
10{
11 return fstatat(fd, path, buf, flag);
12}
13
14int __lxstat(int ver, const char *path, struct stat *buf)
15{
16 return lstat(path, buf);
17}
18
Rich Felker9ea20dc2012-05-31 23:32:09 -040019int __xstat(int ver, const char *path, struct stat *buf)
20{
21 return stat(path, buf);
22}
23
Rich Felker76f2bcc2014-06-22 00:29:32 -040024LFS64(__fxstat);
25LFS64(__fxstatat);
26LFS64(__lxstat);
Rich Felker9ea20dc2012-05-31 23:32:09 -040027LFS64(__xstat);
Rich Felker1fd0f6e2014-06-22 00:37:12 -040028
29int __xmknod(int ver, const char *path, mode_t mode, dev_t *dev)
30{
31 return mknod(path, mode, *dev);
32}
33
34int __xmknodat(int ver, int fd, const char *path, mode_t mode, dev_t *dev)
35{
36 return mknodat(fd, path, mode, *dev);
37}