mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
Kernel+LibC: Add exit_thread() syscall.
This commit is contained in:
parent
02b69cf06a
commit
d07be1087a
6 changed files with 26 additions and 0 deletions
|
@ -451,6 +451,12 @@ int create_thread(int(*entry)(void*), void* argument)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int exit_thread(int code)
|
||||
{
|
||||
int rc = syscall(SC_exit_thread, code);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int ftruncate(int fd, off_t length)
|
||||
{
|
||||
int rc = syscall(SC_ftruncate, fd, length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue