Module Name:    src
Committed By:   christos
Date:           Thu Jan 16 17:22:06 UTC 2014

Modified Files:
        src/include: err.h

Log Message:
Add the {v,}{warn,err}c function flavors from FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/include/err.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/err.h
diff -u src/include/err.h:1.16 src/include/err.h:1.17
--- src/include/err.h:1.16	Sun Jul 17 16:54:34 2011
+++ src/include/err.h	Thu Jan 16 12:22:06 2014
@@ -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 @@ __dead void	errx(int, const char *, ...)
 		     __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 @@ void		warnx(const char *, ...)
 		    __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_ */

Reply via email to