]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld_malloc.c: cleanup morepages().
authorkib <kib@FreeBSD.org>
Thu, 16 May 2019 13:13:33 +0000 (13:13 +0000)
committerkib <kib@FreeBSD.org>
Thu, 16 May 2019 13:13:33 +0000 (13:13 +0000)
commit7b940212e115801d630ee28797b7c27363c2cfe2
tree8b07d44af8358257a810bb516401768df9b673bd
parent6e3417b2d8d0481ecbcf0a4550eaed13a7a43aea
rtld_malloc.c: cleanup morepages().

Use roundup2() and rounddown2() instead of inlining them.
Get rid of the fd local variable, use literal -1 for the mmap argument.
Use MAP_FAILED as mmap(2) failure indicator.
After that, apply some style.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
libexec/rtld-elf/rtld_malloc.c