FreeCalypso > hg > freecalypso-tools
comparison rvinterf/asyncshell/oneshot.c @ 451:10f4062e049b
fc-shell: unterm command implemented in one-shot mode
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 08 Feb 2019 00:49:34 +0000 |
parents | 8c7e86bc137e |
children | b55a81ce7497 |
comparison
equal
deleted
inserted
replaced
450:b5235f8240b9 | 451:10f4062e049b |
---|---|
16 extern int cmd_send_oneshot(); | 16 extern int cmd_send_oneshot(); |
17 extern int cmd_sp_oneshot(); | 17 extern int cmd_sp_oneshot(); |
18 extern int cmd_str_oneshot(); | 18 extern int cmd_str_oneshot(); |
19 extern int cmd_tchdl_oneshot(); | 19 extern int cmd_tchdl_oneshot(); |
20 extern int cmd_tgtreset(); | 20 extern int cmd_tgtreset(); |
21 extern int cmd_unterm_oneshot(); | |
21 | 22 |
22 static struct cmdtab { | 23 static struct cmdtab { |
23 char *cmd; | 24 char *cmd; |
24 int minargs; | 25 int minargs; |
25 int maxargs; | 26 int maxargs; |
32 {"send", 1, MAX_PKT_TO_TARGET, cmd_send_oneshot}, | 33 {"send", 1, MAX_PKT_TO_TARGET, cmd_send_oneshot}, |
33 {"sp", 2, 2, cmd_sp_oneshot}, | 34 {"sp", 2, 2, cmd_sp_oneshot}, |
34 {"str", 1, 1, cmd_str_oneshot}, | 35 {"str", 1, 1, cmd_str_oneshot}, |
35 {"tch-dl", 1, 1, cmd_tchdl_oneshot}, | 36 {"tch-dl", 1, 1, cmd_tchdl_oneshot}, |
36 {"tgtreset", 0, 0, cmd_tgtreset}, | 37 {"tgtreset", 0, 0, cmd_tgtreset}, |
38 {"unterm", 1, 1, cmd_unterm_oneshot}, | |
37 {0, 0, 0, 0} | 39 {0, 0, 0, 0} |
38 }; | 40 }; |
39 | 41 |
40 oneshot_command(argc, argv) | 42 oneshot_command(argc, argv) |
41 char **argv; | 43 char **argv; |