version 1.3, 2015/01/16 06:40:08 |
version 1.4, 2015/01/30 04:45:45 |
|
|
char *t_name; |
char *t_name; |
char *t_mode; |
char *t_mode; |
int t_type; |
int t_type; |
char *t_arg; |
|
} types[] = { |
} types[] = { |
{ "ascii", "A", TYPE_A, 0 }, |
{ "ascii", "A", TYPE_A }, |
{ "binary", "I", TYPE_I, 0 }, |
{ "binary", "I", TYPE_I }, |
{ "image", "I", TYPE_I, 0 }, |
{ "image", "I", TYPE_I }, |
{ "ebcdic", "E", TYPE_E, 0 }, |
|
{ "tenex", "L", TYPE_L, bytename }, |
|
{ NULL } |
{ NULL } |
}; |
}; |
|
|
|
|
code = -1; |
code = -1; |
return; |
return; |
} |
} |
if ((p->t_arg != NULL) && (*(p->t_arg) != '\0')) |
comret = command("TYPE %s", p->t_mode); |
comret = command("TYPE %s %s", p->t_mode, p->t_arg); |
|
else |
|
comret = command("TYPE %s", p->t_mode); |
|
if (comret == COMPLETE) { |
if (comret == COMPLETE) { |
(void)strlcpy(typename, p->t_name, sizeof typename); |
(void)strlcpy(typename, p->t_name, sizeof typename); |
curtype = type = p->t_type; |
curtype = type = p->t_type; |