public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* rfc: free and errno
@ 2021-02-01 11:17 Walter Harms
  2021-02-06  9:49 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 3+ messages in thread
From: Walter Harms @ 2021-02-01 11:17 UTC (permalink / raw)
  To: linux-man@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-06 11:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-01 11:17 rfc: free and errno Walter Harms
2021-02-06  9:49 ` Michael Kerrisk (man-pages)
2021-02-06 10:42   ` Jakub Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox