From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1528 Path: news.gmane.org!not-for-mail From: orc Newsgroups: gmane.linux.lib.musl.general Subject: Re: Priorities for next release? Date: Sun, 12 Aug 2012 01:55:36 +0800 Message-ID: <20120812015536.3caa3999@sibserver.ru> References: <50258541.6000805@gentoo.org> <20120811000553.GD27715@brightrain.aerifal.cx> <5025AD41.3060009@gentoo.org> <22761.132.241.65.128.1344651681.squirrel@lavabit.com> <20120811023602.GF27715@brightrain.aerifal.cx> <20120811122712.GG27715@brightrain.aerifal.cx> <20120811160950.GH27715@brightrain.aerifal.cx> <20120811165049.GI27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1344707853 17552 80.91.229.3 (11 Aug 2012 17:57:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 17:57:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1529-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 11 19:57:33 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T0FwG-0000uu-VF for gllmg-musl@plane.gmane.org; Sat, 11 Aug 2012 19:57:29 +0200 Original-Received: (qmail 32498 invoked by uid 550); 11 Aug 2012 17:57:27 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32480 invoked from network); 11 Aug 2012 17:57:23 -0000 In-Reply-To: <20120811165049.GI27715@brightrain.aerifal.cx> X-Mailer: claws-mail Xref: news.gmane.org gmane.linux.lib.musl.general:1528 Archived-At: On Sat, 11 Aug 2012 12:50:49 -0400 Rich Felker wrote: > On Sat, Aug 11, 2012 at 06:35:12PM +0200, Daniel Cegie=C5=82ka wrote: > > >> argv[0] > > > > > > I meant program_invocation_name or whatever ugly thing glibc > > > calls it. Of course if the goal is to make BSD programs happy, > > > that won't really help. I really wish somebody would just fix > > > these programs to save argv[0] themselves if they need it (or to > > > hard-code their own names as a string literal...) rather than > > > keeping around the historical practice of poking at > > > implementation internals of the original libc they used.. > >=20 > > That's what I do now (patches for __progname). Unfortunately some > > linux distributions forcing __progname, even Owl: > >=20 > > in Owl's popa3d we have a #ifdef, which really helps. > >=20 > > #ifdef HAVE_PROGNAME > > extern char *__progname; > > #define progname __progname > >=20 > > http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/st= artup.c?rev=3D1.4;content-type=3Dtext%2Fplain > >=20 > > but for Owl's msulogin we need a patch for musl: > >=20 > > http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/msulogin/msulogi= n/sulogin.c?rev=3D1.4;content-type=3Dtext%2Fplain >=20 > Couldn't this code just be fixed to add an argument to usage() and > call usage(argv[0]) or even usage(basename(argv[0])) if preferred? >=20 > Rich Or even progname =3D basename(argv[0]) with global char *progname ?