err.h revision 1539
1139743Simp/*- 239212Sgibbs * Copyright (c) 1993 339212Sgibbs * The Regents of the University of California. All rights reserved. 439212Sgibbs * 539212Sgibbs * Redistribution and use in source and binary forms, with or without 639212Sgibbs * modification, are permitted provided that the following conditions 739212Sgibbs * are met: 839212Sgibbs * 1. Redistributions of source code must retain the above copyright 939212Sgibbs * notice, this list of conditions and the following disclaimer. 1039212Sgibbs * 2. Redistributions in binary form must reproduce the above copyright 1139212Sgibbs * notice, this list of conditions and the following disclaimer in the 1239212Sgibbs * documentation and/or other materials provided with the distribution. 1339212Sgibbs * 3. All advertising materials mentioning features or use of this software 1439212Sgibbs * must display the following acknowledgement: 1539212Sgibbs * This product includes software developed by the University of 1639212Sgibbs * California, Berkeley and its contributors. 1739212Sgibbs * 4. Neither the name of the University nor the names of its contributors 1839212Sgibbs * may be used to endorse or promote products derived from this software 1939212Sgibbs * without specific prior written permission. 2039212Sgibbs * 2139212Sgibbs * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2239212Sgibbs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2339212Sgibbs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2439212Sgibbs * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2539212Sgibbs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2639212Sgibbs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2739212Sgibbs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28116161Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29116161Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30116161Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31116161Sobrien * SUCH DAMAGE. 3239212Sgibbs * 3374840Sken * @(#)err.h 8.1 (Berkeley) 6/2/93 3474840Sken */ 3589114Smsmith 3689114Smsmith#ifndef _ERR_H_ 3774840Sken#define _ERR_H_ 3874840Sken 3974840Sken/* 40194189Sed * Don't use va_list in the err/warn prototypes. Va_list is typedef'd in two 4174840Sken * places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one 4274840Sken * of them here we may collide with the utility's includes. It's unreasonable 4339212Sgibbs * for utilities to have to include one of them to include err.h, so we get 4474840Sken * _BSD_VA_LIST_ from <machine/ansi.h> and use it. 4574840Sken */ 4674840Sken#include <machine/ansi.h> 4739212Sgibbs#include <sys/cdefs.h> 4874840Sken 4974840Sken__BEGIN_DECLS 50195534Sscottl__dead void err __P((int, const char *, ...)); 5174840Sken__dead void verr __P((int, const char *, _BSD_VA_LIST_)); 5274840Sken__dead void errx __P((int, const char *, ...)); 5374840Sken__dead void verrx __P((int, const char *, _BSD_VA_LIST_)); 5474840Skenvoid warn __P((const char *, ...)); 5574840Skenvoid vwarn __P((const char *, _BSD_VA_LIST_)); 5674840Skenvoid warnx __P((const char *, ...)); 5774840Skenvoid vwarnx __P((const char *, _BSD_VA_LIST_)); 5874840Sken__END_DECLS 5974840Sken 6074840Sken#endif /* !_ERR_H_ */ 6174840Sken