mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Kernel+LibC: Add sys$set_process_name() for changing the process name
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user