face.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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" /* SVr4.0 1.8 */
#include <stdio.h>
#include <pwd.h>
#include <string.h>
#define NUMARGS 6
#define MAXARGS 25
#define WPREF "/standard/WASTEBASKET/.pref"
static char Interpreter[] = "fmli";
int argc;
char *argv[];
{
register int i,j;
/*
int isatty();
*/
static void sanity_check();
char *getenv();
char *tmpenv;
char *newbuf;
fprintf(stderr, "\r\nThe environment variable \"VMSYS\" must be set in\nyour environment before you can use FACE.\r\n\n");
exit(1);
}
else
fprintf(stderr, "\r\nThe environment variable \"OASYS\" must be set in\nyour environment before you can use FACE.\r\n\n");
exit(1);
}
fprintf(stderr, "\r\nYou have not installed the \"AT&T FMLI\" package.\nPlease do so before attempting to use FACE.\r\n\n");
exit(1);
}
exit(1);
}
sanity_check();
if (argc == 1) {
/*
* Use the Office Menu as the default if no arguments
*/
}
else {
/*
* Arguments to FACE are Object paths
*/
}
/* removed by miked, put back into .faceprofile
if ( isatty( 0 ) )
system("tput init; stty tab3");
*/
j = 0;
for ( i = 0; buf[i]; i++ ) {
if ( buf[i] != '"' )
}
newbuf[j] = '\0';
}
putenv("VMFMLI=true");
fprintf(stderr, "\r\nAn error has occurred while trying to use the \"AT&T FMLI\" package.\nThe file %s will not execute properly.\nThis situation must be corrected before you can proceed.\r\n\n",fmlibuf);
exit(1);
}
char user[20];
static
void
{
char wastebasket[BUFSIZ];
char *getenv();
if (access(wastebasket, 00))
}
}
char *object;
{
exit(1);
}