diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-12-29 00:45:49 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-12-29 00:46:46 -0800 |
commit | 69fda43b8dd795c3658869633ca0708ed3134006 (patch) | |
tree | e86b216293d450bfbecaaf8230c3247444b668c4 /io/fstatfs.c | |
parent | 016c64236dee6e28f09c10ba38f274aad7205f95 (diff) | |
download | glibc-69fda43b8dd795c3658869633ca0708ed3134006.tar.gz 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 'io/fstatfs.c')
0 files changed, 0 insertions, 0 deletions