[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.
     the comment "truncating more than the allowed space results
     in file getting mysteriously deleted".


reply via email to

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