4.115
Last change
on this file since c499856 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Type of Node that Loc Refers To |
---|
5 | * @ingroup libfs_msdos MSDOS FileSystem |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia |
---|
10 | * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru> |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <sys/types.h> |
---|
22 | #include <sys/stat.h> |
---|
23 | #include <fcntl.h> |
---|
24 | #include <unistd.h> |
---|
25 | #include <errno.h> |
---|
26 | #include <stdlib.h> |
---|
27 | #include <rtems.h> |
---|
28 | |
---|
29 | #include <rtems/libio_.h> |
---|
30 | |
---|
31 | #include "fat.h" |
---|
32 | #include "fat_fat_operations.h" |
---|
33 | #include "fat_file.h" |
---|
34 | |
---|
35 | #include "msdos.h" |
---|
36 | |
---|
37 | /* msdos_node_type -- |
---|
38 | * Determine type of the node that the loc refers to. |
---|
39 | * |
---|
40 | * PARAMETERS: |
---|
41 | * loc - node description |
---|
42 | * |
---|
43 | * RETURNS: |
---|
44 | * node type |
---|
45 | * |
---|
46 | */ |
---|
47 | rtems_filesystem_node_types_t |
---|
48 | msdos_node_type(const rtems_filesystem_location_info_t *loc) |
---|
49 | { |
---|
50 | fat_file_fd_t *fat_fd; |
---|
51 | |
---|
52 | /* |
---|
53 | * we don't need to obtain the volume semaphore here because node_type_h |
---|
54 | * call always follows evalpath_h call(hence link increment occured) and |
---|
55 | * hence node_access memory can't be freed during processing node_type_h |
---|
56 | * call |
---|
57 | */ |
---|
58 | fat_fd = loc->node_access; |
---|
59 | |
---|
60 | return fat_fd->fat_file_type; |
---|
61 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.