ftruncate64() question?

2004-05-24 Thread Bill C. Riemers
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

Re: ftruncate64() question?

2004-05-24 Thread Bill C. Riemers
> 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

Re: ftruncate64() question?

2004-05-24 Thread Brian Ford
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

Re: ftruncate64() question?

2004-05-24 Thread Christopher Faylor
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

Re: ftruncate64() question?

2004-05-24 Thread Christopher Faylor
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

RE: ftruncate64() question?

2004-05-24 Thread Hannu E K Nevalainen
> 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

Re: ftruncate64() question?

2004-05-24 Thread Bill C. Riemers
> 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

Re: ftruncate64() question?

2004-05-24 Thread Larry Hall
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

[OT] Re: ftruncate64() question?

2004-05-24 Thread Igor Pechtchanski
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

Re: [OT] Re: ftruncate64() question?

2004-05-24 Thread Christopher Faylor
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

Re: [OT] Re: ftruncate64() question?

2004-05-24 Thread Larry Hall
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,