Get the metadata/statistics for an open file.
While implemented in the kernel, this call is not supported by any file system
yet. Use the stat
call instead.
Syntax
#include <stat.h>
int fstat (int fd, struct stat *st);
Parameters
-
fd
The file descriptor to retrieve the
stat
structure for.
Return Value
The return value is null if successful. Otherwise, the return value is negative and errno is set:
-
EBADF
Bad file descriptor.
-
ENOSYS
The system call is not supported for this file system, or not implemented.
Remarks
While implemented in the kernel, this call is not supported by any file system
yet. Use the stat
call instead.