mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 03:24: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:
parent
f2c9ef3763
commit
3904541938
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue