diff options
Diffstat (limited to '')
-rw-r--r-- | libc-top-half/musl/src/stat/stat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/stat/stat.c b/libc-top-half/musl/src/stat/stat.c new file mode 100644 index 0000000..ea70efc --- /dev/null +++ b/libc-top-half/musl/src/stat/stat.c @@ -0,0 +1,11 @@ +#include <sys/stat.h> +#include <fcntl.h> + +int stat(const char *restrict path, struct stat *restrict buf) +{ + return fstatat(AT_FDCWD, path, buf, 0); +} + +#if !_REDIR_TIME64 +weak_alias(stat, stat64); +#endif |