summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/ioctl.c')
-rw-r--r--c/src/lib/libc/ioctl.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/c/src/lib/libc/ioctl.c b/c/src/lib/libc/ioctl.c
index af986743dd..8d84a26a15 100644
--- a/c/src/lib/libc/ioctl.c
+++ b/c/src/lib/libc/ioctl.c
@@ -16,19 +16,27 @@
#include "libio_.h"
+#include <unistd.h>
+
int ioctl(
- int fd,
- unsigned32 command,
- void * buffer
+ int fd,
+ int command,
+ ...
)
{
+ va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
+ void *buffer;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
+ va_start(ap, command);
+
+ buffer = va_arg(ap, void *);
+
/*
* Now process the ioctl().
*/