diff options
Diffstat (limited to 'nuttx/examples/nsh/nsh.h')
-rw-r--r-- | nuttx/examples/nsh/nsh.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/examples/nsh/nsh.h b/nuttx/examples/nsh/nsh.h index 39514656a..659a59d17 100644 --- a/nuttx/examples/nsh/nsh.h +++ b/nuttx/examples/nsh/nsh.h @@ -1,7 +1,7 @@ /**************************************************************************** - * nsh.h + * examples/nsh/nsh.h * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -118,8 +118,10 @@ extern void cmd_ls(FAR void *handle, int argc, char **argv); #endif #if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 extern void cmd_mkdir(FAR void *handle, int argc, char **argv); +#ifdef CONFIG_FS_FAT /* Need at least one filesytem in configuration */ extern void cmd_mount(FAR void *handle, int argc, char **argv); #endif +#endif extern void cmd_ps(FAR void *handle, int argc, char **argv); #ifndef CONFIG_DISABLE_ENVIRON extern void cmd_set(FAR void *handle, int argc, char **argv); @@ -127,8 +129,10 @@ extern void cmd_set(FAR void *handle, int argc, char **argv); #if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 extern void cmd_rm(FAR void *handle, int argc, char **argv); extern void cmd_rmdir(FAR void *handle, int argc, char **argv); +#ifdef CONFIG_FS_FAT /* Need at least one filesytem in configuration */ extern void cmd_umount(FAR void *handle, int argc, char **argv); #endif +#endif #ifndef CONFIG_DISABLE_ENVIRON extern void cmd_unset(FAR void *handle, int argc, char **argv); #endif |