source: rtems/cpukit/libfs/src/devfs/devioctl.c @ a1c6b96a

4.115
Last change on this file since a1c6b96a was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 738 bytes
Line 
1#if HAVE_CONFIG_H
2/*
3 *  The license and distribution terms for this file may be
4 *  found in the file LICENSE in this distribution or at
5 *  http://www.rtems.com/license/LICENSE.
6 */
7
8#include "config.h"
9#endif
10
11#include <rtems.h>
12#include <rtems/io.h>
13
14#include "devfs.h"
15
16int devFS_ioctl(
17  rtems_libio_t *iop,
18  uint32_t       command,
19  void          *buffer
20)
21{
22  rtems_libio_ioctl_args_t  args;
23  rtems_status_code         status;
24  const devFS_node *np = iop->pathinfo.node_access;
25
26  args.iop     = iop;
27  args.command = command;
28  args.buffer  = buffer;
29
30  status = rtems_io_control(
31    np->major,
32    np->minor,
33    (void *) &args
34  );
35
36  if ( status )
37    return rtems_deviceio_errno(status);
38
39  return args.ioctl_return;
40}
41
Note: See TracBrowser for help on using the repository browser.