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

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <ZbCT7yWjp3SpdRGV@vapier>
On 23 Jan 2024 14:05, [email protected] 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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmWwk+8ACgkQQWM7n+g3
9YHFKg//ccELQrbUqzkFAcaF3ei44GjfqJMeYKAht/FnNBpeTy6sLPCWwzXKpNtV
z99Rg95tdZHVsEq14fnA6dVn0Jp+0GVYY1eSKAt+tA5u/MGFBl/6oPzEcge5xsyf
DFjca+b0Ov7upfyiSatWLC9G9giRQPUdDg49GWxIkwUKGnM/zu8ToQ/ejAaspGNR
6rzSsoL8krPXKB33vbf/ATcfI/rCCQWTybrpCZBK5ciocP97ht6zwFrZXsJiJ5tV
5wFGPUrxzX54/xnpXcOSaLEMA1ziLwNRgwG1BJHKeyOjMfaAwcPkCkJRp9DaLR83
uHsjWUraS3WtsmUpq0YWn+sNai0vuA7QJWCdkCEtCXWs9bdEmIxFfgHbUifXnMtr
KKnSlLB9hPVihocGTry8BseAi2HrXnqF4O+xseAFWGvRVZkuj+qoFnRSn0602hRN
4dfi3uvxLMv5BHubwDw6PZvX+x4Bg55vObxmpBQkAKTVTUBv3W+gGPQKgHx4IQPc
vdG8O3CDjAafNnpN6c/hlahn46tJ5etcaMuOw9KabHsmeisN5nWY8dT94XTXi5sz
vdXRAiIrwio+sZ+V2xXySSSliPrS9CVhhyYWTv6V0SATxLTtwEL82dMeoPwtDhKZ
NJsak+ClXWL9HHV+/vNjQjKT+Bp1Otgd1lopeAfVI2scx3sKPag=
=i2U3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.