1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

Kernel: Use Userspace<T> for the get_thread_name syscall

This commit is contained in:
Brian Gianforcaro 2020-08-09 15:29:55 -07:00 committed by Andreas Kling
parent 9652b0ae2b
commit e073f2b59e
2 changed files with 2 additions and 2 deletions

View file

@ -309,7 +309,7 @@ public:
int sys$join_thread(pid_t tid, void** exit_value); int sys$join_thread(pid_t tid, void** exit_value);
int sys$detach_thread(pid_t tid); int sys$detach_thread(pid_t tid);
int sys$set_thread_name(pid_t tid, Userspace<const char*> buffer, size_t buffer_size); int sys$set_thread_name(pid_t tid, Userspace<const char*> buffer, size_t buffer_size);
int sys$get_thread_name(pid_t tid, char* buffer, size_t buffer_size); int sys$get_thread_name(pid_t tid, Userspace<char*> buffer, size_t buffer_size);
int sys$rename(Userspace<const Syscall::SC_rename_params*>); int sys$rename(Userspace<const Syscall::SC_rename_params*>);
int sys$mknod(Userspace<const Syscall::SC_mknod_params*>); int sys$mknod(Userspace<const Syscall::SC_mknod_params*>);
int sys$shbuf_create(int, void** buffer); int sys$shbuf_create(int, void** buffer);

View file

@ -189,7 +189,7 @@ int Process::sys$set_thread_name(pid_t tid, Userspace<const char*> user_name, si
return 0; return 0;
} }
int Process::sys$get_thread_name(pid_t tid, char* buffer, size_t buffer_size) int Process::sys$get_thread_name(pid_t tid, Userspace<char*> buffer, size_t buffer_size)
{ {
REQUIRE_PROMISE(thread); REQUIRE_PROMISE(thread);
if (buffer_size == 0) if (buffer_size == 0)