From 00657c96b9b3963230d89ccc3dc2959d034673e7 Mon Sep 17 00:00:00 2001 From: aldot Date: Wed, 12 Apr 2006 17:55:51 +0000 Subject: - patch from Denis Vlasenko to add and use bb_xsocket() and to use bb_xopen some more while at it. Also use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@14833 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- include/libbb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index d3634f95d..c031f2841 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -145,6 +145,7 @@ extern int bb_fclose_nonstdin(FILE *f); extern void bb_fflush_stdout_and_exit(int retval) ATTRIBUTE_NORETURN; extern void xstat(const char *filename, struct stat *buf); +extern int bb_xsocket(int domain, int type, int protocol); #define BB_GETOPT_ERROR 0x80000000UL extern const char *bb_opt_complementally; -- cgit v1.2.3-55-g6feb