Changeset 558a5f4 in rtems


Ignore:
Timestamp:
Jun 2, 2010, 12:47:15 AM (9 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
042a442
Parents:
dfce6724
Message:

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

  • fileio/init.c: Update to new mount API.
  • iostream/init.cc: Hack to work around confdefs.h in C++.
  • iostream/system.h: Add comment about base miniIMFS.
Location:
testsuites/samples
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    rdfce6724 r558a5f4  
     12010-06-02      Chris Johns <chrisj@rtems.org>
     2
     3        * fileio/init.c: Update to new mount API.
     4        * iostream/init.cc: Hack to work around confdefs.h in C++.
     5        * iostream/system.h: Add comment about base miniIMFS.
     6
    172010-04-04      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • testsuites/samples/fileio/init.c

    rdfce6724 r558a5f4  
    4545fstab_t fs_table[] = {
    4646  {
    47     "/dev/hda1","/mnt/hda1",
    48     &msdos_ops, RTEMS_FILESYSTEM_READ_WRITE,
     47    "/dev/hda1","/mnt/hda1", "dosfs",
     48    RTEMS_FILESYSTEM_READ_WRITE,
    4949    FSMOUNT_MNT_OK | FSMOUNT_MNTPNT_CRTERR | FSMOUNT_MNT_FAILED,
    5050    0
    5151  },
    5252  {
    53     "/dev/hda2","/mnt/hda2",
    54     &msdos_ops, RTEMS_FILESYSTEM_READ_WRITE,
     53    "/dev/hda2","/mnt/hda2", "dosfs",
     54    RTEMS_FILESYSTEM_READ_WRITE,
    5555    FSMOUNT_MNT_OK | FSMOUNT_MNTPNT_CRTERR | FSMOUNT_MNT_FAILED,
    5656    0
    5757  },
    5858  {
    59     "/dev/hda3","/mnt/hda3",
    60     &msdos_ops, RTEMS_FILESYSTEM_READ_WRITE,
     59    "/dev/hda3","/mnt/hda3", "dosfs",
     60    RTEMS_FILESYSTEM_READ_WRITE,
    6161    FSMOUNT_MNT_OK | FSMOUNT_MNTPNT_CRTERR | FSMOUNT_MNT_FAILED,
    6262    0
    6363  },
    6464  {
    65     "/dev/hda4","/mnt/hda4",
    66     &msdos_ops, RTEMS_FILESYSTEM_READ_WRITE,
     65    "/dev/hda4","/mnt/hda4", "dosfs",
     66    RTEMS_FILESYSTEM_READ_WRITE,
    6767    FSMOUNT_MNT_OK | FSMOUNT_MNTPNT_CRTERR | FSMOUNT_MNT_FAILED,
    6868    0
    6969  },
    7070  {
    71     "/dev/hdc1","/mnt/hdc1",
    72     &msdos_ops, RTEMS_FILESYSTEM_READ_WRITE,
     71    "/dev/hdc1","/mnt/hdc1", "dosfs",
     72    RTEMS_FILESYSTEM_READ_WRITE,
    7373    FSMOUNT_MNT_OK | FSMOUNT_MNTPNT_CRTERR | FSMOUNT_MNT_FAILED,
    7474    0
    7575  },
    7676  {
    77     "/dev/hdc2","/mnt/hdc2",
    78     &msdos_ops, RTEMS_FILESYSTEM_READ_WRITE,
     77    "/dev/hdc2","/mnt/hdc2", "dosfs",
     78    RTEMS_FILESYSTEM_READ_WRITE,
    7979    FSMOUNT_MNT_OK | FSMOUNT_MNTPNT_CRTERR | FSMOUNT_MNT_FAILED,
    8080    0
    8181  },
    8282  {
    83     "/dev/hdc3","/mnt/hdc3",
    84     &msdos_ops, RTEMS_FILESYSTEM_READ_WRITE,
     83    "/dev/hdc3","/mnt/hdc3", "dosfs",
     84    RTEMS_FILESYSTEM_READ_WRITE,
    8585    FSMOUNT_MNT_OK | FSMOUNT_MNTPNT_CRTERR | FSMOUNT_MNT_FAILED,
    8686    0
    8787  },
    8888  {
    89     "/dev/hdc4","/mnt/hdc4",
    90     &msdos_ops, RTEMS_FILESYSTEM_READ_WRITE,
     89    "/dev/hdc4","/mnt/hdc4", "dosfs",
     90    RTEMS_FILESYSTEM_READ_WRITE,
    9191    FSMOUNT_MNT_OK | FSMOUNT_MNTPNT_CRTERR | FSMOUNT_MNT_FAILED,
    9292    0
     
    322322    failed = true;
    323323  }
    324   else if (toupper(suffix) == 'K') {
     324  else if (toupper((int)suffix) == 'K') {
    325325    size *= 1024;
    326326  }
    327   else if (toupper(suffix) == 'M') {
     327  else if (toupper((int)suffix) == 'M') {
    328328    size *= 1024UL*1024UL;
    329329  }
    330   else if (isalpha(suffix)) {
     330  else if (isalpha((int)suffix)) {
    331331    failed = true;
    332332  }
     
    744744#define CONFIGURE_SHELL_COMMANDS_ALL
    745745#define CONFIGURE_SHELL_MOUNT_MSDOS
     746#define CONFIGURE_SHELL_MOUNT_RFS
     747#define CONFIGURE_SHELL_DEBUGRFS
    746748
    747749#include <rtems/shellconfig.h>
  • testsuites/samples/iostream/init.cc

    rdfce6724 r558a5f4  
    2121 */
    2222
     23extern "C" {
     24
    2325#define CONFIGURE_INIT
    2426#include "system.h"
     27}
    2528
    2629#if BSP_SMALL_MEMORY
     
    3134
    3235#include <stdlib.h>
     36
    3337
    3438rtems_task Init(
  • testsuites/samples/iostream/system.h

    rdfce6724 r558a5f4  
    3333#define CONFIGURE_EXTRA_TASK_STACKS       RTEMS_MINIMUM_STACK_SIZE
    3434
     35/* Only remove when this macro is removed from confdefs.h. It tests it. */
    3536#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
    3637
Note: See TracChangeset for help on using the changeset viewer.