tipout.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2005 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.
*/
#ident "%Z%%M% %I% %E% SMI" /* from UCB 5.1 4/30/85 */
#include "tip.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()
{
}
/*
* Scripting command interpreter --
* accepts script file name over the pipe and acts accordingly
*/
void
intEMT()
{
char c, line[256];
char reply;
while (c != '\n') {
*pline++ = c;
}
*pline = '\0';
reply = 'y';
} else {
reply = 'n';
else {
reply = 'y';
}
}
}
void
intTERM()
{
exit(0);
}
void
intSYS()
{
}
/*
* ****TIPOUT TIPOUT****
*/
tipout()
{
register char *cp;
register int cnt;
extern int errno;
sigemptyset(&omask);
sigemptyset(&bmask);
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 {
}
}
}
}
}