SCCS-vsn: usr.bin/tip/tip.h 4.7
SCCS-vsn: usr.bin/tip/cmds.c 4.9
-/* cmds.c 4.8 82/01/06 */
+/* cmds.c 4.9 82/07/29 */
#include "tip.h"
/*
* tip
#include "tip.h"
/*
* tip
FILE *fd;
char *eofchars, *command;
{
FILE *fd;
char *eofchars, *command;
{
int c, ccount, lcount;
time_t start_t, stop_t;
int c, ccount, lcount;
time_t start_t, stop_t;
+ } else if (!any(c, value(EXCEPTIONS)))
alarm(10);
timedout = 0;
do { /* wait for prompt */
alarm(10);
timedout = 0;
do { /* wait for prompt */
- read(FD, (char *)&c, 1);
+ read(FD, (char *)&rc, 1);
if (timedout || stop) {
if (timedout)
printf("\r\ntimed out at eol\r\n");
alarm(0);
goto out;
}
if (timedout || stop) {
if (timedout)
printf("\r\ntimed out at eol\r\n");
alarm(0);
goto out;
}
- } while ((c&0177) != character(value(PROMPT)));
+ } while ((rc&0177) != character(value(PROMPT)));
-/* tip.h 4.6 81/12/16 */
+/* tip.h 4.7 82/07/29 */
/*
* tip - terminal interface program
*
/*
* tip - terminal interface program
*
typedef
union {
int zz_number;
typedef
union {
int zz_number;
- short zz_boolean;
- char zz_character;
+ int zz_boolean;
+ int zz_character;
int *zz_address;
}
zzhack;
int *zz_address;
}
zzhack;