aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 a85987d9e..4c23b2b80 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -68,11 +68,15 @@ static inline int is_octal(ch) { return ((ch >= '0') && (ch <= '7')); }
68 68
69 69
70extern void show_usage(void) __attribute__ ((noreturn)); 70extern void show_usage(void) __attribute__ ((noreturn));
71extern void error_msg(const char *s, ...); 71extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
72extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); 72extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
73extern void perror_msg(const char *s, ...); 73extern void perror_msg(const char *s, ...);
74extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); 74extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn));
75 75
76/* These two are used internally -- you shouldn't need to use them */
77extern void verror_msg(const char *s, va_list p);
78extern void vperror_msg(const char *s, va_list p);
79
76const char *mode_string(int mode); 80const char *mode_string(int mode);
77const char *time_string(time_t timeVal); 81const char *time_string(time_t timeVal);
78int is_directory(const char *name, const int followLinks, struct stat *statBuf); 82int is_directory(const char *name, const int followLinks, struct stat *statBuf);