From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/138 Path: news.gmane.org!not-for-mail From: Solar Designer Newsgroups: gmane.linux.lib.musl.general Subject: Re: cluts review Date: Wed, 13 Jul 2011 18:21:31 +0400 Message-ID: <20110713142131.GA23463@openwall.com> References: <20110713110723.GA22153@openwall.com> <4E1D8964.3020502@gmail.com> <20110713122128.GA22658@openwall.com> <4E1D9631.3070203@gmail.com> <20110713134238.GB16618@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310566901 11581 80.91.229.12 (13 Jul 2011 14:21:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 14:21:41 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-222-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 13 16:21:38 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Qh0Jj-0000G5-7q for gllmg-musl@lo.gmane.org; Wed, 13 Jul 2011 16:21:35 +0200 Original-Received: (qmail 21993 invoked by uid 550); 13 Jul 2011 14:21: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 21976 invoked from network); 13 Jul 2011 14:21:34 -0000 Content-Disposition: inline In-Reply-To: <20110713134238.GB16618@brightrain.aerifal.cx> User-Agent: Mutt/1.4.2.3i Xref: news.gmane.org gmane.linux.lib.musl.general:138 Archived-At: On Wed, Jul 13, 2011 at 09:42:38AM -0400, Rich Felker wrote: > *asprintf is not portable because it's a GNU extension, but it's > trivial to implement it as a wrapper for vsnprintf which is standard. Right. FWIW, non-ancient *BSD's also have asprintf(), and with slightly safer semantics than glibc: on error, they not only return -1, but also reset the pointer to NULL. Dmitry V. Levin of ALT Linux tried to push this semantics change to glibc, but Ulrich rejected it. So it remains in a patch in ALT Linux and Owl. It would be nice for cluts to test non-portable functions like that as well, when they're available, and to point out semantics differences like this (not as errors, but as properties of the given platform). Alexander