1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <sys/stat.h> #include <fcntl.h> int lstat(const char *restrict path, struct stat *restrict buf) { return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); } #ifdef TEST int main(void) { return 0; } #endif