FreeCalypso > hg > freecalypso-tools
comparison rvinterf/asyncshell/main.c @ 422:c1aadfcd185f
rvinterf client refactoring: libasync clients converted to use libinterf
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 28 Oct 2018 00:00:51 +0000 |
parents | bbc41034f14c |
children | e40bb5a6c6b9 |
comparison
equal
deleted
inserted
replaced
421:ab8fb95a28da | 422:c1aadfcd185f |
---|---|
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 #include "exitcodes.h" | 10 #include "exitcodes.h" |
11 | 11 |
12 char *socket_pathname = "/tmp/rvinterf_socket"; | 12 extern char *socket_pathname; |
13 char *rvinterf_ttyport; | 13 extern char *rvinterf_ttyport, *rvinterf_Bopt, *rvinterf_lopt, *rvinterf_wopt; |
14 extern int sock; | |
15 | |
14 int ttyhacks, dflag; | 16 int ttyhacks, dflag; |
15 int oneshot_mode, oneshot_nowait; | 17 int oneshot_mode, oneshot_nowait; |
16 | |
17 int sock; | |
18 | |
19 extern char *rvinterf_Bopt, *rvinterf_lopt, *rvinterf_wopt; | |
20 | 18 |
21 main(argc, argv) | 19 main(argc, argv) |
22 char **argv; | 20 char **argv; |
23 { | 21 { |
24 extern int optind; | 22 extern int optind; |
60 fprintf(stderr, | 58 fprintf(stderr, |
61 "%s error: -p and -s options are mutually exclusive\n", | 59 "%s error: -p and -s options are mutually exclusive\n", |
62 argv[0]); | 60 argv[0]); |
63 exit(ERROR_USAGE); | 61 exit(ERROR_USAGE); |
64 } | 62 } |
65 launch_rvinterf(rvinterf_ttyport); | 63 launch_rvinterf(); |
66 } else { | 64 } else { |
67 if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { | 65 if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) { |
68 fprintf(stderr, | 66 fprintf(stderr, |
69 "%s error: -B, -l and -w options are meaningful only when launching rvinterf\n", | 67 "%s error: -B, -l and -w options are meaningful only when launching rvinterf\n", |
70 argv[0]); | 68 argv[0]); |