]> git.ipfire.org Git - thirdparty/glibc.git/commit - NEWS
stdio: Implement %#m for vfprintf and related functions
authorFlorian Weimer <fweimer@redhat.com>
Thu, 23 Dec 2021 14:01:07 +0000 (15:01 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 23 Dec 2021 14:02:50 +0000 (15:02 +0100)
commit9702a7901e18460e8ffc5f56a493d41294a8e936
tree0e7147c9c7e3d4cb14d3474c9dd947dcf64b38a9
parentcd0c333d2ea82d0ae14719bdbef86d99615bdb00
stdio: Implement %#m for vfprintf and related functions

%#m prints errno as an error constant if one is available, or
a decimal number as a fallback.  This intends to address the gap
that strerrorname_np does not work well with printf for unknown
error codes due to its NULL return values in those cases.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
NEWS
manual/stdio.texi
stdio-common/Makefile
stdio-common/tst-sprintf-errno.c [new file with mode: 0644]
stdio-common/vfprintf-internal.c