busybox/coreutils
Denys Vlasenko 237bedd499 getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST
In many cases, this aqllows to drop use of opt_complementary.
Approximately -400 bytes:

function                                             old     new   delta
getopt32                                            1423    1502     +79
opt_string                                            17      18      +1
OPT_STR                                               24      25      +1
uniq_main                                            416     406     -10
timeout_main                                         279     269     -10
sulogin_main                                         270     260     -10
readprofile_main                                    1825    1815     -10
ps_main                                              543     533     -10
pidof_main                                           245     235     -10
pgrep_main                                           611     601     -10
od_main                                             2600    2590     -10
mkfs_minix_main                                     2684    2674     -10
mkfs_ext2_main                                      2603    2593     -10
microcom_main                                        712     702     -10
makemime_main                                        315     305     -10
ionice_main                                          282     272     -10
inetd_main                                          2074    2064     -10
ifplugd_main                                        1144    1134     -10
halt_main                                            353     343     -10
getopt_main                                          636     626     -10
fdisk_main                                          2854    2844     -10
env_main                                             206     196     -10
dmesg_main                                           319     309     -10
conspy_main                                         1214    1204     -10
awk_main                                             981     971     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/22 up/down: 81/-220)         Total: -139 bytes
   text	   data	    bss	    dec	    hex	filename
 919373	    906	  14060	 934339	  e41c3	busybox_old
 918969	    906	  14060	 933935	  e402f	busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-07-06 21:58:02 +02:00
..
libcoreutils libbb: more compact API for bb_parse_mode() 2015-10-07 17:55:33 +02:00
basename.c trim extra newlines in help texts 2015-01-24 19:46:45 +01:00
cal.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
cat.c
catv.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
chgrp.c
chmod.c libbb: more compact API for bb_parse_mode() 2015-10-07 17:55:33 +02:00
chown.c libbb: make parse_chown_usergroup_or_die() set unspecified uid/gid to -1 2015-10-19 04:37:19 +02:00
chroot.c
cksum.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
comm.c
Config.src stat: make -f optional. This allows to build stat for non-linux systems 2015-10-30 22:10:44 +01:00
cp.c cp: add -u/--update and --remove-destination 2016-05-27 00:46:38 +02:00
cut.c whitespace fixes. no code changes 2013-01-14 01:34:48 +01:00
date.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
dd.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
df.c df: use f_frsize instead of f_bsize for correct sizes 2016-06-24 04:12:01 +02:00
dirname.c
dos2unix.c dos2unix: try to preserve ownership. closes 8311 2016-01-17 03:50:36 +01:00
du.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
echo.c echo: make escape sequences depend on fancy mode 2015-07-31 03:47:49 +02:00
env.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
expand.c expand: use printable_string instead of hard-coding implementation 2013-12-16 03:38:24 +01:00
expr.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
false.c special-case {true,false,test} --help 2015-04-21 16:00:41 +02:00
fold.c
fsync.c
head.c Commonalize typical [b,]k,m suffix struct 2013-07-13 23:49:45 +02:00
hostid.c hostid: do not output sign-extended host id. Closes 6056 2013-03-04 03:04:38 +01:00
id_test.sh
id.c platform: use KERNEL_VERSION to simplify uClibc version checking 2013-03-12 11:13:22 -04:00
install.c libbb: more compact API for bb_parse_mode() 2015-10-07 17:55:33 +02:00
Kbuild.src sync: add support for -d -f FILE 2015-07-21 19:50:48 +02:00
length.c.disabled
ln.c Removes stray empty line from code 2015-07-13 03:25:46 +02:00
logname.c
ls.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
md5_sha1_sum.c foo*sum: Correct syntax error 2013-07-04 11:33:42 +02:00
mkdir.c libbb: more compact API for bb_parse_mode() 2015-10-07 17:55:33 +02:00
mkfifo.c
mknod.c whitespace cleanup. no code changes 2013-01-14 15:57:44 +01:00
mv.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
nice.c
nohup.c
od_bloaty.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
od.c
printenv.c
printf.c printf: short-circuit output when argument to %b includes \c 2016-01-31 22:23:05 +01:00
pwd.c
readlink.c readlink: note that our -f is really -e 2013-03-12 11:38:03 -04:00
realpath.c
rm.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
rmdir.c Add conditional support for -v / --verbose 2014-05-19 16:23:50 +02:00
seq.c
shuf.c fix whitespaces 2015-06-07 18:19:47 +02:00
sleep.c
sort.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
split.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
stat.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
stty.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
sum.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
sync.c sync: add support for -d -f FILE 2015-07-21 19:50:48 +02:00
tac.c
tail.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
tee.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
test_ptr_hack.c
test.c special-case {true,false,test} --help 2015-04-21 16:00:41 +02:00
touch.c touch: add conditional support for -h 2013-09-11 11:58:33 +02:00
tr.c tr: support octal ranges 2015-10-26 17:18:07 +01:00
true.c special-case {true,false,test} --help 2015-04-21 16:00:41 +02:00
truncate.c truncate: use O_WRONLY|O_NONBLOCK 2016-01-13 13:30:20 -05:00
tty.c
uname.c uname: make OS name configurable 2015-08-03 18:09:18 +02:00
uniq.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
unlink.c unlink: new applet 2014-06-22 20:44:25 +02:00
usleep.c
uudecode.c uudecode: tolerate text input with CR+LF line ends 2015-10-05 15:10:44 +02:00
uuencode.c
wc.c
who.c build system: -fno-builtin-printf 2015-10-07 22:42:45 +02:00
whoami.c
yes.c