v831.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 4.5 6/25/83 */
/*
* Routines for dialing up on Vadic 831
*/
#include "tip.h"
int v831_abort();
static void alarmtr();
extern errno;
static sigjmp_buf jmpbuf;
static int child = -1;
{
register int timelim;
printf("\nstarting call...");
#ifdef DEBUG
#endif
printf("line busy...");
else
printf("acu open error...");
return (0);
}
return (0);
}
/*
* ignore this stuff for aborts
*/
sleep(2);
}
/*
* open line - will return on carrier
*/
#ifdef DEBUG
#endif
printf("lost carrier...");
else
printf("dialup line open failed...");
alarm(0);
return (0);
}
alarm(0);
;
if (status) {
return (0);
}
return (1);
}
static void
alarmtr()
{
alarm(0);
}
/*
* Insurance, for some reason we don't seem to be
* hanging up...
*/
{
sleep(2);
#ifdef DEBUG
#endif
if (FD > 0) {
}
}
{
#ifdef DEBUG
#endif
sleep(2);
if (child > 0)
if (AC > 0) {
}
if (FD > 0)
}
/*
* Sigh, this probably must be changed at each site.
*/
struct vaconfig {
char *vc_name;
char vc_rack;
char vc_modem;
} vaconfig[] = {
{ 0 }
};
#define ABORT 01
#define SI 017
#define STX 02
#define ETX 03
static
register char *phonenum;
char *acu;
{
char c, *sanitize();
int i;
#ifdef DEBUG
#endif
return ('Z');
break;
return ('K');
}
sleep(1);
#ifdef DEBUG
#endif
if (i != 1)
c = 'M';
if (c == 'B' || c == 'G') {
#ifdef DEBUG
#endif
c = oc;
}
#ifdef DEBUG
printf("dialit: returns %c\n", c);
#endif
return (c);
}
static char *
sanitize(s)
register char *s;
{
static char buf[128];
register char *cp;
continue;
if (*s == '_')
*s = '=';
*cp++ = *s;
}
*cp++ = 0;
return (buf);
}