devname moves in from ps, getbsize moves in from df
[unix-history] / usr / src / include / err.h
CommitLineData
c60064b7
KB
1/*-
2 * Copyright (c) 1993 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
7 * @(#)err.h 5.1 (Berkeley) %G%
8 */
9
10#ifndef _ERR_H_
11#define _ERR_H_
12
13/*
14 * Don't use va_list in the err/warn prototypes. Va_list is typedef'd in two
15 * places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one
16 * of them here we may collide with the utility's includes. It's unreasonable
17 * for utilities to have to include one of them to include err.h, so we get
18 * _BSD_VA_LIST_ from <machine/ansi.h> and use it.
19 */
20#include <machine/ansi.h>
21#include <sys/cdefs.h>
22
23__BEGIN_DECLS
24__dead void err __P((int, const char *, ...));
25__dead void verr __P((int, const char *, _BSD_VA_LIST_));
26__dead void errx __P((int, const char *, ...));
27__dead void verrx __P((int, const char *, _BSD_VA_LIST_));
28void warn __P((const char *, ...));
29void vwarn __P((const char *, _BSD_VA_LIST_));
30void warnx __P((const char *, ...));
31void vwarnx __P((const char *, _BSD_VA_LIST_));
32__END_DECLS
33
34#endif /* !_ERR_H_ */