1
Fork 0
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:
Andreas Kling 2020-07-27 18:42:10 +02:00
parent 0b287c18b9
commit b5f54d4153
5 changed files with 22 additions and 1 deletions

View file

@ -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);