[PATCH 1/1] libc: Added implementations and prototypes for

Corinna Vinschen vinschen@redhat.com
Wed Jul 28 08:44:49 GMT 2021

On Jul 23 07:44, Matthew Joyce wrote:
> Hi Corinna,
> Thanks again for the explanation! I think I had just failed to include stdint.h.
> Now that it's working, I'd like to clarify: If SIG2STR_MAX is now 17,
> this will impact the message "Unknown signal <signum>" in case the
> signum isn't a valid, recognized signal number.
> Is it better to change the error message (by taking out the <signum>
> part) or make SIG2STR_MAX larger?

Actually, don't write anything into the string in case the signal
doesn't exist.  If the signal is not valid, sig2str is supposed to
returns -1.  It's not supposed to write anything into the buffer in that


More information about the Newlib mailing list