4.115
Last change
on this file since 9b4422a2 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:
714 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 | |
---|
16 | int devFS_open( |
---|
17 | rtems_libio_t *iop, |
---|
18 | const char *pathname, |
---|
19 | int oflag, |
---|
20 | mode_t mode |
---|
21 | ) |
---|
22 | { |
---|
23 | rtems_libio_open_close_args_t args; |
---|
24 | rtems_status_code status; |
---|
25 | const devFS_node *np = iop->pathinfo.node_access; |
---|
26 | |
---|
27 | args.iop = iop; |
---|
28 | args.flags = iop->flags; |
---|
29 | args.mode = mode; |
---|
30 | |
---|
31 | status = rtems_io_open( |
---|
32 | np->major, |
---|
33 | np->minor, |
---|
34 | (void *) &args |
---|
35 | ); |
---|
36 | |
---|
37 | return rtems_deviceio_errno(status); |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.