Changeset bea7043 in rtems


Ignore:
Timestamp:
Feb 24, 2012, 12:42:06 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
4116fce6
Parents:
a76c2373
git-author:
Sebastian Huber <sebastian.huber@…> (02/24/12 12:42:06)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/13/12 11:23:45)
Message:

Filesystem: Change node type enum values

Move the RTEMS_FILESYSTEM_INVALID_NODE_TYPE to the end. This makes it
possible to use this enum easily as an array index. Most comparisons
are made against RTEMS_FILESYSTEM_DIRECTORY. A value of zero allows on
some architectures simpler branch operations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    ra76c2373 rbea7043  
    5454 */
    5555typedef enum {
    56   RTEMS_FILESYSTEM_INVALID_NODE_TYPE,
    5756  RTEMS_FILESYSTEM_DIRECTORY,
    5857  RTEMS_FILESYSTEM_DEVICE,
    5958  RTEMS_FILESYSTEM_HARD_LINK,
    6059  RTEMS_FILESYSTEM_SYM_LINK,
    61   RTEMS_FILESYSTEM_MEMORY_FILE
     60  RTEMS_FILESYSTEM_MEMORY_FILE,
     61  RTEMS_FILESYSTEM_INVALID_NODE_TYPE
    6262} rtems_filesystem_node_types_t;
    6363
Note: See TracChangeset for help on using the changeset viewer.