diff options
Diffstat (limited to 'include/libbb.h')
| -rw-r--r-- | include/libbb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index e5413b1a4..91715c16a 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -334,6 +334,7 @@ enum { | |||
| 334 | }; | 334 | }; |
| 335 | /* Create stream socket, and allocated suitable lsa | 335 | /* Create stream socket, and allocated suitable lsa |
| 336 | * (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6)) */ | 336 | * (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6)) */ |
| 337 | int xsocket_type(len_and_sockaddr **lsap, int sock_type); | ||
| 337 | int xsocket_stream(len_and_sockaddr **lsap); | 338 | int xsocket_stream(len_and_sockaddr **lsap); |
| 338 | /* Create server socket bound to bindaddr:port. bindaddr can be NULL, | 339 | /* Create server socket bound to bindaddr:port. bindaddr can be NULL, |
| 339 | * numeric IP ("N.N.N.N") or numeric IPv6 address, | 340 | * numeric IP ("N.N.N.N") or numeric IPv6 address, |
| @@ -388,6 +389,15 @@ struct hostent *xgethostbyname(const char *name); | |||
| 388 | // + inet_common.c has additional IPv4-only stuff | 389 | // + inet_common.c has additional IPv4-only stuff |
| 389 | 390 | ||
| 390 | 391 | ||
| 392 | void socket_want_pktinfo(int fd); | ||
| 393 | ssize_t send_to_from(int fd, void *buf, size_t len, int flags, | ||
| 394 | const struct sockaddr *from, const struct sockaddr *to, | ||
| 395 | socklen_t tolen); | ||
| 396 | ssize_t recv_from_to(int fd, void *buf, size_t len, int flags, | ||
| 397 | struct sockaddr *from, struct sockaddr *to, | ||
| 398 | socklen_t sa_size); | ||
| 399 | |||
| 400 | |||
| 391 | extern char *xstrdup(const char *s); | 401 | extern char *xstrdup(const char *s); |
| 392 | extern char *xstrndup(const char *s, int n); | 402 | extern char *xstrndup(const char *s, int n); |
| 393 | extern char *safe_strncpy(char *dst, const char *src, size_t size); | 403 | extern char *safe_strncpy(char *dst, const char *src, size_t size); |
