FreeCalypso > hg > freecalypso-sw
comparison rvinterf/etm/launchrvif.c @ 200:2847b6cbd915
fc-tmsh rvinterf invokation mode: support passing -B as well
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 19 Dec 2013 08:15:47 +0000 |
parents | fa7174faa9aa |
children |
comparison
equal
deleted
inserted
replaced
199:96f56e875862 | 200:2847b6cbd915 |
---|---|
11 | 11 |
12 static char rvinterf_pathname[] = "/usr/local/bin/rvinterf"; | 12 static char rvinterf_pathname[] = "/usr/local/bin/rvinterf"; |
13 | 13 |
14 extern int sock; | 14 extern int sock; |
15 | 15 |
16 char *rvinterf_lopt, *rvinterf_wopt; | 16 char *rvinterf_Bopt, *rvinterf_lopt, *rvinterf_wopt; |
17 | 17 |
18 launch_rvinterf(ttyport) | 18 launch_rvinterf(ttyport) |
19 char *ttyport; | 19 char *ttyport; |
20 { | 20 { |
21 int sp[2], rc; | 21 int sp[2], rc; |
22 char *rvif_argv[9], Sarg[16], **ap; | 22 char *rvif_argv[11], Sarg[16], **ap; |
23 | 23 |
24 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, sp); | 24 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, sp); |
25 if (rc < 0) { | 25 if (rc < 0) { |
26 perror("socketpair"); | 26 perror("socketpair"); |
27 exit(1); | 27 exit(1); |
30 sprintf(Sarg, "-S%d", sp[1]); | 30 sprintf(Sarg, "-S%d", sp[1]); |
31 ap = rvif_argv; | 31 ap = rvif_argv; |
32 *ap++ = "rvinterf"; | 32 *ap++ = "rvinterf"; |
33 *ap++ = Sarg; | 33 *ap++ = Sarg; |
34 *ap++ = "-n"; | 34 *ap++ = "-n"; |
35 if (rvinterf_Bopt) { | |
36 *ap++ = "-B"; | |
37 *ap++ = rvinterf_Bopt; | |
38 } | |
35 if (rvinterf_lopt) { | 39 if (rvinterf_lopt) { |
36 *ap++ = "-l"; | 40 *ap++ = "-l"; |
37 *ap++ = rvinterf_lopt; | 41 *ap++ = rvinterf_lopt; |
38 } | 42 } |
39 if (rvinterf_wopt) { | 43 if (rvinterf_wopt) { |