comparison rvinterf/etmsync/fscmdtab.c @ 285:bb28ba9e82c5

fc-fsio: file read primitive and hd command implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 28 Feb 2014 06:16:02 +0000
parents 88eed3327682
children 146e7bf3fa4e
comparison
equal deleted inserted replaced
284:7b4d4e3e610a 285:bb28ba9e82c5
5 #include "cmdtab.h" 5 #include "cmdtab.h"
6 6
7 extern int cmd_exec(); 7 extern int cmd_exec();
8 extern int cmd_exit(); 8 extern int cmd_exit();
9 extern int cmd_ffs2ver(); 9 extern int cmd_ffs2ver();
10 extern int cmd_hd();
10 extern int cmd_ll(); 11 extern int cmd_ll();
11 extern int cmd_ls(); 12 extern int cmd_ls();
12 extern int cmd_stat(); 13 extern int cmd_stat();
13 14
14 struct cmdtab cmdtab[] = { 15 struct cmdtab cmdtab[] = {
15 {"exec", 1, 1, cmd_exec}, 16 {"exec", 1, 1, cmd_exec},
16 {"exit", 0, 0, cmd_exit}, 17 {"exit", 0, 0, cmd_exit},
17 {"ffs2ver", 0, 0, cmd_ffs2ver}, 18 {"ffs2ver", 0, 0, cmd_ffs2ver},
19 {"hd", 1, 1, cmd_hd},
18 {"ll", 1, 1, cmd_ll}, 20 {"ll", 1, 1, cmd_ll},
19 {"ls", 1, 1, cmd_ls}, 21 {"ls", 1, 1, cmd_ls},
20 {"stat", 1, 1, cmd_stat}, 22 {"stat", 1, 1, cmd_stat},
21 {0, 0, 0, 0} 23 {0, 0, 0, 0}
22 }; 24 };