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: Jason Rumney
Subject: Re: file sizes shown incorrectly for large files under Windows
Date: 13 Nov 2003 22:02:47 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Eli Zaretskii" <address@hidden> writes:

> > 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?

Yes. This thread is now becoming circular.

> > > 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?

FindFirstFile is a system call, it does not rely on stat.





reply via email to

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