| Index: fusl/src/stat/stat.c
|
| diff --git a/fusl/src/stat/stat.c b/fusl/src/stat/stat.c
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b4433a0a7cd13893b6889e89cfc3eac7e98178d1
|
| --- /dev/null
|
| +++ b/fusl/src/stat/stat.c
|
| @@ -0,0 +1,15 @@
|
| +#include <sys/stat.h>
|
| +#include <fcntl.h>
|
| +#include "syscall.h"
|
| +#include "libc.h"
|
| +
|
| +int stat(const char *restrict path, struct stat *restrict buf)
|
| +{
|
| +#ifdef SYS_stat
|
| + return syscall(SYS_stat, path, buf);
|
| +#else
|
| + return syscall(SYS_fstatat, AT_FDCWD, path, buf, 0);
|
| +#endif
|
| +}
|
| +
|
| +LFS64(stat);
|
|
|