mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Gonzalo Brito Gadeschi <gonzalo.gadeschi@rwth-aachen.de>
Cc: musl@lists.openwall.com
Subject: Re: [feature request] add mallinfo support
Date: Wed, 17 Jan 2018 12:43:25 -0500	[thread overview]
Message-ID: <20180117174325.GP1627@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAPMgRLR0L6iRVnbwWEv6xDFp-MGdo=MzLrjxUNEfFwQq4d6pOw@mail.gmail.com>

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


  reply	other threads:[~2018-01-17 17:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-17 17:32 Gonzalo Brito Gadeschi
2018-01-17 17:43 ` Rich Felker [this message]
2018-01-18  9:28   ` Gonzalo Brito Gadeschi
2018-01-18 12:10     ` Dmitry Golovin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180117174325.GP1627@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=gonzalo.gadeschi@rwth-aachen.de \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).