linux: Use long int for syscall return value
commit36d423e2032e98305799071b831691fc4c06deea
authorXing Li <lixing@loongson.cn>
Tue, 29 Nov 2022 11:24:43 +0000 (29 19:24 +0800)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Dec 2022 13:37:06 +0000 (7 10:37 -0300)
treee1091f68c14fc6877a0ad8cd34af0cfd79c0e42a
parent9f482b73f41a9a1bbfb173aad0733d1c824c788a
linux: Use long int for syscall return value

The linux syscall ABI returns long, so the generic syscall code for
linux should use long for the return value.

This fixes the truncation of the return value of the syscall function
when that does not fit into an int.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/syscall.c