4.115
Last change
on this file since 9b83a66 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:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * IMFS Node Removal Handler |
---|
3 | * |
---|
4 | * This file contains the handler used to remove a node when a file type |
---|
5 | * does not require special actions. |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989-1999. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * Modifications to support reference counting in the file system are |
---|
11 | * Copyright (c) 2012 embedded brains GmbH. |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include "imfs.h" |
---|
23 | |
---|
24 | int IMFS_rmnod( |
---|
25 | const rtems_filesystem_location_info_t *parentloc, |
---|
26 | const rtems_filesystem_location_info_t *loc |
---|
27 | ) |
---|
28 | { |
---|
29 | int rv = 0; |
---|
30 | IMFS_jnode_t *node = loc->node_access; |
---|
31 | |
---|
32 | node = (*node->control->node_remove)( |
---|
33 | node, |
---|
34 | loc->mt_entry->mt_fs_root->location.node_access |
---|
35 | ); |
---|
36 | if ( node != NULL ) { |
---|
37 | --node->reference_count; |
---|
38 | --node->st_nlink; |
---|
39 | if ( node->Parent != NULL ) { |
---|
40 | IMFS_remove_from_directory( node ); |
---|
41 | } |
---|
42 | } else { |
---|
43 | rv = -1; |
---|
44 | } |
---|
45 | |
---|
46 | return rv; |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.