FreeBSD manual
download PDF document: filestat.3.pdf
FILESTAT(3) Schily's LIBRARY FUNCTIONS FILESTAT(3)
NAME
filestat() - copies file descriptor information to buffer
SYNOPSIS
#include <schily/stat.h>
int filestat(f,buf)
FILE *f;
struct stat *buf;
DESCRIPTION
filestat() places system dependent information about the file f into
the buffer buf.
RETURNS
Returns a value equal to or greater than zero when successful.
Otherwise, returns -1 and sets the standard error code.
NOTES
The size and the interpretation of the buffer is system dependent.
Joerg Schilling 2022/09/09 FILESTAT(3)