IMPORT_C int fstat(int _fd, struct stat *_sbuf);
Description
Gets information about the named file and writes it to the area that buf points to. The system must be able to search all
directories leading to the file; however, read, write, or execute permission of the file is not required.
Parameters
int _fd |
Is a file descriptor referring to a file for which status is returned.
|
struct stat *_sbuf |
Points to a stat structure where status information about the file is to be placed.
|
|
Return value
int |
On Success, returns 0. On Failure, returns -1, errno may be set.
|
|