[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mingw and AC_SYS_LARGEFILE
From: |
Bruno Haible |
Subject: |
Re: mingw and AC_SYS_LARGEFILE |
Date: |
Sun, 15 Apr 2012 18:44:38 +0200 |
User-agent: |
KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; ) |
> the mingw64 headers provide a partial "Large File Support".
> Namely, for
> off_t
> <unistd.h> (lseek, ftruncate)
> <stdio.h> (fseeko, ftello)
And even this partial support is only partially working.
They define a function ftruncate64, and "#define ftruncate ftruncate64".
This function
1) violates POSIX:
test-ftruncate.c:38: assertion failed
FAIL: test-ftruncate.sh
2) is written in a way that may erase the file that is to be extended.
See
http://mingw-w64.sourcearchive.com/documentation/2.0-1/ftruncate64_8c_source.html
the comment "truncating more than the allowed space results
in file getting mysteriously deleted".
Bruno
- Re: mingw and AC_SYS_LARGEFILE, (continued)
- Re: mingw and AC_SYS_LARGEFILE, Bruno Haible, 2012/04/12
- Re: mingw and AC_SYS_LARGEFILE, Bruno Haible, 2012/04/14
- Re: mingw and AC_SYS_LARGEFILE, Jim Meyering, 2012/04/15
- Re: mingw and AC_SYS_LARGEFILE, Bruno Haible, 2012/04/15
- Re: mingw and AC_SYS_LARGEFILE, Jim Meyering, 2012/04/15
- Re: mingw and AC_SYS_LARGEFILE, Paul Eggert, 2012/04/15
- Re: mingw and AC_SYS_LARGEFILE, Bruno Haible, 2012/04/15
- Re: mingw and AC_SYS_LARGEFILE, Bruno Haible, 2012/04/21
- Re: mingw and AC_SYS_LARGEFILE, Ray Satiro, 2012/04/22
Re: mingw and AC_SYS_LARGEFILE, Bruno Haible, 2012/04/15
- Re: mingw and AC_SYS_LARGEFILE,
Bruno Haible <=