158447Sbostic /*- 2*61068Sbostic * Copyright (c) 1993 3*61068Sbostic * The Regents of the University of California. All rights reserved. 458447Sbostic * 558447Sbostic * %sccs.include.redist.c% 658447Sbostic * 7*61068Sbostic * @(#)err.h 8.1 (Berkeley) 06/02/93 858447Sbostic */ 958447Sbostic 1058447Sbostic #ifndef _ERR_H_ 1158447Sbostic #define _ERR_H_ 1258447Sbostic 1358447Sbostic /* 1458447Sbostic * Don't use va_list in the err/warn prototypes. Va_list is typedef'd in two 1558447Sbostic * places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one 1658447Sbostic * of them here we may collide with the utility's includes. It's unreasonable 1758447Sbostic * for utilities to have to include one of them to include err.h, so we get 1858447Sbostic * _BSD_VA_LIST_ from <machine/ansi.h> and use it. 1958447Sbostic */ 2058447Sbostic #include <machine/ansi.h> 2158447Sbostic #include <sys/cdefs.h> 2258447Sbostic 2358447Sbostic __BEGIN_DECLS 2458447Sbostic __dead void err __P((int, const char *, ...)); 2558447Sbostic __dead void verr __P((int, const char *, _BSD_VA_LIST_)); 2658447Sbostic __dead void errx __P((int, const char *, ...)); 2758447Sbostic __dead void verrx __P((int, const char *, _BSD_VA_LIST_)); 2858447Sbostic void warn __P((const char *, ...)); 2958447Sbostic void vwarn __P((const char *, _BSD_VA_LIST_)); 3058447Sbostic void warnx __P((const char *, ...)); 3158447Sbostic void vwarnx __P((const char *, _BSD_VA_LIST_)); 3258447Sbostic __END_DECLS 3358447Sbostic 3458447Sbostic #endif /* !_ERR_H_ */ 35