1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

LibC: Don't truncate arguments for ioctl() on x86_64

Among other things this makes "less" work on x86_64.
This commit is contained in:
Gunnar Beutner 2021-07-22 00:09:50 +02:00 committed by Ali Mohammad Pur
parent f2c9ef3763
commit 3904541938

View file

@ -16,7 +16,7 @@ int ioctl(int fd, unsigned request, ...)
{
va_list ap;
va_start(ap, request);
unsigned arg = va_arg(ap, unsigned);
FlatPtr arg = va_arg(ap, FlatPtr);
int rc = syscall(SC_ioctl, fd, request, arg);
va_end(ap);
__RETURN_WITH_ERRNO(rc, rc, -1);