VMS Help
CRTL, lstat
*Conan The Librarian
|
Retrieves information about the specified file.
This function is supported on OpenVMS Integrity servers and
Alpha only.
Format
#include <sys/stat.h>
int lstat (const char *restrict file_path, struct stat
*restrict user_buffer);
file_path
The name of the file for which you want to retrieve information.
user_buffer
The stat structure in which information is returned.
The lstat function retrieves information about the specified file
(file_path). If the file is a symbolic link, information about
the link itself is returned (in contrast to stat, which returns
information about the file that the symbolic link points to).
See also symlink, unlink, readlink, realpath, and lchown.
0 Successful completion.
-1 Indicates an error. errno is set to any errno
value returned by stat.