mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
linux: Add generic syscall implementation
It allows also to remove hppa specific implementation and simplify riscv implementation a bit.
This commit is contained in:
@@ -24,8 +24,8 @@ syscall (long int syscall_number, long int arg1, long int arg2, long int arg3,
|
||||
{
|
||||
long int ret;
|
||||
|
||||
ret = INTERNAL_SYSCALL_NCS (syscall_number, 7, arg1, arg2, arg3, arg4,
|
||||
arg5, arg6, arg7);
|
||||
ret = INTERNAL_SYSCALL_NCS_CALL (syscall_number, arg1, arg2, arg3, arg4,
|
||||
arg5, arg6, arg7);
|
||||
|
||||
if (INTERNAL_SYSCALL_ERROR_P (ret))
|
||||
return __syscall_error (ret);
|
||||
|
||||
Reference in New Issue
Block a user