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:
parent
9652b0ae2b
commit
e073f2b59e
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue