Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
7cb44cd3de59dc3acf5428c19a6a882aa896e6d0
/
.
/
src
/
misc
/
ioctl.c
blob: 5a41f0e846456e5647500c0da4c23f5b39065dc6 [
file
] [
log
] [
blame
]
#include
<sys/ioctl.h>
#include
<stdarg.h>
#include
"syscall.h"
int
ioctl
(
int
fd
,
int
req
,
...)
{
void
*
arg
;
va_list ap
;
va_start
(
ap
,
req
);
arg
=
va_arg
(
ap
,
void
*);
va_end
(
ap
);
return
syscall
(
SYS_ioctl
,
fd
,
req
,
arg
);
}