diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 136d4fd87..2e20706e7 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -561,6 +561,11 @@ void xlisten(int s, int backlog) FAST_FUNC; | |||
| 561 | void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) FAST_FUNC; | 561 | void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) FAST_FUNC; |
| 562 | ssize_t xsendto(int s, const void *buf, size_t len, const struct sockaddr *to, | 562 | ssize_t xsendto(int s, const void *buf, size_t len, const struct sockaddr *to, |
| 563 | socklen_t tolen) FAST_FUNC; | 563 | socklen_t tolen) FAST_FUNC; |
| 564 | |||
| 565 | int setsockopt_int(int fd, int level, int optname, int optval) FAST_FUNC; | ||
| 566 | int setsockopt_1(int fd, int level, int optname) FAST_FUNC; | ||
| 567 | int setsockopt_SOL_SOCKET_int(int fd, int optname, int optval) FAST_FUNC; | ||
| 568 | int setsockopt_SOL_SOCKET_1(int fd, int optname) FAST_FUNC; | ||
| 564 | /* SO_REUSEADDR allows a server to rebind to an address that is already | 569 | /* SO_REUSEADDR allows a server to rebind to an address that is already |
| 565 | * "in use" by old connections to e.g. previous server instance which is | 570 | * "in use" by old connections to e.g. previous server instance which is |
| 566 | * killed or crashed. Without it bind will fail until all such connections | 571 | * killed or crashed. Without it bind will fail until all such connections |
| @@ -568,6 +573,7 @@ ssize_t xsendto(int s, const void *buf, size_t len, const struct sockaddr *to, | |||
| 568 | * regardless of SO_REUSEADDR (unlike some other flavors of Unix). | 573 | * regardless of SO_REUSEADDR (unlike some other flavors of Unix). |
| 569 | * Turn it on before you call bind(). */ | 574 | * Turn it on before you call bind(). */ |
| 570 | void setsockopt_reuseaddr(int fd) FAST_FUNC; /* On Linux this never fails. */ | 575 | void setsockopt_reuseaddr(int fd) FAST_FUNC; /* On Linux this never fails. */ |
| 576 | int setsockopt_keepalive(int fd) FAST_FUNC; | ||
| 571 | int setsockopt_broadcast(int fd) FAST_FUNC; | 577 | int setsockopt_broadcast(int fd) FAST_FUNC; |
| 572 | int setsockopt_bindtodevice(int fd, const char *iface) FAST_FUNC; | 578 | int setsockopt_bindtodevice(int fd, const char *iface) FAST_FUNC; |
| 573 | /* NB: returns port in host byte order */ | 579 | /* NB: returns port in host byte order */ |
| @@ -1807,7 +1813,7 @@ extern const char bb_PATH_root_path[] ALIGN1; /* "PATH=/sbin:/usr/sbin:/bin:/usr | |||
| 1807 | #define bb_default_path (bb_PATH_root_path + sizeof("PATH=/sbin:/usr/sbin")) | 1813 | #define bb_default_path (bb_PATH_root_path + sizeof("PATH=/sbin:/usr/sbin")) |
| 1808 | 1814 | ||
| 1809 | extern const int const_int_0; | 1815 | extern const int const_int_0; |
| 1810 | extern const int const_int_1; | 1816 | //extern const int const_int_1; |
| 1811 | 1817 | ||
| 1812 | 1818 | ||
| 1813 | /* Providing hard guarantee on minimum size (think of BUFSIZ == 128) */ | 1819 | /* Providing hard guarantee on minimum size (think of BUFSIZ == 128) */ |
