Kernel/LibC: Implement pthread_self

This commit is contained in:
2025-04-02 02:39:14 +03:00
parent 691c9fe8e0
commit 5549696c3a
4 changed files with 12 additions and 0 deletions

View File

@@ -2121,6 +2121,11 @@ namespace Kernel
ASSERT_NOT_REACHED();
}
BAN::ErrorOr<long> Process::sys_pthread_self()
{
return Thread::current().tid();
}
BAN::ErrorOr<long> Process::sys_tcgetpgrp(int fd)
{
LockGuard _(m_process_lock);