Flush inside seek will work for seeking absolute, but will not work for seeking
relative.
I found this in the man pages of linux, not sure if it's portable:
STDIO_EXT(3) Linux Programmer’s Manual STDIO_EXT(3)
NAME
__fbufsize, __flbf, __fpending, __fpurge, __freadable, __freading,
__fsetlocking, __fwritable, __fwriting, _flushlbf - interfaces to stdio
FILE structure
Walter, do we have stuff like this in DMC?
-Steve
----- Original Message ----
> From: Andrei Alexandrescu <[email protected]>
> To: Discuss the phobos library for D <[email protected]>
> Sent: Mon, August 16, 2010 6:01:41 PM
> Subject: Re: [phobos] phobos commit, revision 1877
>
> Got it. So we somehow need to stay in sync with the FILE* API. I managed to
> do
>so by calling flush() inside seek(), I wonder if something similar can be done
>
>in tell().
>
> Andrei
>
> Steve Schveighoffer wrote:
> > I meant lseek64, not tell.
> >
> > -Steve
> >
> >
> >
> > ----- Original Message ----
> >> From: Steve Schveighoffer <[email protected]>
> >> Second, you cannot do a tell on the file handle, because you need to
> >> take
>into
>
> >> account the buffer.
> >
> >
> > _______________________________________________
> > phobos mailing list
> > [email protected]
> > http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> [email protected]
> http://lists.puremagic.com/mailman/listinfo/phobos
>
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos