1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

Kernel+LibC: Add get_process_name() syscall

It does exactly what it sounds like:

    int get_process_name(char* buffer, int buffer_size);
This commit is contained in:
Andreas Kling 2019-08-15 20:55:10 +02:00
parent d64e698bf1
commit 6ad3efe067
6 changed files with 29 additions and 1 deletions

View file

@ -561,4 +561,11 @@ void dump_backtrace()
{
syscall(SC_dump_backtrace);
}
int get_process_name(char* buffer, int buffer_size)
{
int rc = syscall(SC_get_process_name, buffer, buffer_size);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}