Subject: Re: bug#10733: 24.0.93; w32 file truncation

From: Eli Zaretskii <[email-masked]>
Date: Mon, 06 Feb 2012 23:31:12 +0200

> From: Lennart Borgman <[email-masked]>
> Date: Mon, 6 Feb 2012 22:20:31 +0100
> Cc: [email-masked], [email-masked], [email-masked], 
> 	[email-masked]
> 
> What worries me is the bypassing of MSVCRT.

Why?  What do you think `stat' in MSVCRT does?  (You can find the
sources on the Internet.)  It calls some of the same Win32 APIs, and
then fills `struct stat'.  There''s nothing magic about that, and
nothing to be afraid of.

> I think that perhaps it is better to reimplement on top of that.

You can't.  To get the missing information you must go to lower-level
APIs.