diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 3e21cbf90..7d6ea9029 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -489,6 +489,8 @@ int create_and_bind_dgram_or_die(const char *bindaddr, int port) FAST_FUNC; | |||
489 | int create_and_connect_stream_or_die(const char *peer, int port) FAST_FUNC; | 489 | int create_and_connect_stream_or_die(const char *peer, int port) FAST_FUNC; |
490 | /* Connect to peer identified by lsa */ | 490 | /* Connect to peer identified by lsa */ |
491 | int xconnect_stream(const len_and_sockaddr *lsa) FAST_FUNC; | 491 | int xconnect_stream(const len_and_sockaddr *lsa) FAST_FUNC; |
492 | /* Get local address of bound or accepted socket */ | ||
493 | len_and_sockaddr *get_sock_lsa(int fd) FAST_FUNC; | ||
492 | /* Return malloc'ed len_and_sockaddr with socket address of host:port | 494 | /* Return malloc'ed len_and_sockaddr with socket address of host:port |
493 | * Currently will return IPv4 or IPv6 sockaddrs only | 495 | * Currently will return IPv4 or IPv6 sockaddrs only |
494 | * (depending on host), but in theory nothing prevents e.g. | 496 | * (depending on host), but in theory nothing prevents e.g. |
@@ -607,6 +609,7 @@ extern ssize_t safe_write(int fd, const void *buf, size_t count) FAST_FUNC; | |||
607 | // if some data was written before error occurred | 609 | // if some data was written before error occurred |
608 | extern ssize_t full_write(int fd, const void *buf, size_t count) FAST_FUNC; | 610 | extern ssize_t full_write(int fd, const void *buf, size_t count) FAST_FUNC; |
609 | extern void xwrite(int fd, const void *buf, size_t count) FAST_FUNC; | 611 | extern void xwrite(int fd, const void *buf, size_t count) FAST_FUNC; |
612 | extern void xwrite_str(int fd, const char *str) FAST_FUNC; | ||
610 | extern void xopen_xwrite_close(const char* file, const char *str) FAST_FUNC; | 613 | extern void xopen_xwrite_close(const char* file, const char *str) FAST_FUNC; |
611 | 614 | ||
612 | /* Reads and prints to stdout till eof, then closes FILE. Exits on error: */ | 615 | /* Reads and prints to stdout till eof, then closes FILE. Exits on error: */ |