Hello Walter, Thanks for raising this. On Mon, 1 Feb 2021 at 12:19, Walter Harms <wharms@xxxxxx> wrote: > > 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." URL please. > In future it seems that POSIX with require free() not to change errno. The statement you make in the preceding sentence is useful information, but you could save other people a lot of time searching if you provided a reference: https://www.austingroupbugs.net/view.php?id=385#c713 > after much soul searching i have still no idea if that should be documented in > the free(3) man page. Any comments ? Probably it should be documented. Did you have a suggestion for the text? Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/