busybox/libpwdgrp
Denys Vlasenko 134c53098b libpwdgrp: store getXXnam result in a single malloc block
This saves a bit of memory but more importantly, allows to create
xmalloc_getpwnam() API where result can be deleted simply using free().

function                                             old     new   delta
getXXnam                                             134     173     +39
parse_common                                         188     212     +24
convert_to_struct                                    277     290     +13
get_S                                                 90      88      -2
tokenize                                             129     126      -3
bb_internal_getpwent_r                               175     172      -3
getXXnam_r                                           208     198     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/4 up/down: 76/-18)             Total: 58 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-01-03 20:47:47 +01:00
..
Kbuild.src *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
pwd_grp.c libpwdgrp: store getXXnam result in a single malloc block 2015-01-03 20:47:47 +01:00
uidgid_get.c simplify parsing of /etc/busybox.conf 2011-05-16 00:01:08 +02:00