Difference between lstat fstat and stat in C
问题 Im writing a school assignment in C to search through a file system for directories, regular files and symlinks. For now i use lstat to get information about items. So whats the difference between lstat fstat and stat system calls? 回答1: I was also searching for stat vs lstat vs fstat and although there is already an answer to this question, I'd like to see it formatted like that: lstat() is identical to stat() , except that if pathname is a symbolic link, then it returns information about the