mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ __BEGIN_DECLS
|
|||
|
||||
extern char** environ;
|
||||
|
||||
int get_process_name(char* buffer, int buffer_size);
|
||||
void dump_backtrace();
|
||||
int fsync(int fd);
|
||||
void sysbeep();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue