public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Walter Harms <wharms@bfs.de>
To: "linux-man@vger.kernel.org" <linux-man@vger.kernel.org>
Subject: rfc: free and errno
Date: Mon, 1 Feb 2021 11:17:31 +0000	[thread overview]
Message-ID: <2ea085f2674543b1a1fb41702bc959c7@bfs.de> (raw)

Hi List

free() is generaly assumed not to modify errno. 

Lately there was a bugfix posting on the busybox mailing list, because:

"musl libc's mallocing free() may modify errno if kernel does not support
MADV_FREE which causes echo to echo with error when it shouldn't."

In future  it seems that POSIX with require free() not to change errno.

after much soul searching i have still no idea if that should be documented in
the free(3) man page. Any comments ?

re,
 wh

             reply	other threads:[~2021-02-01 11:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 11:17 Walter Harms [this message]
2021-02-06  9:49 ` rfc: free and errno Michael Kerrisk (man-pages)
2021-02-06 10:42   ` Jakub Wilk

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=2ea085f2674543b1a1fb41702bc959c7@bfs.de \
    --to=wharms@bfs.de \
    --cc=linux-man@vger.kernel.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox