aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-29 23:29:45 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-29 23:29:45 +0200
commit9ddc65812d3ddc2054823e084d0f148246a87b0e (patch)
tree2de38cd7444930fea1216d2edb17f127942f35d7 /include
parentadd _PORTABLE_SOURCE (diff)
downloadslibc-9ddc65812d3ddc2054823e084d0f148246a87b0e.tar.gz
slibc-9ddc65812d3ddc2054823e084d0f148246a87b0e.tar.bz2
slibc-9ddc65812d3ddc2054823e084d0f148246a87b0e.tar.xz
m err.h
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r--include/err.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/include/err.h b/include/err.h
index 2599feb..dd81a4f 100644
--- a/include/err.h
+++ b/include/err.h
@@ -34,6 +34,8 @@
* Print a warning to stderr, followed by a description
* of the value of `errno`.
*
+ * This is a non-standard BSD extension.
+ *
* @param format Formatting-string for the warning.
* @param ... Formatting-arguments.
*/
@@ -44,16 +46,19 @@ void warn(const char* format, ...)
* Print a warning to stderr, followed by a description
* of the value of `errno`.
*
+ * This is a non-standard BSD extension.
+ *
* @param format Formatting-string for the warning.
* @param args Formatting-arguments.
*/
-void vwarn(const char* format, va_list args)
- __GCC_ONLY(__attribute__((format(printf, 1, 2))));
+void vwarn(const char* format, va_list args);
/**
* Print a warning to stderr, but do not print a
* description of the value of `errno`.
*
+ * This is a non-standard BSD extension.
+ *
* @param format Formatting-string for the warning.
* @param ... Formatting-arguments.
*/
@@ -64,16 +69,19 @@ void warnx(const char* format, ...)
* Print a warning to stderr, but do not print a
* description of the value of `errno`.
*
+ * This is a non-standard BSD extension.
+ *
* @param format Formatting-string for the warning.
* @param args Formatting-arguments.
*/
-void vwarnx(const char* format, va_list args)
- __GCC_ONLY(__attribute__((format(printf, 1, 2))));
+void vwarnx(const char* format, va_list args);
/**
* Print an error message to stderr, followed by a
* description of the value of `errno`. Then exit the process.
*
+ * This is a non-standard BSD extension.
+ *
* @parma status The exit status the process should have.
* @param format Formatting-string for the warning.
* @param ... Formatting-arguments.
@@ -85,17 +93,20 @@ void err(int status, const char* format, ...)
* Print an error message to stderr, followed by a
* description of the value of `errno`. Then exit the process.
*
+ * This is a non-standard BSD extension.
+ *
* @parma status The exit status the process should have.
* @param format Formatting-string for the warning.
* @param args Formatting-arguments.
*/
-void verr(int status, const char* format, va_list args)
- __noreturn __GCC_ONLY(__attribute__((format(printf, 2, 3))));
+void verr(int status, const char* format, va_list args) __noreturn;
/**
* Print an error message to stderr, but do not print a
* description of the value of `errno`. Then exit the process.
*
+ * This is a non-standard BSD extension.
+ *
* @parma status The exit status the process should have.
* @param format Formatting-string for the warning.
* @param ... Formatting-arguments.
@@ -107,12 +118,13 @@ void errx(int status, const char* format, ...)
* Print an error message to stderr, but do not print a
* description of the value of `errno`. Then exit the process.
*
+ * This is a non-standard BSD extension.
+ *
* @parma status The exit status the process should have.
* @param format Formatting-string for the warning.
* @param args Formatting-arguments.
*/
-void verrx(int status, const char* format, va_list args)
- __noreturn __GCC_ONLY(__attribute__((format(printf, 2, 3))));
+void verrx(int status, const char* format, va_list args) __noreturn;