#include <sys/types.h> #include <sys/stat.h> int fstat( int fildes, struct stat *buf );
The fstat()
function obtains information about the file
associated with fildes
and writes it to the area pointed
to by the buf
argument.
If the filesystem object referred to by fildes
is a
link, then the information returned in buf
refers
to the destination of that link. This is in contrast to
lstat()
which does not follow the link.
Copyright © 1988-2008 OAR Corporation