Add sys$set_mmap_name and use it from LibC's malloc.

It's nice to be able to identify mmap's in /proc/PID/vm.
This commit is contained in:
Andreas Kling 2018-10-28 09:57:22 +01:00
commit 1d5afbdffc
Notes: sideshowbarker 2024-07-19 18:37:07 +09:00
7 changed files with 35 additions and 8 deletions

View file

@ -98,6 +98,7 @@ public:
pid_t sys$waitpid(pid_t, int* wstatus, int options);
void* sys$mmap(void*, size_t size);
int sys$munmap(void*, size_t size);
int sys$set_mmap_name(void*, size_t, const char*);
int sys$get_dir_entries(int fd, void*, size_t);
int sys$getcwd(char*, size_t);
int sys$chdir(const char*);