version 1.20, 2004/11/07 09:48:08 |
version 1.21, 2005/03/11 22:16:16 |
|
|
printf("\r\n%s: cannot create\r\n", argv[1]); |
printf("\r\n%s: cannot create\r\n", argv[1]); |
return; |
return; |
} |
} |
(void)snprintf(line, sizeof(line), "cat %s;echo \01", argv[0]); |
(void)snprintf(line, sizeof(line), "cat %s;echo ''|tr '\\012' '\\01'", argv[0]); |
transfer(line, fd, "\01"); |
transfer(line, fd, "\01"); |
} |
} |
|
|
|
|
sig_t f; |
sig_t f; |
char r; |
char r; |
|
|
|
if (number(value(FRAMESIZE)) > BUFSIZ || number(value(FRAMESIZE)) < 1) { |
|
printf("framesize must be >= 1 and <= %d\r\n", BUFSIZ); |
|
close(fd); |
|
return; |
|
} |
|
|
parwrite(FD, buf, size(buf)); |
parwrite(FD, buf, size(buf)); |
quit = 0; |
quit = 0; |
kill(tipout_pid, SIGIOT); |
kill(tipout_pid, SIGIOT); |
|
|
char *msg; |
char *msg; |
{ |
{ |
|
|
|
signal(SIGTERM, SIG_IGN); |
kill(tipout_pid, SIGTERM); |
kill(tipout_pid, SIGTERM); |
disconnect(msg); |
disconnect(msg); |
if (msg != NOSTR) |
if (msg != NOSTR) |