aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h
index cf00b5250..f1658945c 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -249,9 +249,10 @@ void xmove_fd(int, int);
249DIR *xopendir(const char *path); 249DIR *xopendir(const char *path);
250DIR *warn_opendir(const char *path); 250DIR *warn_opendir(const char *path);
251 251
252char *xrealloc_getcwd_or_warn(char *cwd); 252/* UNUSED: char *xmalloc_realpath(const char *path); */
253char *xmalloc_readlink(const char *path);
253char *xmalloc_readlink_or_warn(const char *path); 254char *xmalloc_readlink_or_warn(const char *path);
254char *xmalloc_realpath(const char *path); 255char *xrealloc_getcwd_or_warn(char *cwd);
255 256
256 257
257//TODO: signal(sid, f) is the same? then why? 258//TODO: signal(sid, f) is the same? then why?
@@ -317,8 +318,8 @@ enum {
317}; 318};
318/* Create stream socket, and allocate suitable lsa. 319/* Create stream socket, and allocate suitable lsa.
319 * (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6)) 320 * (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6))
320 * af == AF_UNSPEC will result in trying to create IPv6, and 321 * af == AF_UNSPEC will result in trying to create IPv6 socket,
321 * if kernel doesn't support it, IPv4. 322 * and if kernel doesn't support it, IPv4.
322 */ 323 */
323int xsocket_type(len_and_sockaddr **lsap, USE_FEATURE_IPV6(int af,) int sock_type); 324int xsocket_type(len_and_sockaddr **lsap, USE_FEATURE_IPV6(int af,) int sock_type);
324int xsocket_stream(len_and_sockaddr **lsap); 325int xsocket_stream(len_and_sockaddr **lsap);