emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file sizes shown incorrectly for large files under Windows


From: Eli Zaretskii
Subject: Re: file sizes shown incorrectly for large files under Windows
Date: Thu, 13 Nov 2003 23:40:32 +0200

> From: Jason Rumney <address@hidden>
> Date: 13 Nov 2003 21:14:25 +0000
> 
> I don't have time to look through all the uses of struct stat in the
> source, but in most cases they are not in platform specific code, so
> probably expect a type of off_t for stat.size.

Is the Windows definition of off_t 32-bit as well?

> So you might be
> tempted to change the definition of off_t instead of the type of
> stat.size, but then you are likely to break other structures and
> functions that use off_t.

It all depends on how wide is st_size put into an off_t variable.

> > AFAIK, on other platforms, either `stat' supports 64-bit sizes or you
> > need a 64-bit build for that.
> 
> Windows falls into the latter category.

Really?  Does that mean that FindFirstFile can bring only the low 32
bits of the file's size unless some special compilation option is
used?

> Is it really worth putting effort into working around deficiencies in
> the Windows C libraries when the effect is purely aesthetic?

I don't know; the problem annoyed Chris enough to post a bug report,
I'm merely trying to help him get this solved.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]