From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 597433858D1E for ; Wed, 24 Jan 2024 04:37:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 597433858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 597433858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706071027; cv=none; b=Bh1xAcYvYh1rT1o3OrkbtENSSx2ZZxJUkkqejQ/m+bqP5OFjSrCBFK+AlsEF3LJrwFcZzDw7xxXbeaacWmCdawK1924P9BAP+et/DwItQqAJ7cwhINRmwa0u6Mbl5BN8xF4gjYyqINoPPm3GRK+mRNr8CHKpkNY4Aa6PkdjQ9zk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706071027; c=relaxed/simple; bh=RrFlNUB9LYd6j0DzkaofE+jpiyXAMighuyKLmfKnoFg=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=P/HSovGaFgtRiArexBn2P6RcKI9FOsL1tLZyEIzjEZ2qY0v0bYjVA7RG/Rsm9xTel0xEa1PGGYor7+bGJTTShlGXIuGKNirsy5+hX87lrByXKbo4JfxK/JHPNCs6LrCsoIjRGNyDNzkVDj31nlS/popnvDi/amzv1uzGc1KVR7U= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id D7C4D34339A; Wed, 24 Jan 2024 04:37:04 +0000 (UTC) Date: Tue, 23 Jan 2024 23:37:03 -0500 From: Mike Frysinger To: newlib@sourceware.org Subject: Re: FW: [PATCH] [RFC] newlib: libc: start manual appendix to hold various ABI constants Message-ID: References: <20231227072512.17179-1-vapier@gentoo.org> <98c7546a-2caf-4492-b5e8-882f5d867262@systematicsw.ab.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="J0loM4NMA1wKnI2r" Content-Disposition: inline In-Reply-To: <98c7546a-2caf-4492-b5e8-882f5d867262@systematicsw.ab.ca> X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --J0loM4NMA1wKnI2r Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 o= n the > >> details of it assuming others like the addition. > >=20 > > 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 a= ccess > > to the name<->number mappings for these is helpful in a pinch in my exp= erience. >=20 > moreutils errno? >=20 > https://joeyh.name/code/moreutils/ > https://repology.org/project/moreutils/versions >=20 > - perhaps with creative use of "locales" (or patches) for different libra= ry=20 > 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 sugges= t, but it's not something i'm going to look into tbh. -mike --J0loM4NMA1wKnI2r Content-Type: application/pgp-signature; name="signature.asc" -----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----- --J0loM4NMA1wKnI2r--