[BusyBox] -A patch to bb 0.49
Erik Andersen
andersen at lineo.com
Thu Feb 1 21:44:56 UTC 2001
On Thu Feb 01, 2001 at 02:16:20PM -0700, Mark Whitley wrote:
> WRT the -B problem, I think what we'd need to implement is some sort of cyclic
> buffer that you could push lines onto as it goes through the while (line =
> get_line_from_file(file)) loop and automatically pop lines off the end when
> you hit the limit. I have a pretty good idea of how this could be done. I'll
> take a look at it in just a minute.
This cyclic buffer idea is also applicable in other places. If the
buffer were a mmap'ed file we could automagically have syslogd place
limits on the max log file size -- a useful feature indeed if we can
make it actually work.
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list