diff options
Diffstat (limited to 'cpukit/libfs/src/devfs/devioctl.c')
-rw-r--r-- | cpukit/libfs/src/devfs/devioctl.c | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/cpukit/libfs/src/devfs/devioctl.c b/cpukit/libfs/src/devfs/devioctl.c index bca82509df..e1d62c4d78 100644 --- a/cpukit/libfs/src/devfs/devioctl.c +++ b/cpukit/libfs/src/devfs/devioctl.c @@ -1,41 +1,24 @@ -#if HAVE_CONFIG_H /* * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. */ -#include "config.h" +#if HAVE_CONFIG_H + #include "config.h" #endif -#include <rtems.h> -#include <rtems/io.h> - #include "devfs.h" +#include <rtems/deviceio.h> + int devFS_ioctl( rtems_libio_t *iop, ioctl_command_t command, void *buffer ) { - rtems_libio_ioctl_args_t args; - rtems_status_code status; const devFS_node *np = iop->pathinfo.node_access; - args.iop = iop; - args.command = command; - args.buffer = buffer; - - status = rtems_io_control( - np->major, - np->minor, - (void *) &args - ); - - if ( status ) - return rtems_deviceio_errno(status); - - return args.ioctl_return; + return rtems_deviceio_control( iop, command, buffer, np->major, np->minor ); } - |