diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-07-01 20:05:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-07-01 20:05:11 +0000 |
commit | 8f33007a375fa81d64faa99b44d94004a900cede (patch) | |
tree | 86e287d7273597508a3348846991d6dafcae45c5 /nuttx/examples/nsh/nsh.h | |
parent | 555fff8ebff7d113376f6b5b8dbac1ff82cf0fb0 (diff) | |
download | nuttx-8f33007a375fa81d64faa99b44d94004a900cede.tar.gz nuttx-8f33007a375fa81d64faa99b44d94004a900cede.tar.bz2 nuttx-8f33007a375fa81d64faa99b44d94004a900cede.zip |
add set and unset
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@306 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh.h')
-rw-r--r-- | nuttx/examples/nsh/nsh.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/nuttx/examples/nsh/nsh.h b/nuttx/examples/nsh/nsh.h index fef113e45..fc9f807d2 100644 --- a/nuttx/examples/nsh/nsh.h +++ b/nuttx/examples/nsh/nsh.h @@ -72,22 +72,29 @@ extern const char g_fmtcmdoutofmemory[]; ****************************************************************************/ #if CONFIG_NFILE_DESCRIPTORS > 0 -void cmd_cat(int argc, char **argv); -void cmd_cp(int argc, char **argv); +extern void cmd_cat(int argc, char **argv); +extern void cmd_cp(int argc, char **argv); #endif -void cmd_exec(int argc, char **argv); +extern void cmd_echo(int argc, char **argv); +extern void cmd_exec(int argc, char **argv); #if CONFIG_NFILE_DESCRIPTORS > 0 -void cmd_ls(int argc, char **argv); +extern void cmd_ls(int argc, char **argv); #endif #if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 -void cmd_mkdir(int argc, char **argv); -void cmd_mount(int argc, char **argv); +extern void cmd_mkdir(int argc, char **argv); +extern void cmd_mount(int argc, char **argv); +#endif +extern void cmd_ps(int argc, char **argv); +#ifndef CONFIG_DISABLE_ENVIRON +extern void cmd_set(int argc, char **argv); #endif -void cmd_ps(int argc, char **argv); #if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 -void cmd_rm(int argc, char **argv); -void cmd_rmdir(int argc, char **argv); -void cmd_umount(int argc, char **argv); +extern void cmd_rm(int argc, char **argv); +extern void cmd_rmdir(int argc, char **argv); +extern void cmd_umount(int argc, char **argv); +#endif +#ifndef CONFIG_DISABLE_ENVIRON +extern void cmd_unset(int argc, char **argv); #endif #endif /* __NSH_H */ |