From 9b05600b2cc0407688548fe479fecb7ebfb5bbee Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 14 Jun 2000 20:22:31 +0000 Subject: *** empty log message *** --- cpukit/libcsupport/src/ioctl.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'cpukit/libcsupport/src/ioctl.c') diff --git a/cpukit/libcsupport/src/ioctl.c b/cpukit/libcsupport/src/ioctl.c index af986743dd..8d84a26a15 100644 --- a/cpukit/libcsupport/src/ioctl.c +++ b/cpukit/libcsupport/src/ioctl.c @@ -16,19 +16,27 @@ #include "libio_.h" +#include + 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(). */ -- cgit v1.2.3