On Mon, 15 Nov 1999, Wes Peters wrote:

> Kelly Yancey wrote:
> > 
> >   Is there a portable method for determining if the contents of two struct
> > stat's are identical?
> 
> On a single system, if st_dev and st_ino are equal, you must be referring 
> to the same object.  If not, I'd like to hear about it.
> 

  The problem is that I need to be able to determine if the file's
metadata has changed, not necessarily if two paths refer to the same file.
I would use the st_ctime field except that not all file systems implement
it.

  Kelly

--
Kelly Yancey  -  [EMAIL PROTECTED]  -  Richmond, VA
Director of Technical Services, ALC Communications  http://www.alcnet.com/
Maintainer, BSD Driver Database       http://www.posi.net/freebsd/drivers/
Coordinator, Team FreeBSD        http://www.posi.net/freebsd/Team-FreeBSD/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to