Retrieves symbolic link status.
#include <sys/stat.h> int lstat ( const char *path, struct stat *buf);
(IN) Points to a string containing the path of the directory or file for which status is to be obtained.
(OUT) Points to the structure containing information about the file.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
If the path refers to a symbolic link, lstat returns information about the link. If the path is the path to a file or directory, lstat is equivalent to stat. On NetWare, lstat is always equivalent to stat because NetWare does not currently support links.
The sys/stat.h header file contains definitions for the stat structure and the fields are described in stat.