From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1955 Path: news.gmane.org!not-for-mail From: idunham@lavabit.com Newsgroups: gmane.linux.lib.musl.general Subject: Re: R/GNU S: up with a couple hitches... Date: Wed, 19 Sep 2012 00:17:34 -0400 (EDT) Message-ID: <50767.132.241.246.168.1348028254.squirrel@lavabit.com> References: <36368.132.241.18.70.1347510547.squirrel@lavabit.com> <20120913044127.GW27715@brightrain.aerifal.cx> <20120914202107.6a24db02.idunham@lavabit.com> <20120915035110.GC27715@brightrain.aerifal.cx> <20120915000624.0e7cd735.idunham@lavabit.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1348028275 3404 80.91.229.3 (19 Sep 2012 04:17:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2012 04:17:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1956-gllmg-musl=m.gmane.org@lists.openwall.com Wed Sep 19 06:18:00 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 1TEBjT-0005js-W5 for gllmg-musl@plane.gmane.org; Wed, 19 Sep 2012 06:17:52 +0200 Original-Received: (qmail 15450 invoked by uid 550); 19 Sep 2012 04:17:47 -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 15441 invoked from network); 19 Sep 2012 04:17:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=kzFFyS9lza0U7ZME/DSWgqmdN7EOpwOJuIyZm+HqSX5wj/C4GefPX7yzXP3UmneG2FvvOT3Kq6N5OjmKBzjeF/2IYC9nVxAZfXQFhRkl3RlWTiOHhhyDPJq5BSQ8u31R3kWim++sBEjPQtsYc0uY1kJ1S70kim7reBILxlQmyaM=; h=Message-ID:In-Reply-To:References:Date:Subject:From:To:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20120915000624.0e7cd735.idunham@lavabit.com> User-Agent: SquirrelMail/1.4.13 Xref: news.gmane.org gmane.linux.lib.musl.general:1955 Archived-At: > On Fri, 14 Sep 2012 23:51:10 -0400 > Rich Felker wrote: > >> On Fri, Sep 14, 2012 at 08:21:07PM -0700, Isaac Dunham wrote: ... >> > Not yet, unless you're using the g_hack branch and don't need rpc to >> > actually _work_. libtirpc needs getifaddrs. >> >> Is the getifaddrs code there license-compatible with musl? > Yes but it's only a stub I wrote (hence the comment about "don't need rpc > to actually _work_"). It will almost certainly leave any software that > uses getifaddrs crippled. > And no, I' haven't tested what builds with it. Probably nothing in its > present state (I don't have a proper header yet). I have since gone looking and found that newlib has a BSDi-based version, which looks like it might be usable on some arches with some minor (?) changes and cleanup. There's a note about one codepath not being LP64 friendly, though, as well as one abort() that should be turned into a retry or failure. (Apple used the same base for implementing getifaddrs, FWIW) Refer to newlib/libc/sys/linux/net/getifaddrs.c in the newlib source tree. Not sure if http://www.kegel.com/dkftpbench/dkftpbench-0.45/getifaddrs.c ftp://ftp.inet.no/pub/barefoot/extracted/libscompat/getifaddrs.c (elinks) src/osdep/getifaddrs.c are worthwhile, though they are compatibly licensed (BSDi or 3-clause BSDish). > Also, I have mentioned once or twice that getifaddrs, when implemented, > will require (BSD) TAILQ_* macros. If any header contains > copyrightable material, it's this one: hundreds of LOCs, implementing > linked lists in macros. will only be needed for source compatibility only, not for implementing it.