summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen2001-03-19 19:24:06 +0000
committerEric Andersen2001-03-19 19:24:06 +0000
commitb183dfad2daea713e712470d206b0f0287331083 (patch)
tree26a1f1080be5f9f44c72b45b72aae743d74685dd /include
parentcc165b9083e8e4fb01992a8e0d97ecf08cb6dcdd (diff)
downloadbusybox-b183dfad2daea713e712470d206b0f0287331083.zip
busybox-b183dfad2daea713e712470d206b0f0287331083.tar.gz
Split error messages into separate files.
Update libbb.h, per suggestion from Vladimir, to include __attribute__((format (printf ...))) stuff -Erik
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index a85987d..4c23b2b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -68,11 +68,15 @@ static inline int is_octal(ch) { return ((ch >= '0') && (ch <= '7')); }
extern void show_usage(void) __attribute__ ((noreturn));
-extern void error_msg(const char *s, ...);
-extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn));
+extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
+extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
extern void perror_msg(const char *s, ...);
extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn));
+/* These two are used internally -- you shouldn't need to use them */
+extern void verror_msg(const char *s, va_list p);
+extern void vperror_msg(const char *s, va_list p);
+
const char *mode_string(int mode);
const char *time_string(time_t timeVal);
int is_directory(const char *name, const int followLinks, struct stat *statBuf);