summaryrefslogtreecommitdiffstats
path: root/include/err.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-08-21 16:20:02 +0000
committermike <mike@FreeBSD.org>2002-08-21 16:20:02 +0000
commit9e6f796b0d2083dcc48c062853660f96db0a3c8d (patch)
tree7e9e16e835d265de592c113ee6c5d85f9be039cb /include/err.h
parentd5203d1ff8cef07eff72ad400fde5c759623752e (diff)
downloadFreeBSD-src-9e6f796b0d2083dcc48c062853660f96db0a3c8d.zip
FreeBSD-src-9e6f796b0d2083dcc48c062853660f96db0a3c8d.tar.gz
o Merge <machine/ansi.h> and <machine/types.h> into a new header
called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
Diffstat (limited to 'include/err.h')
-rw-r--r--include/err.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/err.h b/include/err.h
index e829e9a..675c708 100644
--- a/include/err.h
+++ b/include/err.h
@@ -42,25 +42,25 @@
* places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one
* of them here we may collide with the utility's includes. It's unreasonable
* for utilities to have to include one of them to include err.h, so we get
- * _BSD_VA_LIST_ from <machine/ansi.h> and use it.
+ * __va_list from <sys/_types.h> and use it.
*/
-#include <machine/ansi.h>
#include <sys/cdefs.h>
+#include <sys/_types.h>
__BEGIN_DECLS
void err(int, const char *, ...) __dead2 __printf0like(2, 3);
-void verr(int, const char *, _BSD_VA_LIST_) __dead2 __printf0like(2, 0);
+void verr(int, const char *, __va_list) __dead2 __printf0like(2, 0);
void errc(int, int, const char *, ...) __dead2 __printf0like(3, 4);
-void verrc(int, int, const char *, _BSD_VA_LIST_) __dead2
+void verrc(int, int, const char *, __va_list) __dead2
__printf0like(3, 0);
void errx(int, const char *, ...) __dead2 __printf0like(2, 3);
-void verrx(int, const char *, _BSD_VA_LIST_) __dead2 __printf0like(2, 0);
+void verrx(int, const char *, __va_list) __dead2 __printf0like(2, 0);
void warn(const char *, ...) __printf0like(1, 2);
-void vwarn(const char *, _BSD_VA_LIST_) __printf0like(1, 0);
+void vwarn(const char *, __va_list) __printf0like(1, 0);
void warnc(int, const char *, ...) __printf0like(2, 3);
-void vwarnc(int, const char *, _BSD_VA_LIST_) __printf0like(2, 0);
+void vwarnc(int, const char *, __va_list) __printf0like(2, 0);
void warnx(const char *, ...) __printflike(1, 2);
-void vwarnx(const char *, _BSD_VA_LIST_) __printflike(1, 0);
+void vwarnx(const char *, __va_list) __printflike(1, 0);
void err_set_file(void *);
void err_set_exit(void (*)(int));
__END_DECLS
OpenPOWER on IntegriCloud