Kernel/LibC: Implement sigaltstack

This commit is contained in:
2025-08-20 20:17:49 +03:00
parent def236b7cd
commit 0dfe0b7023
10 changed files with 109 additions and 8 deletions

View File

@@ -176,3 +176,10 @@ int sigwait(const sigset_t* __restrict set, int* __restrict sig)
return errno;
return 0;
}
int sigaltstack(const stack_t* __restrict ss, stack_t* __restrict oss)
{
if (syscall(SYS_SIGALTSTACK, ss, oss) == -1)
return errno;
return 0;
}