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:
941 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 "devfs.h" |
---|
12 | |
---|
13 | void devFS_Show(void) |
---|
14 | { |
---|
15 | rtems_filesystem_location_info_t *rootloc = &rtems_filesystem_root->location; |
---|
16 | |
---|
17 | if (rootloc->ops == &devFS_ops) { |
---|
18 | const devFS_data *data = devFS_get_data(rootloc); |
---|
19 | size_t i = 0; |
---|
20 | size_t n = data->count; |
---|
21 | devFS_node *nodes = data->nodes; |
---|
22 | |
---|
23 | for (i = 0; i < n; ++i) { |
---|
24 | devFS_node *current = nodes + i; |
---|
25 | |
---|
26 | if (current->name != NULL) { |
---|
27 | size_t j = 0; |
---|
28 | size_t m = current->namelen; |
---|
29 | |
---|
30 | printk("/"); |
---|
31 | for (j = 0; j < m; ++j) { |
---|
32 | printk("%c", current->name [j]); |
---|
33 | } |
---|
34 | printk( |
---|
35 | " %lu %lu\n", |
---|
36 | (unsigned long) current->major, |
---|
37 | (unsigned long) current->minor |
---|
38 | ); |
---|
39 | } |
---|
40 | } |
---|
41 | } |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.