mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Add some documentation
This commit is contained in:
parent
567d8fe32d
commit
1ff037df3c
5 changed files with 177 additions and 22 deletions
6
third_party/dlmalloc/platform.inc
vendored
6
third_party/dlmalloc/platform.inc
vendored
|
@ -505,11 +505,7 @@ FORCEINLINE int win32munmap(void* ptr, size_t size) {
|
|||
* Define CALL_MREMAP
|
||||
*/
|
||||
#if HAVE_MMAP && HAVE_MREMAP
|
||||
#ifdef MREMAP
|
||||
#define CALL_MREMAP(addr, osz, nsz, mv) MREMAP((addr), (osz), (nsz), (mv))
|
||||
#else /* MREMAP */
|
||||
#define CALL_MREMAP(addr, osz, nsz, mv) MREMAP_DEFAULT((addr), (osz), (nsz), (mv))
|
||||
#endif /* MREMAP */
|
||||
#define CALL_MREMAP(addr, osz, nsz, mv) ({ int olderr = errno; void *res = mremap((addr), (osz), (nsz), (mv)); if (res == MAP_FAILED) errno = olderr; res; })
|
||||
#else /* HAVE_MMAP && HAVE_MREMAP */
|
||||
#define CALL_MREMAP(addr, osz, nsz, mv) MAP_FAILED
|
||||
#endif /* HAVE_MMAP && HAVE_MREMAP */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue