From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by sourceware.org (Postfix) with ESMTPS id 166293858D3C for ; Mon, 8 Nov 2021 20:28:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 166293858D3C Received: by mail-qv1-xf2e.google.com with SMTP id j9so12692744qvm.10 for ; Mon, 08 Nov 2021 12:28:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Av/90E3ZLMiArC4icUf3WGGVQyKgGLxhaSXqA7s+Bvw=; b=7hRdO3sgdR1f7Zhi0zQrRO4cu5TIyvi5NzsgycqbXhBfOuxOJjr9vniYeEjyRIAWJ+ vjJ43o0z3sk1MR1Qusz1KKb24LTWt+hJ+uT/pCyaj2/xKV30+6wMOoUh8qA1OqoKDf8W tsKB3D4A+y6tmGRg/eYFwt8r9lwNVR4mup3jMNukd7bnMnMKhwnpi2LOnfFMkbsQPcT8 XMENAF5Edi86AKVlGqvy6yiZekSXLp8dkzCIsE93nK1gX8nvmWQ+r9TNKoEPRzbHexgn mNk/B5WVpLzlpvUoHOdDo+yG7brSKpg1sns5YNYfpvomSSQk9HIw2RphrQzIFxeL9gXQ 1UxQ== X-Gm-Message-State: AOAM530M7ERfUZ4i4qY+Oq8yVM664BLjBkNo2U9B0Lj+DpX3Fc1Yp2pV B130wLQCJpxDa8g6sLF9rid1rf6K86iHEA== X-Google-Smtp-Source: ABdhPJzdfIcMVnbfe+S7HZA+FkTNi31X2VCPJjMrUgzLb1N479NH59fzfYcfvKNkUrrzfSpsA6HgwA== X-Received: by 2002:a05:6214:238e:: with SMTP id fw14mr20975609qvb.1.1636403323651; Mon, 08 Nov 2021 12:28:43 -0800 (PST) Received: from ?IPV6:2804:431:c7cb:55a:c067:29b:4c08:be99? ([2804:431:c7cb:55a:c067:29b:4c08:be99]) by smtp.gmail.com with ESMTPSA id c14sm11513841qtd.97.2021.11.08.12.28.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 12:28:43 -0800 (PST) Message-ID: <497b9362-d021-8296-bce9-7db9df318db9@linaro.org> Date: Mon, 8 Nov 2021 17:28:41 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: glibc strerrorname_np Content-Language: en-US To: Florian Weimer , Adhemerval Zanella via Libc-alpha Cc: Zack Weinberg References: <98556e3e-2869-64f0-574e-7a64503185c2@linaro.org> <9613b21a-3ab0-3303-9321-7bf4e36ce7ed@jguk.org> <77e058e8-2f54-46a5-2180-9784f23040e7@linaro.org> <4f5422c1-d6ea-1ea5-eeea-db61f8b95bc8@jguk.org> <66a2e472-d4e2-96bb-d1a5-8bafa795083f@linaro.org> <4c43eab7-2ca8-1b90-5fb9-c84e26a96ef0@linaro.org> <0bee99f3-35c7-4ad0-845b-d2fcdde9761a@www.fastmail.com> <6d5ad19c-ecc3-b760-a18c-d0736a81cc1d@linaro.org> <533fd451-35c9-4e8d-9ba9-41059de44ed0@www.fastmail.com> <22181691-105a-ae32-4dde-482783dcdb6e@linaro.org> <874k8mfml0.fsf@oldenburg.str.redhat.com> From: Adhemerval Zanella In-Reply-To: <874k8mfml0.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2021 20:28:45 -0000 On 08/11/2021 16:56, Florian Weimer wrote: > * Adhemerval Zanella via Libc-alpha: > >> But I do agree with you that at least keeping old buggy behavior for the >> sake of 'compatibility' is not a practice that I think help improve the >> whole ecosystem as whole (although it does help close-source and/or binary >> one system where recompile is an issue). > > But the old behavior is arguable not a bug. It was always expected that > the caller would check for NULL. The NULL behavior has already made it > into Solaris: > > | The returned string is not translated according to the current locale, > | and strerrordesc_np() returns a NULL result for unknown error codes, > | rather than a generated descriptive string. > > > > So I think this ship has sailed. Right, I was not aware Solaris has adopted this interface so I do agree that it is too late now and it would require a new symbol to provide such semantic. > > By the way, I seem to recall that an incompatible version of these > functions (different from strerror_r) has been defined in POSIX and > implemented by one of the other systems. But I can't find the function > name anymore. 8-( > > Thanks, > Florian >