From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6760 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: the case for __MUSL__ Date: Mon, 29 Dec 2014 21:29:22 +0000 Message-ID: References: <20141229173713.GM4574@brightrain.aerifal.cx> <0E7DD0A2-5CD3-4695-AE48-3C95E6FB195B@cognitive-electronics.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1419888582 27879 80.91.229.3 (29 Dec 2014 21:29:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2014 21:29:42 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6773-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 29 22:29:36 2014 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Y5hse-0005F3-0M for gllmg-musl@m.gmane.org; Mon, 29 Dec 2014 22:29:36 +0100 Original-Received: (qmail 19619 invoked by uid 550); 29 Dec 2014 21:29:34 -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 19611 invoked from network); 29 Dec 2014 21:29:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4fDbSMpUmhq86fHFu9ztg7xxV/C+tzRljQELUBKQmCg=; b=L5gfUauvDE2/YgD8QAW2q5t5rRlnAMP1YAe3BVKl2VnbJ75CDwe8P1vw9De37Js1zv J3juA3ybNgDDygft/LMayvSSTYk8h2X5toUb7cnMKoXfLFxnt0BGADMcn49DteUto6BH BAQX0LSjP/nSg0JyJYL7wvIrJa2qceDHi6JGo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=4fDbSMpUmhq86fHFu9ztg7xxV/C+tzRljQELUBKQmCg=; b=P4WGoDGrJPjz1dxtrOj7XcXiwjwaEdo3et08cZLkMuoawhDCoHlVxp92SwnpPUkQyx mRwK6sWAb9roIGLPEa7WRveXbOX4PXDAOWG9b7RCnWwDnn+jCtjC0q1UHxgNn43wgZSE gPPMhX6JLX6QuC+poiKXYs2jnmq+kFk3ZNmKEvhfiVWmt3/xDXFSwa+kQETsIAD+WQ+D BSINckfH/Af/RdCj5m7jiPRqAVvo0SX2lKarRVOvgglb2WqjtPoW4ocZxB5xicO7YrCq iFU+au7VKlCZIv5tvDKbtEuFKqUrTtxPIURK6yYltMydr/yvIrm9DQkltITy9pXQGx/G A8fQ== X-Gm-Message-State: ALoCoQlsvAvh5L9rXd3AVFr216VJfSOGPQ755szfUvfZND/KxDfvJd0Izq/Aku3rkK8Zh9jqvJYb X-Received: by 10.112.62.226 with SMTP id b2mr59003057lbs.44.1419888563062; Mon, 29 Dec 2014 13:29:23 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:6760 Archived-At: On Mon, Dec 29, 2014 at 5:59 PM, Josiah Worcester wrote: > > On Dec 29, 2014 11:51 AM, "Richard Gorton" > wrote: >> >> >> That is a single example of some of the code in a library which is NOT >> musl. >> There are other places in the example library which know about __APPLE__ >> or __GLIBC__ or __sun__ >> >> My thought is to use __MUSL__ in those libraries as appropriate in place >> of ____ as the backing libc is musl. >> >> And said use of __MUSL__ is what I am interested in feedback about. >> > > The intent of not providing it is to force applications to use a portable > interface rather then being libc specific. So, everyone's leaping to try and > find ways to not need that. > Sorry for the mismatched expectations. There are cases where glibc uses a non standard/bizarre/buggy interface and using #ifdef __GLIBC__ and leaving Musl to use the sane default case works. Best to avoid those if at all possible though. Justin