LibC: Add mmap_with_name() that names the allocation immediately.

This allows us to skip the separate call to set_mmap_name() in code that
we control, e.g malloc() and GraphicsBitmap.
This commit is contained in:
Andreas Kling 2019-05-19 15:54:56 +02:00
commit 189b342e6f
Notes: sideshowbarker 2024-07-19 14:01:04 +09:00
8 changed files with 28 additions and 13 deletions

View file

@ -134,6 +134,7 @@ struct SC_mmap_params {
int32_t flags;
int32_t fd;
int32_t offset; // FIXME: 64-bit off_t?
const char* name { nullptr };
};
struct SC_select_params {