From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4298 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Latest pkgsrc results [What builds on musl 0.9.13?] Date: Fri, 29 Nov 2013 12:49:55 -0500 Message-ID: <20131129174955.GE24286@brightrain.aerifal.cx> References: <20131109052010.GE24286@brightrain.aerifal.cx> <1385609007.1974.288@driftwood> 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: ger.gmane.org 1385747402 19933 80.91.229.3 (29 Nov 2013 17:50:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Nov 2013 17:50:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4302-gllmg-musl=m.gmane.org@lists.openwall.com Fri Nov 29 18:50:09 2013 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 1VmSCe-0001Pt-3R for gllmg-musl@plane.gmane.org; Fri, 29 Nov 2013 18:50:08 +0100 Original-Received: (qmail 19509 invoked by uid 550); 29 Nov 2013 17:50:07 -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 19501 invoked from network); 29 Nov 2013 17:50:07 -0000 Content-Disposition: inline In-Reply-To: <1385609007.1974.288@driftwood> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4298 Archived-At: On Wed, Nov 27, 2013 at 09:23:27PM -0600, Rob Landley wrote: > On 11/08/2013 11:20:10 PM, Rich Felker wrote: > >On Sat, Nov 09, 2013 at 05:02:52AM +0100, Szabolcs Nagy wrote: > >> * Rich Felker [2013-11-08 20:01:30 -0500]: > >> > > at least mysql5-client config uses getconf > >> > > >> > Hm? We should probably provide a getconf that works with musl > >> > somewhere... > >> > >> maybe landley could do one for toybox.. :) > > > >I'm not clear on how easy it is to do in a libc-agnostic way, but if > >possible that would definitely be a nice solution. > > It's already in the toybox roadmap because posix specifies it: > > http;//landley.net/toybox/roadmap.html > http://opengroup.org/onlinepubs/9699919799/utilities/getconf.html > > And they say it stacks on top of sysconf(), confstr(), and limits.h. > Plus the implementation may add "other local values"... Adding the "other local values" is the only problematic part, since there's no portable way to enumerate them. You could probably use some $CC -dM magic to get a list of the SC_*, PC_*, and CS_* macros though. Rich