Retrieves selected information about file or directory.
#include <fsio.h> int getstat ( NXPathCtx_t ctx, const char *path, struct stat *buf, unsigned long requestmap);
(IN) Specifies the file system path context. Along with the path parameter, it specifies the entry for which status is to be obtained.
(IN) Points to a null-terminated string that specifies the name of the entry (relative to pathCtx) for which status is to be obtained.
(OUT) Points to the structure containing information about the file.
(IN) Specifies a bit mask of the information to return. See Request Flags for Entry Status.
If successful, returns 0. Otherwise, returns one of the following errors. Unlike stat, errno is not set.
The getstat function returns information in the stat structure located at the address indicated by the buf parameter. The requestmap parameter determines which fields in the stat structure return with information. The fields not requested have undefined values.
The sys/stat.h header file contains definitions for the stat structure and the fields are described in stat.