fstat(3)
DESCRIPTION
Obtains metadata for the open file referred to by fd and writes result.
SYNOPSIS
#include <sys/stat.h> int fstat(int fd, struct stat *result);
RETURN VALUE
- Returns zero, or -1 and sets errno.
ERRORS
-EFAULT- Result is null or not writable.
-EBADF- Fd does not refer to an open descriptor.
-ESPIPE- The underlying object does not provide a file size.
NOTES
fstat uses the native STATX fd form.