[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Few issues for ThreadFile.
From: |
Federico Montesino Pouzols |
Subject: |
Re: Few issues for ThreadFile. |
Date: |
Fri, 13 Dec 2002 11:24:51 +0100 |
User-agent: |
Mutt/1.4i |
So it seems it is possible to add this method in a portable
manner. Is there interest?
On Fri, Dec 06, 2002 at 11:35:53PM +0100, Prochnow, Christian wrote:
> 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?$B!>1996
> > has
> > ftruncate. POSIX 1003.1?$B!>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
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp