From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12371 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [feature request] add mallinfo support Date: Wed, 17 Jan 2018 12:43:25 -0500 Message-ID: <20180117174325.GP1627@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1516210927 7233 195.159.176.226 (17 Jan 2018 17:42:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Jan 2018 17:42:07 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: musl@lists.openwall.com To: Gonzalo Brito Gadeschi Original-X-From: musl-return-12387-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 17 18:42:03 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ebriV-0000GK-Ki for gllmg-musl@m.gmane.org; Wed, 17 Jan 2018 18:41:39 +0100 Original-Received: (qmail 28504 invoked by uid 550); 17 Jan 2018 17:43:40 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 28477 invoked from network); 17 Jan 2018 17:43:40 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12371 Archived-At: On Wed, Jan 17, 2018 at 06:32:02PM +0100, Gonzalo Brito Gadeschi wrote: > That's mostly about it: musl currently does not support mallinfo, described > here: > > http://man7.org/linux/man-pages/man3/mallinfo.3.html > > Note: I am not subscribed to the mailing list. Omission of mallinfo is largely intentional. The API is fundamentally broken (using type int which cannot represent sizes) and tracking the information it provides imposes nontrivial costs on the malloc implementation. It was discussed in the past that a stub/dummy could be provided, but prevailing opinion seemed to be that it would be better not to: http://www.openwall.com/lists/musl/2013/11/09/2 It's probably better that programs trying to use mallinfo fail to build so that you can identify and fix the problem rather than hiding it. Rich