On Mon, Jul 25, 2011 at 10:32 AM, Paolo Bonzini <pbonz...@redhat.com> wrote: > On 07/24/2011 09:06 PM, Jim Meyering wrote: >>> >>> > What about a few POSIX-violating fringe operating systems (Windows and >>> > DJGPP come to mind)?:) For Windows we can write our own stat >>> > function in cygwin, but for DJGPP I think we're in a bad situation... >> >> AFAIK, DJGPP is not relevant these days. >> What Windows environment are you worried about? > > All. Microsoft documentation says that st_ino is zero for "FAT, HPFS, or > NTFS file systems". > > http://msdn.microsoft.com/en-us/library/14h5k7ff%28v=VS.100%29.aspx > > However, we could fix that in gnulib.
Using BY_HANDLE_FILE_INFORMATION Structure and GetFileInformationByHandle particularly nFileIndexHigh and nFileIndexLow (see particularly remark) Bastien > Paolo > >