t1.c revision b55148877d473978f0b46d593fd6213fa526fcc5
/*
* Copyright 1998 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 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"
/* t1.c: main control and input switching */
#
#include <locale.h>
# include "t..c"
#include <signal.h>
#include <stdlib.h>
# ifdef gcos
/* required by GCOS because file is passed to "tbl" by troff preprocessor */
# endif
# ifdef unix
# endif
# ifdef gcos
# endif
# define ever (;;)
void setinp(int, char **);
int
{
# ifdef unix
void badsig();
# endif
#if !defined(TEXT_DOMAIN)
#define TEXT_DOMAIN "SYS_TEST"
#endif
(void) textdomain(TEXT_DOMAIN);
# ifdef unix
# endif
# ifdef gcos
# endif
}
int
{
/* required by GCOS because "stdout" is set by troff preprocessor */
{
tableput();
}
return(0);
}
int sargc;
char **sargv;
void
{
if (sargc>0)
swapin();
}
int
swapin(void)
{
{
if (sargc<=0) return(0);
{
break;
}
{
break;
}
{
break;
}
pr1403=1;
else {
"(%s).\n"), *sargv);
"[ -mm ] [ -ms ] [ filename ] ...\n"));
exit(1);
}
}
if (sargc<=0) return(0);
# ifdef unix
/* file closing is done by GCOS troff preprocessor */
# endif
iline=1;
# ifdef unix
/* file names are all put into f. by the GCOS troff preprocessor */
# endif
sargc--;
sargv++;
return(1);
}
# ifdef unix
void
badsig(void)
{
exit(0);
}
# endif