mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
fix(userspace/libc): fix wrong implementation of ioctl()
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
parent
9da2650486
commit
42b8b6895f
@ -22,9 +22,11 @@
|
||||
|
||||
export int ioctl(int fd, unsigned long op, ...)
|
||||
{
|
||||
void *arg;
|
||||
va_list args;
|
||||
va_start(args, op);
|
||||
int ret = call_ioctl(fd, op, args);
|
||||
arg = va_arg(args, void *);
|
||||
va_end(args);
|
||||
int ret = call_ioctl(fd, op, arg);
|
||||
return __check_errno(ret, -1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user