Obtains selected information about an open file.
#include <fsio.h> int fgetstat ( int fildes, struct stat *buf, unsigned long requestmap);
(IN) Specifies a file handle.
(OUT) Points to the address of a stat structure.
(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 fstat, errno is not set.
The fgetstat function obtains information about an open file whose file descriptor is the fildes parameter. This information is placed in the 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 describes the contents of the fields within that structure.