Changeset 520705c in rtems


Ignore:
Timestamp:
Feb 24, 2010, 9:30:40 AM (10 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
0d96991
Parents:
346d830
Message:

2010-02-24 Chris Johns <chrisj@…>

  • libmisc/shell/main_msdosfmt.c, libmisc/shell/shellconfig.h: Fix the alias as I did understand how it worked.
  • libfs/src/dosfs/msdos_format.c: Test for a block device.
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r346d830 r520705c  
     12010-02-24      Chris Johns <chrisj@rtems.org>
     2
     3        * libmisc/shell/main_msdosfmt.c, libmisc/shell/shellconfig.h: Fix
     4        the alias as I did understand how it worked.
     5
     6        * libfs/src/dosfs/msdos_format.c: Test for a block device.
     7
    182010-02-23      Chris Johns <chrisj@rtems.org>
    29
  • cpukit/libfs/src/dosfs/msdos_format.c

    r346d830 r520705c  
    911911  /* rtems feature: no block devices, all are character devices */
    912912  if ((ret_val == 0) &&
    913       (!S_ISCHR(stat_buf.st_mode))) {
     913      (!S_ISBLK(stat_buf.st_mode))) {
    914914    errno = ENOTTY;
    915915    ret_val = -1;
  • cpukit/libmisc/shell/main_msdosfmt.c

    r346d830 r520705c  
    171171  "files",                                   /* topic */
    172172  rtems_shell_main_msdos_format,             /* command */
    173   "msdosfmt",                                /* alias */
     173  NULL,                                      /* alias */
    174174  NULL                                       /* next */
    175175};
     176
     177rtems_shell_cmd_t rtems_shell_MSDOSFMT_Alias = {
     178  "msdosfmt",                                /* name */
     179  NULL,                                      /* usage */
     180  "files",                                   /* topic */
     181  NULL,                                      /* command */
     182  &rtems_shell_MSDOSFMT_Command,             /* alias */
     183  NULL                                       /* next */
     184};
  • cpukit/libmisc/shell/shellconfig.h

    r346d830 r520705c  
    5353extern rtems_shell_cmd_t rtems_shell_MKRFS_Command;
    5454extern rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command;
     55extern rtems_shell_cmd_t rtems_shell_MSDOSFMT_Alias;
    5556extern rtems_shell_cmd_t rtems_shell_MV_Command;
    5657extern rtems_shell_cmd_t rtems_shell_RM_Command;
     
    304305        defined(CONFIGURE_SHELL_COMMAND_MSDOSFMT)
    305306      &rtems_shell_MSDOSFMT_Command,
     307      &rtems_shell_MSDOSFMT_Alias,
    306308    #endif
    307309    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
Note: See TracChangeset for help on using the changeset viewer.