diff options
| author | Guido van Rossum <guido@python.org> | 2001-03-01 18:26:53 (GMT) | 
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-03-01 18:26:53 (GMT) | 
| commit | 4f53da07bf79b98c4131fcb9a49e6987298973a7 (patch) | |
| tree | 463b7294c4fbfd1d418e9b87fe89d8517dac2e99 /Python/dynload_os2.c | |
| parent | d1e87a8288b18541ab555fc95ab94d06758015a0 (diff) | |
| download | cpython-4f53da07bf79b98c4131fcb9a49e6987298973a7.zip cpython-4f53da07bf79b98c4131fcb9a49e6987298973a7.tar.gz cpython-4f53da07bf79b98c4131fcb9a49e6987298973a7.tar.bz2 | |
Two improvements to large file support:
- In _portable_ftell(), try fgetpos() before ftello() and ftell64().
  I ran into a situation on a 64-bit capable Linux where the C
  library's ftello() and ftell64() returned negative numbers despite
  fpos_t and off_t both being 64-bit types; fgetpos() did the right
  thing.
- Define a new typedef, Py_off_t, which is either fpos_t or off_t,
  depending on which one is 64 bits.  This removes the need for a lot
  of #ifdefs later on.  (XXX Should this be moved to pyport.h?  That
  file currently seems oblivious to large fille support, so for now
  I'll leave it here where it's needed.)
Diffstat (limited to 'Python/dynload_os2.c')
0 files changed, 0 insertions, 0 deletions
