busybox/include
Ron Yorston be366e5afa ash: support platforms that don't have '%m' printf specifier
The '%m' conversion specifier prints an error message based on the
current value of 'errno'.  It is available in the GNU C library,
Cygwin (since 2012), uClibc and musl.

It is not available in various BSDs, BSD-derived systems (MacOS,
Android) or Microsoft Windows.

Use a symbol defined in platform.h to control how error messages
can be formatted to display the 'errno' message.  On platforms that
support it use '%m'; on other platforms use '%s' and strerror().

On platforms that have '%m' there is essentially no change in the
size of the binary.  Otherwise:

function                                             old     new   delta
redirect                                            1287    1310     +23
xtcsetpgrp                                            27      44     +17
dup2_or_raise                                         34      51     +17
setinputfile                                         267     275      +8
.rodata                                           163379  163371      -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 65/-8)              Total: 57 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-28 15:39:26 +02:00
..
.gitignore generate_BUFSIZ.sh: yet another tweak 2016-04-24 14:13:35 +02:00
applet_metadata.h
applets.h.sh modprobe-small: make applets individually selectable 2016-12-23 15:13:16 +01:00
applets.src.h Remove outdated comments 2016-11-23 21:51:11 +01:00
ar.h
bb_archive.h tar: postpone creation of symlinks with "suspicious" targets. Closes 8411 2017-07-24 17:20:13 +02:00
bb_e2fs_defs.h
busybox.h config: disentangle PREFER_APPLETS from SH_STANDALONE and SH_NOFORK 2016-07-22 18:48:38 +02:00
dump.h
fix_u32.h
grp_.h
inet_common.h
libbb.h zcip: fix slow environment leak 2017-07-22 03:04:20 +02:00
liblzo_interface.h
platform.h ash: support platforms that don't have '%m' printf specifier 2017-07-28 15:39:26 +02:00
pwd_.h
rtc_.h
shadow_.h
unicode.h
usage.src.h password utils: improve --help, make DEFAULT_PASSWD_ALGO visible if CHPASSWD 2017-01-20 19:47:49 +01:00
volume_id.h
xatonum.h
xregex.h