From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4463 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [feature request] add function strtoull_l and similar Date: Wed, 8 Jan 2014 10:31:49 -0500 Message-ID: <20140108153149.GK24286@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1389195118 11014 80.91.229.3 (8 Jan 2014 15:31:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2014 15:31:58 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4467-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 08 16:32:06 2014 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 1W0v6w-0007nQ-Jr for gllmg-musl@plane.gmane.org; Wed, 08 Jan 2014 16:32:02 +0100 Original-Received: (qmail 11682 invoked by uid 550); 8 Jan 2014 15:32:01 -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 11667 invoked from network); 8 Jan 2014 15:32:01 -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:4463 Archived-At: On Wed, Jan 08, 2014 at 10:33:36AM +0100, Daniel Cegiełka wrote: > Sory - I gave link without checking whether ellcc really uses it. > > If it's really necessary, you can import this function eg from FreeBSD: > > https://github.com/freebsd/freebsd-head/blob/master/lib/libc/stdlib/strtoull.c The function in question was the nonstandard strtoull_l, not strtoull. In the case of the former, attempting to import it from FreeBSD would definitely not be the right solution; you'd have to import a large part of the FreeBSD locale framework it depends on, in which case you'd be giving very inconsistent behavior with the rest of musl, or you'd have to strip the code that's using the locale and make strtoull_l ignore it, in which case the outcome would be identical to using the existing version in musl, but with a lot of duplicate code added. Rich