From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1590 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Todo for release? Date: Wed, 15 Aug 2012 12:20:29 +0200 Message-ID: <20120815102029.GL20243@port70.net> References: <20120813185329.GA20024@brightrain.aerifal.cx> <20120815040836.GJ27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1345026043 25939 80.91.229.3 (15 Aug 2012 10:20:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 10:20:43 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1591-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 15 12:20:44 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 1T1aiR-0002jP-5l for gllmg-musl@plane.gmane.org; Wed, 15 Aug 2012 12:20:43 +0200 Original-Received: (qmail 23720 invoked by uid 550); 15 Aug 2012 10:20:41 -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 23712 invoked from network); 15 Aug 2012 10:20:41 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1590 Archived-At: * Daniel Cegie?ka [2012-08-15 10:55:06 +0200]: > >> - Support for __progname (Daniel) > > > > Daniel, any more thoughts on this? Are there lots of programs that > > want it that can't easily be patched to simply use argv[0] themselves? > > This is not something that is absolutely necessary. __progname quite > often is used on *BSD and less on Linux (eg. Owl's msulogin, > popa3d)... but __progname is always easy to fix. > i think the fact that *bsd uses it is not enough justification openbsd uses it because it's part of their style guide for whatever reason "The __progname string may be used instead of hard-coding the program name." http://www.openbsd.org/cgi-bin/man.cgi?query=style&sektion=9 but we don't support many things from there (like sys/queue.h) i don't think many linux tools uses it as it's not part of the lsb and glibc has its own silly program_invocation_name and program_invocation_short_name (which are aliases to __progname and __progname_full) the main justification i see is that we already support bsd err and warn apis which are required to print the __progname as well (currently they don't and actually a simple warn("hi"); segfaults here with musl but i havent investigated it)