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:
parent
d64e698bf1
commit
6ad3efe067
6 changed files with 29 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue