busybox/networking
Ron Yorston d840c5d139 libbb: add a function to make a copy of a region of memory
Introduce a library routine to package the idiom:

    p = xmalloc(b, n);
    memcpy(p, b, n);

and use it where possible.  The example in traceroute used xzalloc
but it didn't need to.

function                                             old     new   delta
xmemdup                                                -      32     +32
last_main                                            834     826      -8
make_device                                         2321    2311     -10
common_traceroute_main                              3698    3685     -13
readtoken1                                          3182    3168     -14
procps_scan                                         1222    1206     -16
forkchild                                            655     638     -17
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/6 up/down: 32/-78)            Total: -46 bytes

Signed-off-by: Ron Yorston <rmy@frippery.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-07-19 23:05:20 +02:00
..
libiproute ipaddress: better formatting, no code changes 2015-07-01 18:36:06 +02:00
ssl_helper networking/ssl_helper: experimental matrixssl-based ssl helper 2014-02-23 23:31:13 +01:00
udhcp libbb: add a function to make a copy of a region of memory 2015-07-19 23:05:20 +02:00
arp.c Removes stray empty line from code 2015-07-13 03:25:46 +02:00
arping.c arping: fix iface name in error messages 2015-03-12 13:05:33 +01:00
brctl.c
Config.src telnetd: we only need CONFIG_UNIX98_PTYS from the Linux kernel 2015-01-30 17:12:38 +01:00
dnsd.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
ether-wake.c
ftpd.c ftpd: change_identity() must be after chroot() 2015-03-31 21:46:26 +02:00
ftpgetput.c
hostname.c
httpd_indexcgi.c
httpd_post_upload.txt
httpd_ssi.c
httpd.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
ifconfig.c
ifenslave.c
ifplugd.c ifplugd: code shrink 2014-02-10 09:51:03 +01:00
ifupdown.c ifupdown: shrink a message 2015-03-22 17:08:51 +01:00
inetd.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
interface.c ifconfig: fix double free fatal error in INET_sprint 2015-02-03 12:11:30 +01:00
ip.c ip addr: support change and replace commands 2015-07-01 18:26:41 +02:00
ipcalc.c
isrv_identd.c
isrv.c
isrv.h
Kbuild.src
nameif.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
nbd-client.c
nc_bloaty.c nc: fix option bit positions. Closes 6926 2014-02-26 13:58:59 +01:00
nc.c
netstat.c typo fixes 2015-05-25 13:46:36 +02:00
nslookup.c
ntpd.c Removes stray empty line from code 2015-07-13 03:25:46 +02:00
ping.c ping: add -p to specify data pattern 2014-08-27 16:01:25 +02:00
pscan.c
route.c route: fix bogus read error when route table is empty 2015-02-04 10:40:10 +01:00
slattach.c
tc.c tc: fix print_rate 2015-05-24 18:01:53 +02:00
tcpudp_perhost.c
tcpudp_perhost.h
tcpudp.c
telnet.c
telnetd.c libbb: code shrink by factoring out common update_utmp_DEAD_PROCESS 2015-01-05 15:37:58 +01:00
telnetd.ctrlSQ.patch
tftp.c Removes stray empty line from code 2015-07-13 03:25:46 +02:00
traceroute.c libbb: add a function to make a copy of a region of memory 2015-07-19 23:05:20 +02:00
tunctl.c
vconfig.c
wget.c Removes stray empty line from code 2015-07-13 03:25:46 +02:00
whois.c
zcip.c zcip: fix wrong comparison of source IP with our IP 2015-03-22 17:59:34 +01:00