Assar Westerlund <[EMAIL PROTECTED]> writes: >> we should start by creating an "fcompare()" routine, which you'd >> pass two file descriptors to and it would say if they're the same >> file. Initially that routine could just do two fstat()'s, and >> compare st_dev and st_ino. We could then expand it to do better >> comparisons for other file-systems. > >In solaris there's a vnode operation vop_cmp that does exactly that. >But it's not exported to userland in any way. Sounds like what we'd want to build it upon. If the FS doesn't support it, use st_dev/st_ino. The real problem is getting people to switch. -- Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team ('88-94) [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: Portable way to compare struct stat's? Kelly Yancey
- Re: Portable way to compare struct stat's? Bill Studenmund
- Re: Portable way to compare struct stat's? Kelly Yancey
- Re: Portable way to compare struct stat's? Peter Wemm
- Re: Portable way to compare struct stat's? Randell Jesup
- Re: Portable way to compare struct stat's? Wes Peters
- Re: Portable way to compare struct stat's? Garance A Drosihn
- Re: Portable way to compare struct stat's? Assar Westerlund
- Re: Portable way to compare struct stat... Robert Watson
- Re: Portable way to compare struct... Garance A Drosihn
- Re: Portable way to compare struct stat... Randell Jesup
- Re: Portable way to compare struct... Assar Westerlund
- Re: Portable way to compare st... Randell Jesup
- Re: Portable way to compare st... Assar Westerlund
- Re: Portable way to compare struct stat's? Randell Jesup