[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] file=? function to compare two files
From: |
Michele La Monaca |
Subject: |
Re: [Chicken-hackers] [PATCH] file=? function to compare two files |
Date: |
Thu, 7 Feb 2013 18:43:02 +0100 |
On Fri, Jan 25, 2013 at 5:32 PM, John Cowan <address@hidden> wrote:
> Michele La Monaca scripsit:
>
>> I wasn't able to spot this kind of function in the library so I wrote
>> it myself. Not sure if files.scm is the right place for that. Not sure
>> either if inode-numbers equality in Windows is enough to state that
>> two files are actually the same file. Some tuning might be needed,
>> not yet very fluent/knowledgeable in scheme... unfortunately.
>
> For sure you have to check for equality in st_dev as well as st_ino.
> Even on Posix systems, inode numbers are only unique to a specific device.
Yes, sure. It's already implemented this way.
> In any case, st_ino is garbage on Windows systems (other than Cygwin).
Are you implicitly saying that I have to force the byte-by-byte
comparison in Windows?
Thanks.
Regards,
Michele