OSDN Git Service

make regex_old.c, ruserpass.c use __uc_malloc,
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 30 Jul 2007 17:02:06 +0000 (17:02 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 30 Jul 2007 17:02:06 +0000 (17:02 -0000)
commit88483db112b15569aad4898d30a8ab7ea4deb96b
tree1da1ec9a5cab6d6b3793fec0edc5728b71743a0e
parentf5c05b8c3da2fc70133778daf099b00c5d090ff9
make regex_old.c, ruserpass.c use __uc_malloc,
replace "buf = malloc(BUFSIZ); if (!buf) abort();" by __uc_malloc
elsewhere.

With last 7 patches together uclibc has 3k of static data total
with fairly big .config and with 2k being used for 2 x BUFSIZ stdio buffer:
   text    data     bss     dec     hex filename
    114     132    2048    2294     8f6 _stdio.o (ex lib/libc.a)
total data 593
total bss  3062
libc/inet/getnetent.c
libc/inet/getproto.c
libc/inet/getservice.c
libc/inet/rpc/ruserpass.c
libc/misc/mntent/mntent.c
libc/misc/regex/regex_old.c
libc/misc/ttyent/getttyent.c