bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Few issues for ThreadFile.


From: Prochnow, Christian
Subject: Re: Few issues for ThreadFile.
Date: Fri, 6 Dec 2002 23:35:53 +0100
User-agent: KMail/1.4.3

Am Freitag 06 Dezember 2002 03:49 schrieb Leonard Thornton:
> Sorry, but no ftruncate in win32.....closest would be
> "open(....O_TRUNC)..."
>

This is not true. 
It can be emulated with  SetFilePointer() and SetEndOfFile() functions of the 
win32 API.

Greetings,
Christian Prochnow


>
> Leonard Thornton
> Intelis, Inc
> address@hidden
>
> +1 770.825.0032 x 203
>
>
> -----Original Message-----
> From: address@hidden [mailto:address@hidden On
> Behalf Of Skye Cove
> Sent: Thursday, December 05, 2002 9:26 PM
> To: address@hidden
> Subject: Re: Few issues for ThreadFile.
>
> On Thu, 2002-12-05 at 14:01, David Sugar wrote:
> > I am not sure how widely portable ftruncate is,
>
> For what it's worth:
>
> Aaccording to `man ftruncate` (on a Linux 2.4.18 system): "4.4BSD, SVr4
> (these function calls first appeared in BSD  4.2). POSIX 1003.1‐1996  has
> ftruncate. POSIX 1003.1‐2001 also has truncate, as an XSI extension."
>
> I verified that it is also supported on FreeBSD 4.5, Solaris 8 and HP-UX 11
> (though I didn't compile any tests).
>
> Does the win32 API offer anything similar?
>
> -sc
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

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