aboutsummaryrefslogtreecommitdiff
path: root/libbb/libbb.h
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-05-16 15:40:51 +0000
committerMatt Kraai <kraai@debian.org>2001-05-16 15:40:51 +0000
commitc55b8d41c15640fa1637f919b3f6eca6e781047a (patch)
tree03c1fca61c1b577b7c527d2b8482c5b7f6972bcd /libbb/libbb.h
parent59df6f73988b103f0dcfffeaec10642527336c5e (diff)
downloadbusybox-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.h7
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))
77extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); 79extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
78extern void perror_msg(const char *s, ...); 80extern void perror_msg(const char *s, ...);
79extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); 81extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn));
82extern void vherror_msg(const char *s, va_list p);
83extern void herror_msg(const char *s, ...);
84extern 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 */
82extern void verror_msg(const char *s, va_list p); 87extern void verror_msg(const char *s, va_list p);
@@ -252,6 +257,8 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file);
252extern void gz_close(int gunzip_pid); 257extern void gz_close(int gunzip_pid);
253extern int gz_open(FILE *compressed_file, int *pid); 258extern int gz_open(FILE *compressed_file, int *pid);
254 259
260extern 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