Re: rfc: free and errno

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Michael Kerrisk <mtk.manpages@xxxxxxxxx>, 2021-02-06, 10:49:
On Mon, 1 Feb 2021 at 12:19, Walter Harms <wharms@xxxxxx> wrote:
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."

URL please.

http://lists.busybox.net/pipermail/busybox/2021-January/088491.html probably.

glibc's free() also can set errno in some circumstances:
https://sourceware.org/bugzilla/show_bug.cgi?id=17924

--
Jakub Wilk



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux