Add strerrordesc_np() and strerrorname_np().
strerrordesc_np() isn't very useful (being just another name for
strerror()), but strerrorname_np() lets you get "ENOSYS" for ENOSYS,
which will make some of our test assertion messages clearer when we
switch over from strerror().
This also adds `%#m` formatting to all the relevant functions.
Test: treehugger
Change-Id: Icfe07a39a307d591c3f4f2a09d008dc021643062
diff --git a/libc/stdio/printf_common.h b/libc/stdio/printf_common.h
index 365728b..702f8d3 100644
--- a/libc/stdio/printf_common.h
+++ b/libc/stdio/printf_common.h
@@ -786,7 +786,7 @@
//
// Returns NULL on failure.
// To find out what happened check errno for ENOMEM, EILSEQ and EINVAL.
- static wchar_t* mbsconv(char* mbsarg, int prec) {
+ static wchar_t* mbsconv(const char* mbsarg, int prec) {
mbstate_t mbs;
const char* p;
size_t insize, nchars, nconv;