[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] file=? function to compare two files
From: |
John Cowan |
Subject: |
Re: [Chicken-hackers] [PATCH] file=? function to compare two files |
Date: |
Fri, 25 Jan 2013 11:32:41 -0500 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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.
In any case, st_ino is garbage on Windows systems (other than Cygwin).
--
John Cowan address@hidden http://ccil.org/~cowan
Big as a house, much bigger than a house, it looked to [Sam], a grey-clad
moving hill. Fear and wonder, maybe, enlarged him in the hobbit's eyes,
but the Mumak of Harad was indeed a beast of vast bulk, and the like of him
does not walk now in Middle-earth; his kin that live still in latter days are
but memories of his girth and his majesty. --"Of Herbs and Stewed Rabbit"