rfc: free and errno

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

 



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




[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