> Hugs makes no attempt to watch for this happening though it would probably
> be easy to catch many common cases by just keeping a list of names (in normal
> form!) of all the files in the filetable.
> This won't work in all cases though - basically because NFS, symbolic links,
> etc
> prevent us from reducing filenames to "normal form".
> Sigbjorn Finne replies:
> > ...
> > I don't know if the Hugs implementation does or doesn't implement file
> > locking, perhaps its an artifact of the platform you're working on?
> > (i.e., no device numbers & i-nodes readily at hand.)
As Sigbjorn hints at here device number, i-node number pairs (which
you can get with fstat(2)) give you unique IDs on Unix. Is there some
reason this won't work?
mike