summaryrefslogtreecommitdiff
path: root/cpukit/libfs/src/imfs/imfs_directory.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-23 17:57:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-03-13 12:24:15 +0100
commit1bdff036acddbbc63aa849741abba6581549f7b6 (patch)
tree8cc1f06ac93045d8a7c35da41fd926c2d9e840f1 /cpukit/libfs/src/imfs/imfs_directory.c
parent2e0ce55bf04861e9f80bf51621286b9a1a2c5af1 (diff)
IMFS: Reference counting for nodes
The introduction of reference counting of nodes avoids the removal of open nodes and potential usage of freed memory.
Diffstat (limited to '')
-rw-r--r--cpukit/libfs/src/imfs/imfs_directory.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_directory.c b/cpukit/libfs/src/imfs/imfs_directory.c
index fc687e4331..3bbbec22fb 100644
--- a/cpukit/libfs/src/imfs/imfs_directory.c
+++ b/cpukit/libfs/src/imfs/imfs_directory.c
@@ -127,30 +127,6 @@ ssize_t imfs_dir_read(
return bytes_transferred;
}
-
-
-/*
- * imfs_dir_close
- *
- * This routine will be called by the generic close routine to cleanup any
- * resources that have been allocated for the management of the file
- */
-
-int imfs_dir_close(
- rtems_libio_t *iop
-)
-{
- /*
- * The generic close routine handles the deallocation of the file control
- * and associated memory. At present the imfs_dir_close simply
- * returns a successful completion status.
- */
-
- return 0;
-}
-
-
-
/*
* imfs_dir_lseek
*