|
Message-ID: <Pine.BSM.4.64L.2403110017360.18628@herc.mirbsd.org> Date: Mon, 11 Mar 2024 00:19:27 +0000 (UTC) From: Thorsten Glaser <tg@...bsd.de> To: Rich Felker <dalias@...c.org> cc: musl@...ts.openwall.com, NRK <nrk@...root.org>, Alejandro Colomar <alx@...nel.org>, Guillem Jover <guillem@...rons.org>, libc-alpha@...rceware.org, libbsd@...ts.freedesktop.org, "Serge E. Hallyn" <serge@...lyn.com>, "Skyler Ferrante (RIT Student)" <sjf5462@....edu>, Iker Pedrosa <ipedrosa@...hat.com>, Christian Brauner <christian@...uner.io> Subject: Re: Re: Tweaking the program name for <err.h> 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… also questionable at best. But modularised code that builds a shared object and a few binaries using it? Why not. The thing I don’t get is why changing __progname is desired, but I guess everyone has use cases for something. bye, //mirabilos -- (gnutls can also be used, but if you are compiling lynx for your own use, there is no reason to consider using that package) -- Thomas E. Dickey on the Lynx mailing list, about OpenSSL
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.