t1.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/* 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.
*/
/*
* Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
* All Rights Reserved.
*/
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
/* t1.c: main control and input switching */
#
#include <locale.h>
# include "t..c"
#include <signal.h>
# ifdef gcos
/* required by GCOS because file is passed to "tbl" by troff preprocessor */
# endif
# ifdef unix
# endif
# ifdef gcos
# endif
# define ever (;;)
char *argv[];
{
# 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
}
char *argv[];
{
/* required by GCOS because "stdout" is set by troff preprocessor */
{
tableput();
}
return(0);
}
int sargc;
char **sargv;
char **argv;
{
if (sargc>0)
swapin();
}
swapin()
{
{
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()
{
exit(0);
}
# endif