diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 20:22:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 20:22:31 +0000 |
commit | 9b05600b2cc0407688548fe479fecb7ebfb5bbee (patch) | |
tree | 35c7346dcddad669e904513b4c2db004ae97eb45 /cpukit/libcsupport/src/ioctl.c | |
parent | Added include of options.h since it was not being picked up (diff) | |
download | rtems-9b05600b2cc0407688548fe479fecb7ebfb5bbee.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'cpukit/libcsupport/src/ioctl.c')
-rw-r--r-- | cpukit/libcsupport/src/ioctl.c | 14 |
1 files changed, 11 insertions, 3 deletions
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 <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(). */ |