From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3726 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Proposed roadmap to 1.0 Date: Wed, 24 Jul 2013 15:41:46 -0400 Message-ID: <20130724194146.GX3249@brightrain.aerifal.cx> References: <20130629235041.GA5046@brightrain.aerifal.cx> <20130724221410.4b17905d@sibserver.ru> <20130724144245.GT3249@brightrain.aerifal.cx> <20130724232942.45f4b7ba@sibserver.ru> <20130724160409.GW3249@brightrain.aerifal.cx> <20130725002506.63f0ad52@sibserver.ru> 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 1374694929 31926 80.91.229.3 (24 Jul 2013 19:42:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jul 2013 19:42:09 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3730-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 24 21:42:10 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 1V24wi-00018l-79 for gllmg-musl@plane.gmane.org; Wed, 24 Jul 2013 21:42:00 +0200 Original-Received: (qmail 3971 invoked by uid 550); 24 Jul 2013 19:41:59 -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 3957 invoked from network); 24 Jul 2013 19:41:59 -0000 Content-Disposition: inline In-Reply-To: <20130725002506.63f0ad52@sibserver.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3726 Archived-At: On Thu, Jul 25, 2013 at 12:25:06AM +0800, orc wrote: > > > I faced problem when I tried to build dhcpcd with musl. I > > > dropped dhcpcd then, found simple default.script for udhcpc and > > > forgot about any problems. > > > > Do you know what dhcpcd needs it for? If it's just automatic binding > > when you don't specify an interface, that's probably a bad idea > > anyway... But maybe we should support it. > > It listed interfaces internally, compared command line argument with > each, and if not found, exited with error. An interface of question was > down at the moment, so was not listed by getifaddrs(). OK, this is just gratuitous brokenness/non-portability. if_nametoindex can be used to check whether an interface name is valid, and if_nameindex gives you a list of all interfaces. Rich