summaryrefslogtreecommitdiffstats
path: root/bin/sh/error.h
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-12-21 20:47:06 +0000
committerjilles <jilles@FreeBSD.org>2010-12-21 20:47:06 +0000
commiteb00352e45c46febb8e2b0df1a048451d79de792 (patch)
tree9100639c6e991583a424211610f1fda83edfd6a2 /bin/sh/error.h
parentda7284d25303e2c3a5c54e86ebdd14fd514eb5f9 (diff)
downloadFreeBSD-src-eb00352e45c46febb8e2b0df1a048451d79de792.zip
FreeBSD-src-eb00352e45c46febb8e2b0df1a048451d79de792.tar.gz
sh: Add a function to print warnings (with command name and newline).
This is like error() but without raising an exception. It is particularly useful as a replacement for the warnx macro in bltin/bltin.h.
Diffstat (limited to 'bin/sh/error.h')
-rw-r--r--bin/sh/error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/error.h b/bin/sh/error.h
index 8b64fe6..bf11c67 100644
--- a/bin/sh/error.h
+++ b/bin/sh/error.h
@@ -80,6 +80,7 @@ extern volatile sig_atomic_t intpending;
void exraise(int) __dead2;
void onint(void);
+void warning(const char *, ...) __printflike(1, 2);
void error(const char *, ...) __printf0like(1, 2) __dead2;
void exerror(int, const char *, ...) __printf0like(2, 3) __dead2;
OpenPOWER on IntegriCloud