login
Header Space

 
 

Re: cygwin-latest: compile errors related to sockaddr_storage, dirent->d_type and dirent->d_ino

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

On Thu, Jan 19, 2006 at 12:59:57AM -0800, Junio C Hamano wrote:

You're welcome.  I use git on linux and cygwin so I'm happy to try to help.


I only read this list sporadically but I have chimed in from time to time
when people were talking about cygwin.  For the most part, it seems like
my input hasn't been needed all that much.


Actually, I started adding DT_* macros at one point, in preparation for
adding d_type, and then got sidetracked.  Their existence is a real bug
so, I have ifdef'ed out the DT macros in current CVS.


There were two fields in the dirent struct.  One was the "real" d_ino
which was a 64-bit ino_t, __ino32 was a legacy field from a time when
inodes were 32 bits.  I had already renamed the d_ino to __invalid_d_ino
but I didn't think I had to rename __ino32, too, since it wasn't a
standard field and didn't think that anyone would be using it.  However,
it is now __invalid_ino32 (and will probably disappear entirely) in CVS.

I knew that there would be fallout from getting rid of d_ino but this
change has been a long time coming.  Previously, the inodes reported in
d_ino were different from the (correct) ones in st_ino and some
applications were understandbly confused by that fact.  Making d_ino
accurate would have meant that we'd have to open every file in readdir
to get the windows equivalent of inode information and, since we get
enough "cygwin is slow" complaints, that wasn't a cost we were willing
to pay.

cgf
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 1:29 am)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 2:31 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 6:51 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 12:10 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 4:34 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 5:28 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 5:51 pm)
speck-geostationary