summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/dosfs/msdos.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-21 20:12:28 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-22 07:52:40 +0100
commitc625a641218fbda23582354b3cfc7a7c7a4e4287 (patch)
tree82853d039ebb88fb4e7afe0b572c1d072a3f4d00 /cpukit/libfs/src/dosfs/msdos.h
parentpowerpc: Fix AltiVec VSCR save/restore (diff)
downloadrtems-c625a641218fbda23582354b3cfc7a7c7a4e4287.tar.bz2
Filesystem: Delete node type operation
Use the fstat handler instead.
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos.h')
-rw-r--r--cpukit/libfs/src/dosfs/msdos.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos.h b/cpukit/libfs/src/dosfs/msdos.h
index baa34d7a6e..e6cffbba91 100644
--- a/cpukit/libfs/src/dosfs/msdos.h
+++ b/cpukit/libfs/src/dosfs/msdos.h
@@ -86,17 +86,11 @@ extern const rtems_filesystem_file_handlers_r msdos_file_handlers;
#define MSDOS_VOLUME_SEMAPHORE_TIMEOUT RTEMS_NO_TIMEOUT
/* Node types */
-#define MSDOS_DIRECTORY RTEMS_FILESYSTEM_DIRECTORY
-#define MSDOS_REGULAR_FILE RTEMS_FILESYSTEM_MEMORY_FILE
-#define MSDOS_HARD_LINK RTEMS_FILESYSTEM_HARD_LINK /* pseudo type */
-
-/**
- * @brief Type of node that loc refers to.
- *
- * The following returns the type of node that the loc refers to.
- *
- */
-typedef rtems_filesystem_node_types_t msdos_node_type_t;
+typedef enum {
+ MSDOS_DIRECTORY = 0,
+ MSDOS_REGULAR_FILE = 4,
+ MSDOS_HARD_LINK = 2 /* pseudo type */
+} msdos_node_type_t;
/*
* Macros for fetching fields from 32 bytes long FAT Directory Entry
@@ -274,10 +268,6 @@ void msdos_eval_path(rtems_filesystem_eval_path_context_t *ctx);
*/
void msdos_free_node_info(const rtems_filesystem_location_info_t *pathloc);
-rtems_filesystem_node_types_t msdos_node_type(
- const rtems_filesystem_location_info_t *loc
-);
-
/**
* @brief Routine for node creation in a MSDOS filesystem.
*