terror.c revision ace1a5f11236a072fca1b5e0ea1416a083a9f2aa
/*
* 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 2005 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) 1986 AT&T
* All Rights Reserved
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "wish.h"
#include "message.h"
#include "vtdefs.h"
#include "terror.h"
#include "retcodes.h"
#include "sizes.h"
extern char *Errlist[];
extern char *What[];
extern int Vflag;
extern void exit(); /* fmli's exit not the C lib call */
static void log();
static void notify();
void
int sev; /* flags to see if we should log or exit */
int what; /* What we were trying to do */
char *name; /* What we were trying to do it to */
char *file; /* __FILE__ */
int line; /* __LINE__ */
bool child; /* TRUE if called by a child of fmli. abs k15 */
{
errno = 0;
errno = 0;
}
static void
int what;
bool child; /* TRUE if called by a child of fmli. abs k15 */
{
register char *mymess;
register int length;
extern bool Use_errno[];
char *push_win();
return;
mymess = "error";
length += 2;
}
/* to ensure '\0' termination of string */
/* if message generated by a child of fmli, print it on line
* following cursor. if generated by fmli then use message line
*/
{
}
else
{
doupdate(); /* abs f15 */
}
}
#define LOGFILE 0
#define TERMINAL 1
#define MAILADM 2
/*
* FACE application ONLY .... log problems in the TERRLOG file
*/
static void
int sev;
int what;
char *name;
char *file;
int line;
{
register int method;
time_t t; /* EFT abs k16 */
extern char *Oasys;
extern char *Progname;
/*
* construct path of error log file
*/
close(4);
}
}
else
(void) time(&t);
}