diff options
| author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-16 15:40:51 +0000 |
|---|---|---|
| committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-16 15:40:51 +0000 |
| commit | 7ee6d7639da2e6f8ec5c282f2dab4e66fa359743 (patch) | |
| tree | 03c1fca61c1b577b7c527d2b8482c5b7f6972bcd /include | |
| parent | bbb602f480533eb3bdc18187065b3b5616482f4a (diff) | |
| download | busybox-w32-7ee6d7639da2e6f8ec5c282f2dab4e66fa359743.tar.gz busybox-w32-7ee6d7639da2e6f8ec5c282f2dab4e66fa359743.tar.bz2 busybox-w32-7ee6d7639da2e6f8ec5c282f2dab4e66fa359743.zip | |
Add xgethostbyname and herror_msg* functions.
git-svn-id: svn://busybox.net/trunk/busybox@2654 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 7ab06388a..29a756b7f 100644 --- a/include/libbb.h +++ b/include/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 |
