svn commit: trunk/busybox/networking

Denis Vlasenko vda.linux at googlemail.com
Wed Jan 10 00:01:06 UTC 2007


On Tuesday 09 January 2007 11:06, aldot at busybox.net wrote:
> Author: aldot
> Date: 2007-01-09 02:06:19 -0800 (Tue, 09 Jan 2007)
> New Revision: 17204
> 
> Log:
> vda, we once had a get_chomped_line_from_file or the like. Where is that nowadays? FIXME: use it here instead of the fgets()
> - shrink by ~9%: use common_buf, reuse are_you_root, adopt to global option_mask32

It was renamed:

extern char *xmalloc_fgets(FILE *file);
/* Read up to (and including) TERMINATING_STRING: */
extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string);
/* Chops off '\n' from the end, unlike fgets: */
extern char *xmalloc_getline(FILE *file);
extern char *bb_get_chunk_from_file(FILE *file, int *end);

--
vda



More information about the busybox mailing list