/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ident "%Z%%M% %I% %E% SMI" /* from SVR4 bnu:systat.c 2.7 */
#include "uucp.h"
/*
* make system status entry
* name -> system name
* text -> text string to read
* type -> ?
* return:
* none
*/
void
register int type;
long retry;
{
int count;
long presretry = 0;
line[0] = '\0';
count = 0;
}
if (count <= 0)
count = 0;
}
switch (type) {
/* if there is already a status file - don't change */
case SS_TIME_WRONG:
case SS_LOCKED_DEVICE:
case SS_CANT_ACCESS_DEVICE:
if (count > 1)
return;
break;
/* reset count on successful call */
case SS_OK:
case SS_INPROGRESS:
case SS_CONVERSATION: /* failure during conversation - contact ok */
retry = 0;
count = 0;
break;
/* Startup failure means protocol mismatch--some administrative
* action must be taken
*/
case SS_STARTUP:
count = 0;
break;
default: /* increment count and set up retry time */
count++;
if (!retry) { /* use exponential backoff */
else {
if (retry > MAXRETRYTIME)
}
}
else { /* use specified time */
}
break;
}
/* can't ASSERT since assert() calls systat() */
}
return;
}
/*
* check system status for call
* name -> system to check
* return:
* 0 -> ok
* >0 -> system status
*/
int
char *name;
{
register int t;
long retrytime;
return(SS_OK);
/* no data */
return(SS_OK);
}
t = type;
switch(t) {
case SS_SEQBAD:
case SS_LOGIN_FAILED:
case SS_DIAL_FAILED:
case SS_BAD_LOG_MCH:
case SS_BADSYSTEM:
case SS_CANT_ACCESS_DEVICE:
case SS_WRONG_MCH:
case SS_RLOCKED:
case SS_RUNKNOWN:
case SS_RLOGIN:
case SS_UNKNOWN_RESPONSE:
case SS_CHAT_FAILED:
case SS_CALLBACK_LOOP:
return(type);
}
return(SS_OK);
default:
return(SS_OK);
}
}