summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatt Kraai2001-05-16 15:40:51 +0000
committerMatt Kraai2001-05-16 15:40:51 +0000
commitc55b8d41c15640fa1637f919b3f6eca6e781047a (patch)
tree03c1fca61c1b577b7c527d2b8482c5b7f6972bcd /include
parent59df6f73988b103f0dcfffeaec10642527336c5e (diff)
downloadbusybox-c55b8d41c15640fa1637f919b3f6eca6e781047a.zip
busybox-c55b8d41c15640fa1637f919b3f6eca6e781047a.tar.gz
Add xgethostbyname and herror_msg* functions.
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 7ab0638..29a756b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -29,6 +29,8 @@
#include <sys/stat.h>
#include <sys/types.h>
+#include <netdb.h>
+
#ifdef DMALLOC
#include "dmalloc.h"
#endif
@@ -77,6 +79,9 @@ 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));
+extern void vherror_msg(const char *s, va_list p);
+extern void herror_msg(const char *s, ...);
+extern void herror_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);
@@ -252,6 +257,8 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file);
extern void gz_close(int gunzip_pid);
extern int gz_open(FILE *compressed_file, int *pid);
+extern struct hostent *xgethostbyname(const char *name);
+
#define CT_AUTO 0
#define CT_UNIX2DOS 1
#define CT_DOS2UNIX 2