diff options
Diffstat (limited to 'usr/klibc/lstat.c')
-rw-r--r-- | usr/klibc/lstat.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/klibc/lstat.c b/usr/klibc/lstat.c new file mode 100644 index 0000000..3e8146f --- /dev/null +++ b/usr/klibc/lstat.c @@ -0,0 +1,10 @@ +#include <fcntl.h> +#include <unistd.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <sys/syscall.h> + +int lstat(const char *path, struct stat *buf) +{ + return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); +} |