source: rtems/cpukit/libmisc/shell/shellconfig.h @ 9a77af8

4.104.115
Last change on this file since 9a77af8 was 520705c, checked in by Chris Johns <chrisj@…>, on 02/24/10 at 09:30:40

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.
  • Property mode set to 100644
File size: 16.7 KB
Line 
1/*
2 *  RTEMS Shell Command Set Configuration
3 *
4 *  COPYRIGHT (c) 1989-2007.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#ifndef _RTEMS_SHELL_CONFIG_h
15#define _RTEMS_SHELL_CONFIG_h
16
17#include <rtems/shell.h>
18
19/*
20 *  Externs for all command definition structures
21 */
22extern rtems_shell_cmd_t rtems_shell_HELP_Command;
23extern rtems_shell_cmd_t rtems_shell_ALIAS_Command;
24extern rtems_shell_cmd_t rtems_shell_TIME_Command;
25extern rtems_shell_cmd_t rtems_shell_LOGOFF_Command;
26extern rtems_shell_cmd_t rtems_shell_SETENV_Command;
27extern rtems_shell_cmd_t rtems_shell_GETENV_Command;
28extern rtems_shell_cmd_t rtems_shell_UNSETENV_Command;
29
30extern rtems_shell_cmd_t rtems_shell_MDUMP_Command;
31extern rtems_shell_cmd_t rtems_shell_WDUMP_Command;
32extern rtems_shell_cmd_t rtems_shell_MEDIT_Command;
33extern rtems_shell_cmd_t rtems_shell_MFILL_Command;
34extern rtems_shell_cmd_t rtems_shell_MMOVE_Command;
35
36extern rtems_shell_cmd_t rtems_shell_JOEL_Command;
37extern rtems_shell_cmd_t rtems_shell_DATE_Command;
38extern rtems_shell_cmd_t rtems_shell_ECHO_Command;
39extern rtems_shell_cmd_t rtems_shell_SLEEP_Command;
40extern rtems_shell_cmd_t rtems_shell_ID_Command;
41extern rtems_shell_cmd_t rtems_shell_TTY_Command;
42extern rtems_shell_cmd_t rtems_shell_WHOAMI_Command;
43
44extern rtems_shell_cmd_t rtems_shell_CP_Command;
45extern rtems_shell_cmd_t rtems_shell_PWD_Command;
46extern rtems_shell_cmd_t rtems_shell_LS_Command;
47extern rtems_shell_cmd_t rtems_shell_CHDIR_Command;
48extern rtems_shell_cmd_t rtems_shell_MKDIR_Command;
49extern rtems_shell_cmd_t rtems_shell_RMDIR_Command;
50extern rtems_shell_cmd_t rtems_shell_CHROOT_Command;
51extern rtems_shell_cmd_t rtems_shell_CHMOD_Command;
52extern rtems_shell_cmd_t rtems_shell_CAT_Command;
53extern rtems_shell_cmd_t rtems_shell_MKRFS_Command;
54extern rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command;
55extern rtems_shell_cmd_t rtems_shell_MSDOSFMT_Alias;
56extern rtems_shell_cmd_t rtems_shell_MV_Command;
57extern rtems_shell_cmd_t rtems_shell_RM_Command;
58extern rtems_shell_cmd_t rtems_shell_LN_Command;
59extern rtems_shell_cmd_t rtems_shell_MKNOD_Command;
60extern rtems_shell_cmd_t rtems_shell_UMASK_Command;
61extern rtems_shell_cmd_t rtems_shell_MOUNT_Command;
62extern rtems_shell_cmd_t rtems_shell_UNMOUNT_Command;
63extern rtems_shell_cmd_t rtems_shell_BLKSYNC_Command;
64extern rtems_shell_cmd_t rtems_shell_FDISK_Command;
65extern rtems_shell_cmd_t rtems_shell_DD_Command;
66extern rtems_shell_cmd_t rtems_shell_HEXDUMP_Command;
67extern rtems_shell_cmd_t rtems_shell_DEBUGRFS_Command;
68
69extern rtems_shell_cmd_t rtems_shell_RTC_Command;
70
71extern rtems_shell_cmd_t rtems_shell_HALT_Command;
72extern rtems_shell_cmd_t rtems_shell_CPUUSE_Command;
73extern rtems_shell_cmd_t rtems_shell_STACKUSE_Command;
74extern rtems_shell_cmd_t rtems_shell_PERIODUSE_Command;
75extern rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command;
76extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command;
77#if RTEMS_NETWORKING
78  extern rtems_shell_cmd_t rtems_shell_IFCONFIG_Command;
79  extern rtems_shell_cmd_t rtems_shell_ROUTE_Command;
80  extern rtems_shell_cmd_t rtems_shell_NETSTATS_Command;
81#endif
82
83extern rtems_shell_cmd_t *rtems_shell_Initial_commands[];
84
85/*
86 *  Extern for alias commands
87 */
88extern rtems_shell_alias_t rtems_shell_DIR_Alias;
89extern rtems_shell_alias_t rtems_shell_CD_Alias;
90extern rtems_shell_alias_t rtems_shell_EXIT_Alias;
91
92extern rtems_shell_alias_t *rtems_shell_Initial_aliases[];
93
94/*
95 *  Externs for mount command helpers
96 */
97extern rtems_shell_filesystems_t rtems_shell_Mount_RFS;
98extern rtems_shell_filesystems_t rtems_shell_Mount_MSDOS;
99extern rtems_shell_filesystems_t rtems_shell_Mount_TFTP;
100extern rtems_shell_filesystems_t rtems_shell_Mount_FTP;
101extern rtems_shell_filesystems_t rtems_shell_Mount_NFS;
102
103extern rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[];
104
105/*
106 *  If we are configured to alias a command, then make sure the underlying
107 *  command is configured.
108 */
109
110#if !defined(CONFIGURE_SHELL_COMMANDS_ALL)
111  #if defined(CONFIGURE_SHELL_COMMANDS_DIR) && \
112      !defined(CONFIGURE_SHELL_COMMANDS_LS)
113    #define CONFIGURE_SHELL_COMMAND_LS
114  #endif
115
116  #if defined(CONFIGURE_SHELL_COMMANDS_CD) && \
117      !defined(CONFIGURE_SHELL_COMMANDS_CHDIR)
118    #define CONFIGURE_SHELL_COMMAND_CHDIR
119  #endif
120
121  #if defined(CONFIGURE_SHELL_COMMANDS_EXIT) && \
122      !defined(CONFIGURE_SHELL_COMMANDS_LOGOFF)
123    #define CONFIGURE_SHELL_COMMAND_LOGOFF
124  #endif
125#endif
126
127#if defined(CONFIGURE_SHELL_COMMANDS_INIT)
128  rtems_shell_alias_t *rtems_shell_Initial_aliases[] = {
129    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
130         !defined(CONFIGURE_SHELL_NO_COMMAND_DIR)) || \
131        defined(CONFIGURE_SHELL_COMMAND_DIR)
132      &rtems_shell_DIR_Alias,
133    #endif
134    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
135         !defined(CONFIGURE_SHELL_NO_COMMAND_CD)) || \
136        defined(CONFIGURE_SHELL_COMMAND_CD)
137      &rtems_shell_CD_Alias,
138    #endif
139    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
140         !defined(CONFIGURE_SHELL_NO_COMMAND_EXIT)) || \
141        defined(CONFIGURE_SHELL_COMMAND_EXIT)
142      &rtems_shell_EXIT_Alias,
143    #endif
144
145    /*
146     *  User defined shell aliases
147     */
148    #if defined(CONFIGURE_SHELL_USER_ALIASES)
149      CONFIGURE_SHELL_USER_ALIASES,
150    #endif
151    NULL
152  };
153
154  rtems_shell_cmd_t *rtems_shell_Initial_commands[] = {
155    /*
156     *  General comamnds that should be present
157     */
158    &rtems_shell_HELP_Command,
159    &rtems_shell_ALIAS_Command,
160    &rtems_shell_TIME_Command,
161
162    /*
163     *  Common commands that can be optional
164     */
165    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
166         !defined(CONFIGURE_SHELL_NO_COMMAND_JOEL)) || \
167        defined(CONFIGURE_SHELL_COMMAND_JOEL)
168      &rtems_shell_JOEL_Command,
169    #endif
170    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
171         !defined(CONFIGURE_SHELL_NO_COMMAND_DATE)) || \
172        defined(CONFIGURE_SHELL_COMMAND_DATE)
173      &rtems_shell_DATE_Command,
174    #endif
175    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
176         !defined(CONFIGURE_SHELL_NO_COMMAND_ECHO)) || \
177        defined(CONFIGURE_SHELL_COMMAND_ECHO)
178      &rtems_shell_ECHO_Command,
179    #endif
180    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
181         !defined(CONFIGURE_SHELL_NO_COMMAND_SLEEP)) || \
182        defined(CONFIGURE_SHELL_COMMAND_SLEEP)
183      &rtems_shell_SLEEP_Command,
184    #endif
185    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
186         !defined(CONFIGURE_SHELL_NO_COMMAND_ID)) || \
187        defined(CONFIGURE_SHELL_COMMAND_ID)
188      &rtems_shell_ID_Command,
189    #endif
190    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
191         !defined(CONFIGURE_SHELL_NO_COMMAND_TTY)) || \
192        defined(CONFIGURE_SHELL_COMMAND_TTY)
193      &rtems_shell_TTY_Command,
194    #endif
195    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
196         !defined(CONFIGURE_SHELL_NO_COMMAND_WHOAMI)) || \
197        defined(CONFIGURE_SHELL_COMMAND_WHOAMI)
198      &rtems_shell_WHOAMI_Command,
199    #endif
200    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
201         !defined(CONFIGURE_SHELL_NO_COMMAND_LOGOFF)) || \
202        defined(CONFIGURE_SHELL_COMMAND_LOGOFF)
203      &rtems_shell_LOGOFF_Command,
204    #endif
205    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
206         !defined(CONFIGURE_SHELL_NO_COMMAND_SETENV)) || \
207        defined(CONFIGURE_SHELL_COMMAND_SETENV)
208      &rtems_shell_SETENV_Command,
209    #endif
210    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
211         !defined(CONFIGURE_SHELL_NO_COMMAND_GETENV)) || \
212        defined(CONFIGURE_SHELL_COMMAND_GETENV)
213      &rtems_shell_GETENV_Command,
214    #endif
215    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
216         !defined(CONFIGURE_SHELL_NO_COMMAND_CRLENV)) || \
217        defined(CONFIGURE_SHELL_COMMAND_UNSETENV)
218      &rtems_shell_UNSETENV_Command,
219    #endif
220
221    /*
222     *  Memory printing/modification family commands
223     */
224    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
225        !defined(CONFIGURE_SHELL_NO_COMMAND_MDUMP)) || \
226        defined(CONFIGURE_SHELL_COMMAND_MDUMP)
227      &rtems_shell_MDUMP_Command,
228    #endif
229    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
230         !defined(CONFIGURE_SHELL_NO_COMMAND_WDUMP)) || \
231        defined(CONFIGURE_SHELL_COMMAND_WDUMP)
232      &rtems_shell_WDUMP_Command,
233    #endif
234    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
235         !defined(CONFIGURE_SHELL_NO_COMMAND_MEDIT)) || \
236        defined(CONFIGURE_SHELL_COMMAND_MEDIT)
237      &rtems_shell_MEDIT_Command,
238    #endif
239    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
240         !defined(CONFIGURE_SHELL_NO_COMMAND_MFILL)) || \
241        defined(CONFIGURE_SHELL_COMMAND_MFILL)
242      &rtems_shell_MFILL_Command,
243    #endif
244    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
245         !defined(CONFIGURE_SHELL_NO_COMMAND_MMOVE)) || \
246        defined(CONFIGURE_SHELL_COMMAND_MMOVE)
247      &rtems_shell_MMOVE_Command,
248    #endif
249
250    /*
251     *  File and directory commands
252     */
253    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
254         !defined(CONFIGURE_SHELL_NO_COMMAND_CP)) || \
255        defined(CONFIGURE_SHELL_COMMAND_CP)
256      &rtems_shell_CP_Command,
257    #endif
258    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
259         !defined(CONFIGURE_SHELL_NO_COMMAND_PWD)) || \
260        defined(CONFIGURE_SHELL_COMMAND_PWD)
261      &rtems_shell_PWD_Command,
262    #endif
263    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
264         !defined(CONFIGURE_SHELL_NO_COMMAND_LS)) || \
265        defined(CONFIGURE_SHELL_COMMAND_LS)
266      &rtems_shell_LS_Command,
267    #endif
268    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
269         !defined(CONFIGURE_SHELL_NO_COMMAND_CHDIR)) || \
270        defined(CONFIGURE_SHELL_COMMAND_CHDIR)
271      &rtems_shell_CHDIR_Command,
272    #endif
273    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
274         !defined(CONFIGURE_SHELL_NO_COMMAND_MKDIR)) || \
275        defined(CONFIGURE_SHELL_COMMAND_MKDIR)
276      &rtems_shell_MKDIR_Command,
277    #endif
278    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
279         !defined(CONFIGURE_SHELL_NO_COMMAND_RMDIR)) || \
280        defined(CONFIGURE_SHELL_COMMAND_RMDIR)
281      &rtems_shell_RMDIR_Command,
282    #endif
283    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
284         !defined(CONFIGURE_SHELL_NO_COMMAND_CHROOT)) || \
285        defined(CONFIGURE_SHELL_COMMAND_CHROOT)
286      &rtems_shell_CHROOT_Command,
287    #endif
288    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
289         !defined(CONFIGURE_SHELL_NO_COMMAND_CHMOD)) || \
290        defined(CONFIGURE_SHELL_COMMAND_CHMOD)
291      &rtems_shell_CHMOD_Command,
292    #endif
293    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
294         !defined(CONFIGURE_SHELL_NO_COMMAND_CAT)) || \
295        defined(CONFIGURE_SHELL_COMMAND_CAT)
296      &rtems_shell_CAT_Command,
297    #endif
298    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
299         !defined(CONFIGURE_SHELL_NO_COMMAND_MKRFS)) || \
300        defined(CONFIGURE_SHELL_COMMAND_MKRFS)
301      &rtems_shell_MKRFS_Command,
302    #endif
303    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
304         !defined(CONFIGURE_SHELL_NO_COMMAND_MSDOSFMT)) || \
305        defined(CONFIGURE_SHELL_COMMAND_MSDOSFMT)
306      &rtems_shell_MSDOSFMT_Command,
307      &rtems_shell_MSDOSFMT_Alias,
308    #endif
309    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
310         !defined(CONFIGURE_SHELL_NO_COMMAND_MV)) || \
311        defined(CONFIGURE_SHELL_COMMAND_MV)
312      &rtems_shell_MV_Command,
313    #endif
314    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
315         !defined(CONFIGURE_SHELL_NO_COMMAND_RM)) || \
316        defined(CONFIGURE_SHELL_COMMAND_RM)
317      &rtems_shell_RM_Command,
318    #endif
319    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
320         !defined(CONFIGURE_SHELL_NO_COMMAND_LN)) || \
321        defined(CONFIGURE_SHELL_COMMAND_LN)
322      &rtems_shell_LN_Command,
323    #endif
324    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
325         !defined(CONFIGURE_SHELL_NO_COMMAND_MKNOD)) || \
326        defined(CONFIGURE_SHELL_COMMAND_MKNOD)
327      &rtems_shell_MKNOD_Command,
328    #endif
329    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
330         !defined(CONFIGURE_SHELL_NO_COMMAND_UMASK)) || \
331        defined(CONFIGURE_SHELL_COMMAND_UMASK)
332      &rtems_shell_UMASK_Command,
333    #endif
334    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
335         !defined(CONFIGURE_SHELL_NO_COMMAND_MOUNT)) || \
336        defined(CONFIGURE_SHELL_COMMAND_MOUNT)
337      &rtems_shell_MOUNT_Command,
338    #endif
339    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
340         !defined(CONFIGURE_SHELL_NO_COMMAND_UNMOUNT)) || \
341        defined(CONFIGURE_SHELL_COMMAND_UNMOUNT)
342      &rtems_shell_UNMOUNT_Command,
343    #endif
344    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
345         !defined(CONFIGURE_SHELL_NO_COMMAND_BLKSYNC)) || \
346        defined(CONFIGURE_SHELL_COMMAND_BLKSYNC)
347      &rtems_shell_BLKSYNC_Command,
348    #endif
349    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
350         !defined(CONFIGURE_SHELL_NO_COMMAND_FDISK)) || \
351        defined(CONFIGURE_SHELL_COMMAND_FDISK)
352      &rtems_shell_FDISK_Command,
353    #endif
354    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
355         !defined(CONFIGURE_SHELL_NO_COMMAND_DD)) || \
356        defined(CONFIGURE_SHELL_COMMAND_DD)
357      &rtems_shell_DD_Command,
358    #endif
359    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
360         !defined(CONFIGURE_SHELL_NO_COMMAND_HEXDUMP)) || \
361        defined(CONFIGURE_SHELL_COMMAND_HEXDUMP)
362      &rtems_shell_HEXDUMP_Command,
363    #endif
364    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
365         !defined(CONFIGURE_SHELL_NO_COMMAND_DEBUGRFS)) || \
366        defined(CONFIGURE_SHELL_COMMAND_DEBUGRFS)
367      &rtems_shell_DEBUGRFS_Command,
368    #endif
369
370    /*
371     *  RTEMS Related commands
372     */
373    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
374         !defined(CONFIGURE_SHELL_NO_COMMAND_HALT)) || \
375        defined(CONFIGURE_SHELL_COMMAND_HALT)
376      &rtems_shell_HALT_Command,
377    #endif
378    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
379         !defined(CONFIGURE_SHELL_NO_COMMAND_CPUUSE)) || \
380        defined(CONFIGURE_SHELL_COMMAND_CPUUSE)
381      &rtems_shell_CPUUSE_Command,
382    #endif
383    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
384         !defined(CONFIGURE_SHELL_NO_COMMAND_STACKUSE)) || \
385        defined(CONFIGURE_SHELL_COMMAND_STACKUSE)
386      &rtems_shell_STACKUSE_Command,
387    #endif
388    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
389         !defined(CONFIGURE_SHELL_NO_COMMAND_PERIODUSE)) || \
390        defined(CONFIGURE_SHELL_COMMAND_PERIODUSE)
391      &rtems_shell_PERIODUSE_Command,
392    #endif
393    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
394         !defined(CONFIGURE_SHELL_NO_COMMAND_WKSPACE_INFO)) || \
395        defined(CONFIGURE_SHELL_COMMAND_WKSPACE_INFO)
396      &rtems_shell_WKSPACE_INFO_Command,
397    #endif
398
399    /*
400     *  Malloc family commands
401     */
402    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
403         !defined(CONFIGURE_SHELL_NO_COMMAND_MALLOC_INFO)) || \
404        defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO)
405      &rtems_shell_MALLOC_INFO_Command,
406    #endif
407
408    /*
409     *  Network related commands
410     */
411    #if RTEMS_NETWORKING
412      #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
413           !defined(CONFIGURE_SHELL_NO_COMMAND_IFCONFIG)) || \
414          defined(CONFIGURE_SHELL_COMMAND_IFCONFIG)
415        &rtems_shell_IFCONFIG_Command,
416      #endif
417
418      #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
419           !defined(CONFIGURE_SHELL_NO_COMMAND_ROUTE)) || \
420          defined(CONFIGURE_SHELL_COMMAND_ROUTE)
421        &rtems_shell_ROUTE_Command,
422      #endif
423
424      #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \
425           !defined(CONFIGURE_SHELL_NO_COMMAND_NETSTATS)) || \
426          defined(CONFIGURE_SHELL_COMMAND_NETSTATS)
427        &rtems_shell_NETSTATS_Command,
428      #endif
429    #endif
430
431    /* Miscanellous shell commands */
432    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) \
433          && !defined(CONFIGURE_SHELL_NO_COMMAND_RTC)) \
434        || defined(CONFIGURE_SHELL_COMMAND_RTC)
435      &rtems_shell_RTC_Command,
436    #endif
437
438    /*
439     *  User defined shell commands
440     */
441    #if defined(CONFIGURE_SHELL_USER_COMMANDS)
442      CONFIGURE_SHELL_USER_COMMANDS,
443    #endif
444    NULL
445  };
446
447  /*
448   * The mount command's support file system types.
449   */
450  #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
451       !defined(CONFIGURE_SHELL_COMMAND_NO_MOUNT)) || \
452       defined(CONFIGURE_SHELL_COMMAND_MOUNT)
453    rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[] = {
454      #if defined(CONFIGURE_SHELL_MOUNT_RFS)
455        &rtems_shell_Mount_RFS,
456      #endif
457      #if defined(CONFIGURE_SHELL_MOUNT_MSDOS)
458        &rtems_shell_Mount_MSDOS,
459      #endif
460      #if RTEMS_NETWORKING
461        #if defined(CONFIGURE_SHELL_MOUNT_TFTP)
462          &rtems_shell_Mount_TFTP,
463        #endif
464        #if defined(CONFIGURE_SHELL_MOUNT_FTP)
465          &rtems_shell_Mount_FTP,
466        #endif
467        #if defined(CONFIGURE_SHELL_MOUNT_NFS)
468          &rtems_shell_Mount_NFS,
469        #endif
470      #endif
471      NULL
472    };
473  #endif
474
475#endif
476
477#endif
Note: See TracBrowser for help on using the repository browser.