11673e404SJohn Birrell /*
21673e404SJohn Birrell * CDDL HEADER START
31673e404SJohn Birrell *
41673e404SJohn Birrell * The contents of this file are subject to the terms of the
51673e404SJohn Birrell * Common Development and Distribution License, Version 1.0 only
61673e404SJohn Birrell * (the "License"). You may not use this file except in compliance
71673e404SJohn Birrell * with the License.
81673e404SJohn Birrell *
91673e404SJohn Birrell * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
101673e404SJohn Birrell * or http://www.opensolaris.org/os/licensing.
111673e404SJohn Birrell * See the License for the specific language governing permissions
121673e404SJohn Birrell * and limitations under the License.
131673e404SJohn Birrell *
141673e404SJohn Birrell * When distributing Covered Code, include this CDDL HEADER in each
151673e404SJohn Birrell * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
161673e404SJohn Birrell * If applicable, add the following below this CDDL HEADER, with the
171673e404SJohn Birrell * fields enclosed by brackets "[]" replaced with your own identifying
181673e404SJohn Birrell * information: Portions Copyright [yyyy] [name of copyright owner]
191673e404SJohn Birrell *
201673e404SJohn Birrell * CDDL HEADER END
211673e404SJohn Birrell */
221673e404SJohn Birrell /*
231673e404SJohn Birrell * Copyright (c) 1998-2001 by Sun Microsystems, Inc.
241673e404SJohn Birrell * All rights reserved.
251673e404SJohn Birrell */
261673e404SJohn Birrell
27*45dd2eaaSMark Johnston #include <err.h>
281673e404SJohn Birrell #include <string.h>
291673e404SJohn Birrell #include <stdlib.h>
301673e404SJohn Birrell #include <stdarg.h>
311673e404SJohn Birrell #include <stdio.h>
321673e404SJohn Birrell #include <errno.h>
331673e404SJohn Birrell
341673e404SJohn Birrell #include "utils.h"
351673e404SJohn Birrell
361673e404SJohn Birrell /*LINTLIBRARY*/
371673e404SJohn Birrell
381673e404SJohn Birrell void
vdie(const char * format,va_list alist)391673e404SJohn Birrell vdie(const char *format, va_list alist)
401673e404SJohn Birrell {
411673e404SJohn Birrell vwarn(format, alist);
421673e404SJohn Birrell exit(E_ERROR);
431673e404SJohn Birrell }
441673e404SJohn Birrell
451673e404SJohn Birrell /*PRINTFLIKE1*/
461673e404SJohn Birrell void
die(const char * format,...)471673e404SJohn Birrell die(const char *format, ...)
481673e404SJohn Birrell {
491673e404SJohn Birrell va_list alist;
501673e404SJohn Birrell
511673e404SJohn Birrell va_start(alist, format);
521673e404SJohn Birrell vdie(format, alist);
531673e404SJohn Birrell va_end(alist);
541673e404SJohn Birrell }
55