[BusyBox] cpio applet commited

Glenn McGrath bug1 at optushome.com.au
Fri Jun 22 10:09:25 UTC 2001


Erik Andersen wrote:

>
>One more thing.  Right now we have two sets of tar code -- one in
>the tar.c applet, and another set under libbb.  How about adapting
>the tar applet to use the library routine next?
>
Yea ok, its going to mean a pretty major change to tar.c, are we on any 
deadline for 0.52 to be released ?

Actually there is one more piece of duplicated code ive introduced.

fgets_str.c is meant as a more general replacement for 
get_line_from_file.c,  i havent had any fedback on it, but i am thinking 
it could be a good general purpose function for reading from streams.

fgets_str will read from a stream untill the supplied  terminating 
string is found, it can replace get_line_from_file by using "\n" as the 
terminating string.

Currently its used by dpkg.c on the status file with a terminating 
string on "\n\n", so it reads it one package entry at a time. I am 
working on overhauling dpkg.c to make it smarter, but thats another story.


Glenn






More information about the busybox mailing list