| 7 |
|
|
| 8 |
|
#include "standard.h" |
| 9 |
|
#include <ctype.h> |
| 10 |
+ |
#include <signal.h> |
| 11 |
|
#include "platform.h" |
| 12 |
|
#include "rtprocess.h" |
| 13 |
|
#include "selcall.h" |
| 68 |
|
|
| 69 |
|
/* rtrace command and defaults */ |
| 70 |
|
char *rtargv[256] = { "rtrace", "-dj", ".5", "-dr", "3", |
| 71 |
< |
"-ab", "1", "-ad", "128", }; |
| 72 |
< |
int rtargc = 9; |
| 71 |
> |
"-ab", "1", "-ad", "128", "-lr", "-10", }; |
| 72 |
> |
int rtargc = 11; |
| 73 |
|
/* overriding rtrace options */ |
| 74 |
|
char *myrtopts[] = { "-o~~TmWdp", "-h-", "-x", "1", "-y", "0", |
| 75 |
|
"-dt", "0", "-as", "0", "-aa", "0", NULL }; |
| 202 |
|
break; |
| 203 |
|
case 'f': /* file or i/o format */ |
| 204 |
|
if (!argv[i][2]) { |
| 205 |
+ |
char *fpath; |
| 206 |
|
if (i >= argc-1) break; |
| 207 |
< |
fcompile(argv[++i]); |
| 207 |
> |
fpath = getpath(argv[++i], |
| 208 |
> |
getrlibpath(), R_OK); |
| 209 |
> |
if (fpath == NULL) { |
| 210 |
> |
sprintf(errmsg, |
| 211 |
> |
"cannot find file '%s'", |
| 212 |
> |
argv[i]); |
| 213 |
> |
error(USER, errmsg); |
| 214 |
> |
} |
| 215 |
> |
fcompile(fpath); |
| 216 |
|
continue; |
| 217 |
|
} |
| 218 |
|
setformat(argv[i]+2); |