diff options
author | Matt Kraai <kraai@debian.org> | 2001-05-16 15:40:51 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-05-16 15:40:51 +0000 |
commit | c55b8d41c15640fa1637f919b3f6eca6e781047a (patch) | |
tree | 03c1fca61c1b577b7c527d2b8482c5b7f6972bcd /libbb/libbb.h | |
parent | 59df6f73988b103f0dcfffeaec10642527336c5e (diff) | |
download | busybox-w32-c55b8d41c15640fa1637f919b3f6eca6e781047a.tar.gz busybox-w32-c55b8d41c15640fa1637f919b3f6eca6e781047a.tar.bz2 busybox-w32-c55b8d41c15640fa1637f919b3f6eca6e781047a.zip |
Add xgethostbyname and herror_msg* functions.
Diffstat (limited to 'libbb/libbb.h')
-rw-r--r-- | libbb/libbb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbb/libbb.h b/libbb/libbb.h index 7ab06388a..29a756b7f 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h | |||
@@ -29,6 +29,8 @@ | |||
29 | #include <sys/stat.h> | 29 | #include <sys/stat.h> |
30 | #include <sys/types.h> | 30 | #include <sys/types.h> |
31 | 31 | ||
32 | #include <netdb.h> | ||
33 | |||
32 | #ifdef DMALLOC | 34 | #ifdef DMALLOC |
33 | #include "dmalloc.h" | 35 | #include "dmalloc.h" |
34 | #endif | 36 | #endif |
@@ -77,6 +79,9 @@ extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)) | |||
77 | extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 79 | extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); |
78 | extern void perror_msg(const char *s, ...); | 80 | extern void perror_msg(const char *s, ...); |
79 | extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); | 81 | extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); |
82 | extern void vherror_msg(const char *s, va_list p); | ||
83 | extern void herror_msg(const char *s, ...); | ||
84 | extern void herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); | ||
80 | 85 | ||
81 | /* These two are used internally -- you shouldn't need to use them */ | 86 | /* These two are used internally -- you shouldn't need to use them */ |
82 | extern void verror_msg(const char *s, va_list p); | 87 | 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); | |||
252 | extern void gz_close(int gunzip_pid); | 257 | extern void gz_close(int gunzip_pid); |
253 | extern int gz_open(FILE *compressed_file, int *pid); | 258 | extern int gz_open(FILE *compressed_file, int *pid); |
254 | 259 | ||
260 | extern struct hostent *xgethostbyname(const char *name); | ||
261 | |||
255 | #define CT_AUTO 0 | 262 | #define CT_AUTO 0 |
256 | #define CT_UNIX2DOS 1 | 263 | #define CT_UNIX2DOS 1 |
257 | #define CT_DOS2UNIX 2 | 264 | #define CT_DOS2UNIX 2 |