diff options
Diffstat (limited to 'compiler-rt/lib/scudo/standalone/common.h')
| -rw-r--r-- | compiler-rt/lib/scudo/standalone/common.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/compiler-rt/lib/scudo/standalone/common.h b/compiler-rt/lib/scudo/standalone/common.h index 89b8d11abdc..988254dc138 100644 --- a/compiler-rt/lib/scudo/standalone/common.h +++ b/compiler-rt/lib/scudo/standalone/common.h @@ -11,6 +11,9 @@ #include "internal_defs.h" +#include "fuchsia.h" +#include "linux.h" + #include <stddef.h> #include <string.h> @@ -144,20 +147,21 @@ bool getRandom(void *Buffer, uptr Length, bool Blocking = false); // - commit memory in a previously reserved space; // - commit memory at a random address. // As such, only a subset of parameters combinations is valid, which is checked -// by the function implementation. The Extra parameter allows to pass opaque +// by the function implementation. The Data parameter allows to pass opaque // platform specific data to the function. // Returns nullptr on error or dies if MAP_ALLOWNOMEM is not specified. void *map(void *Addr, uptr Size, const char *Name, uptr Flags = 0, - u64 *Extra = nullptr); + MapPlatformData *Data = nullptr); // Indicates that we are getting rid of the whole mapping, which might have -// further consequences on Extra, depending on the platform. +// further consequences on Data, depending on the platform. #define UNMAP_ALL (1U << 0) -void unmap(void *Addr, uptr Size, uptr Flags = 0, u64 *Extra = nullptr); +void unmap(void *Addr, uptr Size, uptr Flags = 0, + MapPlatformData *Data = nullptr); void releasePagesToOS(uptr BaseAddress, uptr Offset, uptr Size, - u64 *Extra = nullptr); + MapPlatformData *Data = nullptr); // Internal map & unmap fatal error. This must not call map(). void NORETURN dieOnMapUnmapError(bool OutOfMemory = false); |

