From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 4050C22BBB for ; Mon, 11 Mar 2024 01:30:32 +0100 (CET) Received: (qmail 21680 invoked by uid 550); 11 Mar 2024 00:26:24 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 21660 invoked from network); 11 Mar 2024 00:26:24 -0000 Date: Mon, 11 Mar 2024 00:19:27 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@herc.mirbsd.org To: Rich Felker cc: musl@lists.openwall.com, NRK , Alejandro Colomar , Guillem Jover , libc-alpha@sourceware.org, libbsd@lists.freedesktop.org, "Serge E. Hallyn" , "Skyler Ferrante (RIT Student)" , Iker Pedrosa , Christian Brauner In-Reply-To: <20240310234410.GW4163@brightrain.aerifal.cx> Message-ID: References: <20240309150258.GS4163@brightrain.aerifal.cx> <20240310193956.GU4163@brightrain.aerifal.cx> <20240310234410.GW4163@brightrain.aerifal.cx> Content-Language: de-Zsym-DE-1901-u-em-text-rg-denw-tz-utc, en-Zsym-GB-u-cu-eur-em-text-fw-mon-hc-h23-ms-metric-mu-celsius-rg-denw-tz-utc-va-posix MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [musl] Re: Tweaking the program name for functions Rich Felker dixit: >the string literal, because the string literal appears in modular >library code that gets called from multiple utilities, then printing >an error message (and even worse, exiting, if you do that too), rather >than returning meaningful error information up to the caller for it to >handle/display, is just really sloppy, low-quality programming. Libraries totally should not call exit and thus not err/errx, and warn/warnx is=E2=80=A6 also questionable at best. But modularised code that builds a shared object and a few binaries using it? Why not. The thing I don=E2=80=99t get is why changing __progname is desired, but I guess everyone has use cases for something. bye, //mirabilos --=20 (gnutls can also be used, but if you are compiling lynx for your own use, there is no reason to consider using that package) =09-- Thomas E. Dickey on the Lynx mailing list, about OpenSSL