small optimization for history writes

Alex Kiernan alexk at
Fri Jan 4 09:05:50 UTC 2002

list-inn-workers at (Miquel van Smoorenburg) writes:

> Glibc has the weird property that it fflush()es a FILE when you
> use ftell() / ftello(). This is probably because it uses some sort
> of lseek(fd, 0, SEEK_SET) internally and that incorrectly flushes
> the buffers because buffers need to be flushed on fseek().

ISTR Solaris does too - at one time before I committed the history API
code I had some code which tracked the current offset in the
strucuture, but pulled it as I wanted to keep the changes on initial
commit to a minimum.

I'll check to see I've still a patch lying around for it.

Alex Kiernan, Principal Engineer, Development, Thus PLC

More information about the inn-workers mailing list