diff options
author | 2020-12-29 00:45:49 -0800 | |
---|---|---|
committer | 2020-12-29 00:46:46 -0800 | |
commit | 69fda43b8dd795c3658869633ca0708ed3134006 (patch) | |
tree | e86b216293d450bfbecaaf8230c3247444b668c4 /malloc/hooks.c | |
parent | hurd: Accept including hurd/version.h (diff) | |
download | glibc-69fda43b8dd795c3658869633ca0708ed3134006.tar.xz glibc-69fda43b8dd795c3658869633ca0708ed3134006.zip |
free: preserve errno [BZ#17924]
In the next release of POSIX, free must preserve errno
<https://www.austingroupbugs.net/view.php?id=385>.
Modify __libc_free to save and restore errno, so that
any internal munmap etc. syscalls do not disturb the caller's errno.
Add a test malloc/tst-free-errno.c (almost all by Bruno Haible),
and document that free preserves errno.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'malloc/hooks.c')
0 files changed, 0 insertions, 0 deletions