Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110713142131.GA23463@openwall.com>
Date: Wed, 13 Jul 2011 18:21:31 +0400
From: Solar Designer <solar@...nwall.com>
To: musl@...ts.openwall.com
Subject: Re: cluts review

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.