diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-21 20:12:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-22 07:52:40 +0100 |
commit | c625a641218fbda23582354b3cfc7a7c7a4e4287 (patch) | |
tree | 82853d039ebb88fb4e7afe0b572c1d072a3f4d00 /cpukit/libfs/src/dosfs/msdos_node_type.c | |
parent | powerpc: Fix AltiVec VSCR save/restore (diff) | |
download | rtems-c625a641218fbda23582354b3cfc7a7c7a4e4287.tar.bz2 |
Filesystem: Delete node type operation
Use the fstat handler instead.
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos_node_type.c')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_node_type.c | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_node_type.c b/cpukit/libfs/src/dosfs/msdos_node_type.c deleted file mode 100644 index 2aa8d2ec72..0000000000 --- a/cpukit/libfs/src/dosfs/msdos_node_type.c +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @file - * - * @brief Type of Node that Loc Refers To - * @ingroup libfs_msdos MSDOS FileSystem - */ - -/* - * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia - * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru> - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -#include <unistd.h> -#include <errno.h> -#include <stdlib.h> -#include <rtems.h> - -#include <rtems/libio_.h> - -#include "fat.h" -#include "fat_fat_operations.h" -#include "fat_file.h" - -#include "msdos.h" - -/* msdos_node_type -- - * Determine type of the node that the loc refers to. - * - * PARAMETERS: - * loc - node description - * - * RETURNS: - * node type - * - */ -rtems_filesystem_node_types_t -msdos_node_type(const rtems_filesystem_location_info_t *loc) -{ - fat_file_fd_t *fat_fd; - - /* - * we don't need to obtain the volume semaphore here because node_type_h - * call always follows evalpath_h call(hence link increment occured) and - * hence node_access memory can't be freed during processing node_type_h - * call - */ - fat_fd = loc->node_access; - - return fat_fd->fat_file_type; -} |