1
0
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:
Adhemerval Zanella
2021-11-19 15:33:16 -03:00
parent 68007900be
commit 00baddbb93
4 changed files with 65 additions and 67 deletions

View File

@@ -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);