mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Kernel+LibC: Add sys$set_process_name() for changing the process name
This commit is contained in:
parent
0b287c18b9
commit
b5f54d4153
5 changed files with 22 additions and 1 deletions
|
@ -683,6 +683,12 @@ int get_process_name(char* buffer, int buffer_size)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int set_process_name(const char* name, size_t name_length)
|
||||
{
|
||||
int rc = syscall(SC_set_process_name, name, name_length);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int chroot(const char* path)
|
||||
{
|
||||
return chroot_with_mount_flags(path, -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue