From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4F2BE1F55B for ; Tue, 19 May 2020 18:47:27 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4BF6F3894E68; Tue, 19 May 2020 18:47:26 +0000 (GMT) Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id DF31E384A87E for ; Tue, 19 May 2020 18:47:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DF31E384A87E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: ckIIz26OXFls8aDC43Q+0C13w7m46FLE/q68TRJSDFXZNPPVhwCg7jcTi8ertivPjeq3nDkUd8 dPCLj4BdmC9hH/7Adt3KSPcY2EQ2RSsM6k0Rsz15R3Z49LxvgqkPcT78eyc90x7LNSLOlPJQ24 mltPuPrIZBaI0TiDkao2HFZt2ez4AeYCmX42rsVjjNi75A5ptEXIuSyFWEyVv6TCl7mrruxXp8 sUrOUU09vPL0d9yOqkDJIHeP9ZFM96d35uQ+LgTQm2adkfuro09pvOviLAl/YMWLAuCX6vIAgn 6ds= X-IronPort-AV: E=Sophos;i="5.73,410,1583222400"; d="scan'208";a="51038552" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 19 May 2020 10:47:22 -0800 IronPort-SDR: e3LXV8NkZLyBsV8pJbFEAoVjjbFKiAZVzIf0dsD0fY38005CTZjtQ298pmZs6Z6lX7gx7GH0FD l5cgNWuitHO4W7V8QMYSE7U3xjt3mElI6epb6twB5telkNrOZb+Tb0JP6Sb3EMLcDsvIJbq4Qk lMi2oO7Qgpd4MZttZY3E12UBo8kziJypyDdL8vdfmsgvN/SSr8gDQ7dU/S6pXgnHAjHyilDr0B 0Awav7Dmz2zbxBUE53nzP9n94CdsSzv1okRg2JS5C9Dsiyzj16RnaJF1OdEZTD00u7opnxdloa 4kw= Date: Tue, 19 May 2020 18:47:16 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Adhemerval Zanella Subject: Re: [PATCH 12/13] string: Add sigabbrev_np and sigdescr_np In-Reply-To: <20200519180518.318733-13-adhemerval.zanella@linaro.org> Message-ID: References: <20200519180518.318733-1-adhemerval.zanella@linaro.org> <20200519180518.318733-13-adhemerval.zanella@linaro.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) 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: , Cc: libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" On Tue, 19 May 2020, Adhemerval Zanella via Libc-alpha wrote: > They should be used instead of sys_siglist or sys_sigabbrev and they > are both thread and async-signal safe. They are added as GNU > extensions on string.h header (same as strsignal). I think the documentation for these functions should say they return pointers to static storage whose lifetime is the whole lifetime of the program, if the intent is that users can rely on that. Likewise for the corresponding functions for errno. -- Joseph S. Myers joseph@codesourcery.com