[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file sizes shown incorrectly for large files under Windows
From: |
Chris Moore |
Subject: |
Re: file sizes shown incorrectly for large files under Windows |
Date: |
Wed, 12 Nov 2003 20:16:48 +0100 |
Eli Zaretskii writes:
> So it sounds like w32.c should be fixed, probably by defining an
> Emacs's own `struct stat' replacement, where `st_size' is wide
> enough to support 64-bit sizes.
I'll have a go at doing this. I've fallen at the first hurdle,
however. How do you suggest I replace the 'struct stat' definition?
I need to make sure that it is replaced everywhere, and I don't see
any obvious place to put my definition.
Even making a new header file and #include'ing it from each source
file that does a "#include <stat.h>", or from each source file that
calls stat() isn't enough. w32.c for example neither includes
<stat.h> nor calls stat(), but it does need to see Emacs's 'struct
stat' replacement, since it handles buffers returned from stat().
Perhaps it should #include <stat.h> - is this an oversight? It turns
out (for me) that the "#include <stddef.h> /* for offsetof */" line
causes <stat.h> to be included, but wouldn't it be better to
explicitly depend on stat.h?
Chris.
- file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/10
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows,
Chris Moore <=
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13