source: rtems/cpukit/libfs/src/dosfs/msdos_node_type.c @ 53da07e

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