Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Add the {v, }{warn, err}c function flavors from FreeBSD
details: https://anonhg.NetBSD.org/src/rev/e69b3adf8453
branches: trunk
changeset: 326038:e69b3adf8453
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 16 17:22:06 2014 +0000
description:
Add the {v,}{warn,err}c function flavors from FreeBSD
diffstat:
include/err.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 60c939f3716b -r e69b3adf8453 include/err.h
--- a/include/err.h Thu Jan 16 17:21:38 2014 +0000
+++ b/include/err.h Thu Jan 16 17:22:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: err.h,v 1.16 2011/07/17 20:54:34 joerg Exp $ */
+/* $NetBSD: err.h,v 1.17 2014/01/16 17:22:06 christos Exp $ */
/*-
* Copyright (c) 1993
@@ -46,6 +46,10 @@
__printflike(2, 3) __dead;
__dead void verrx(int, const char *, va_list)
__printflike(2, 0) __dead;
+__dead void errc(int, int, const char *, ...)
+ __printflike(3, 4) __dead;
+__dead void verrc(int, int, const char *, va_list)
+ __printflike(3, 0) __dead;
void warn(const char *, ...)
__printflike(1, 2);
void vwarn(const char *, va_list)
@@ -54,6 +58,10 @@
__printflike(1, 2);
void vwarnx(const char *, va_list)
__printflike(1, 0);
+void warnc(int, const char *, ...)
+ __printflike(2, 3);
+void vwarnc(int, const char *, va_list)
+ __printflike(2, 0);
__END_DECLS
#endif /* !_ERR_H_ */
Home |
Main Index |
Thread Index |
Old Index