diff options
author | Rich Felker <dalias@aerifal.cx> | 2021-01-30 17:14:20 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2021-01-30 17:14:20 -0500 |
commit | 2010df0d64570db4ce29cc7df0e31f81aa26ae4a (patch) | |
tree | 6eeebcbc7f665b45936d10b2d62e0c19e6765567 /src/thread/lock_ptc.c | |
parent | 9afed99c224ab33578623744f40d31bee84ec6ba (diff) | |
download | musl-2010df0d64570db4ce29cc7df0e31f81aa26ae4a.tar.gz musl-2010df0d64570db4ce29cc7df0e31f81aa26ae4a.tar.xz musl-2010df0d64570db4ce29cc7df0e31f81aa26ae4a.zip |
preserve errno across free
as an outcome of Austin Group issue #385, future versions of the standard will require free not to alter the value of errno. save and restore it individually around the calls to madvise and munmap so that the cost is not imposed on calls to free that do not result in any syscall.
Diffstat (limited to 'src/thread/lock_ptc.c')
0 files changed, 0 insertions, 0 deletions