Files
git/compat
Johannes Sixt b49fa05b92 Handle fstat() of a socket descriptor.
GetFileInformationByHandle() fails if it is passed a WinSock handle.
Fortunately, the failure can be distinguished by the error code, and we
can in this case pretend that the fstat() was actually successful.

This is a valid thing to do: Calling fstat() on a descriptor makes only
sense if either the caller needs information on the file (in which case
we would not reach this error condition), or if it wants to distinguish
a socket from a file (which implies that the caller will have to test
st_mode, which happens to be the only field that we can fill in).

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
2007-09-21 21:36:15 +02:00
..
2007-01-19 16:24:48 +01:00
2007-01-19 16:24:48 +01:00
2006-12-20 13:45:55 -08:00
2007-09-21 21:36:15 +02:00
2007-06-07 00:04:01 -07:00
2007-03-01 22:09:05 +01:00
2007-03-01 22:09:05 +01:00