Date: Tue, 16 Nov 1999 15:05:45 -0500 (EST) From: Kelly Yancey <kbyanc@posi.net> To: Wes Peters <wes@softweyr.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Portable way to compare struct stat's? Message-ID: <Pine.BSF.4.05.9911161501160.87084-100000@kronos.alcnet.com> In-Reply-To: <3830F80F.6456DC5@softweyr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 - kbyanc@posi.net - 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9911161501160.87084-100000>