Greetings.
I am trying to write a program using cygwin that truncates files larger than
4GB to a specific size as part of its functionality.
However, I cannot find a ftruncate64() in the cygwin libraries. Are there
other alternatives available?
BTW. Normally I would search the cygwin archives f
> On Sat, May 22, 2004 at 04:24:22PM -0400, Bill C. Riemers wrote:
> bash-2.05b$ ./off_t
> sizeof(off_t) = 8
> You don't use ftruncate64. You use ftruncate. Cygwin is 64 bit by
default.
I stand correct. The bug was elsewhere in my code. I have been working
with java so much recently, I ha
On Fri, 21 May 2004, Bill C. Riemers wrote:
> I am trying to write a program using cygwin that truncates files larger
> than 4GB to a specific size as part of its functionality. However, I
> cannot find a ftruncate64() in the cygwin libraries. Are there other
> alternatives available?
What's wro
On Sat, May 22, 2004 at 04:24:22PM -0400, Bill C. Riemers wrote:
>> What's wrong with ftruncate?
>
>ftruncate fails with files larger >= 2GB because off_t gets interpreted as
>32 bit signed integer...
bash-2.05b$ cat off_t.c
#include
#include
int
main (int argc, char **argv)
{
pr
On Sun, May 23, 2004 at 09:29:23AM -0400, Bill C. Riemers wrote:
>> On Sat, May 22, 2004 at 04:24:22PM -0400, Bill C. Riemers wrote:
>> bash-2.05b$ ./off_t
>> sizeof(off_t) = 8
>
>>You don't use ftruncate64. You use ftruncate. Cygwin is 64 bit by
>>default.
>
>I stand correct. The bug was el
> From: Christopher Faylor
> Sent: Sunday, May 23, 2004 4:54 AM
> On Sat, May 22, 2004 at 04:24:22PM -0400, Bill C. Riemers wrote:
> >> What's wrong with ftruncate?
> >
> >ftruncate fails with files larger >= 2GB because off_t gets
> >interpreted as 32 bit signed integer...
>
> bash-2.05b$ cat o
> What's wrong with ftruncate?
ftruncate fails with files larger >= 2GB because off_t gets interpreted as
32 bit signed integer...
I can find some archived cygwin messages referencing bug fixes to
ftruncate64 in the cygwin.dll. However, using ftruncate64 results in an
unresolved symbol.
In fact
At 05:06 PM 5/21/2004, you wrote:
>On Fri, 21 May 2004, Bill C. Riemers wrote:
>
>> I am trying to write a program using cygwin that truncates files larger
>> than 4GB to a specific size as part of its functionality. However, I
>> cannot find a ftruncate64() in the cygwin libraries. Are there othe
On Fri, 21 May 2004, Larry Hall wrote:
> At 05:06 PM 5/21/2004, you wrote:
> >On Fri, 21 May 2004, Bill C. Riemers wrote:
> >[snip]
> >How was the quoted text relevant?
>
> AFAICS, it isn't. Looks like Bill decided to do the ol' "reply and
> edit to your liking" trick that associates two, dispara
On Mon, May 24, 2004 at 09:48:55PM -0400, Igor Pechtchanski wrote:
>On Fri, 21 May 2004, Larry Hall wrote:
>
>> At 05:06 PM 5/21/2004, you wrote:
>> >On Fri, 21 May 2004, Bill C. Riemers wrote:
>> >[snip]
>> >How was the quoted text relevant?
>>
>> AFAICS, it isn't. Looks like Bill decided to do t
At 09:58 PM 5/24/2004, you wrote:
>On Mon, May 24, 2004 at 09:48:55PM -0400, Igor Pechtchanski wrote:
>>On Fri, 21 May 2004, Larry Hall wrote:
>>
>>> At 05:06 PM 5/21/2004, you wrote:
>>> >On Fri, 21 May 2004, Bill C. Riemers wrote:
>>> >[snip]
>>> >How was the quoted text relevant?
>>>
>>> AFAICS,
11 matches
Mail list logo