10SN/A#include <sys/stat.h> 29414SN/A#include <fcntl.h> 30SN/A#include "syscall.h" 40SN/A#include "libc.h" 50SN/A 60SN/Aint lstat(const char *restrict path, struct stat *restrict buf) 72362SN/A{ 80SN/A#ifdef SYS_lstat 92362SN/A return syscall(SYS_lstat, path, buf); 100SN/A#else 110SN/A return syscall(SYS_fstatat, AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); 120SN/A#endif 130SN/A} 140SN/A 150SN/ALFS64(lstat); 160SN/A