tipout.c revision 94e1761e7fc32a474e3106beedc664ce987b96ec
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "tip.h"
#include <limits.h>
/*
* tip
*
* lower fork of tip -- handles passive side
* reading from the remote host
*/
static sigjmp_buf sigbuf;
/*
* TIPOUT wait state routine --
* sent by TIPIN when it wants to posses the remote host
*/
void
intIOT(void)
{
}
/*
* Scripting command interpreter --
* accepts script file name over the pipe and acts accordingly
*/
void
intEMT(void)
{
char reply;
*pline++ = c;
}
*pline = '\0';
reply = 'y';
} else {
reply = 'n';
else {
reply = 'y';
}
}
}
void
intTERM(void)
{
exit(0);
}
void
intSYS(void)
{
}
/*
* ****TIPOUT TIPOUT****
*/
void
tipout(void)
{
char *cp;
int cnt;
/* attention from TIPIN */
/* time to go signal */
/* scripting going on signal */
/* for dial-ups */
/* beautify toggle */
(void) sigemptyset(&omask);
(void) sigemptyset(&bmask);
(void) sigemptyset(&tmask);
for (;;) {
if (cnt <= 0) {
/*
* If dialback is specified, ignore the hangup
* and clear the hangup condition on the device.
*/
int fd;
DB = 0;
}
continue;
}
/* lost carrier */
(cnt == 0)) {
intTERM();
/*NOTREACHED*/
}
} else {
if (!noparity)
*cp &= 0177;
} else {
fscript);
}
}
}
}
}