FW: [PATCH] [RFC] newlib: libc: start manual appendix to hold various ABI constants

Mike Frysinger vapier@gentoo.org
Wed Jan 24 04:37:03 GMT 2024


On 23 Jan 2024 14:05, brian.inglis@systematicsw.ab.ca wrote:
> On 2023-12-29 22:03, Mike Frysinger wrote:
> > On 29 Dec 2023 20:17, C Howland wrote:
> >>       I won't comment on whether adding this is a good idea or not as I
> >> don't meet any of the stated use cases.  But here are a few thoughts on the
> >> details of it assuming others like the addition.
> > 
> > if you only use newlib, it could be helpful.  consider how common it is for
> > people to write error messages like:
> > 	printf("error %i\n", errno);
> > so your log contains "error 13".  how do you find out what errno 13 is ?
> > even Linux's `man errno` doesn't list the raw numbers.  having online access
> > to the name<->number mappings for these is helpful in a pinch in my experience.
> 
> moreutils errno?
> 
> 	https://joeyh.name/code/moreutils/
> 	https://repology.org/project/moreutils/versions
> 
> - perhaps with creative use of "locales" (or patches) for different library 
> sources and board support?

right, it currently only works for the current ABI.  and requires you be
running a *NIX compatible system.  i think it's not uncommon for people to
have Windows as their main desktop in the embedded space.  i know Windows
has been gaining Linux layers, but still seems over the top to look up a
number/constant.

might also be worth seeing if they're interested in expanding as you suggest,
but it's not something i'm going to look into tbh.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20240123/20f390b7/attachment.sig>


More information about the Newlib mailing list