source: rtems/cpukit/libfs/src/devfs/devclose.c @ 9b4422a2

4.11
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

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: 632 bytes
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.rtems.com/license/LICENSE.
5 */
6
7#if HAVE_CONFIG_H
8#include "config.h"
9#endif
10
11#include <rtems.h>
12#include <rtems/io.h>
13
14#include "devfs.h"
15
16int devFS_close(
17  rtems_libio_t *iop
18)
19{
20  rtems_libio_open_close_args_t  args;
21  rtems_status_code              status;
22  const devFS_node *np = iop->pathinfo.node_access;
23
24  args.iop   = iop;
25  args.flags = 0;
26  args.mode  = 0;
27
28  status = rtems_io_close(
29    np->major,
30    np->minor,
31    (void *) &args
32  );
33
34  return rtems_deviceio_errno(status);
35}
36
37
Note: See TracBrowser for help on using the repository browser.