diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bb_archive.h | 4 | ||||
-rw-r--r-- | include/libbb.h | 13 |
2 files changed, 14 insertions, 3 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h index 084ba9470..2182fcc3c 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h | |||
@@ -126,6 +126,10 @@ typedef struct archive_handle_t { | |||
126 | #if ENABLE_FEATURE_AR_CREATE | 126 | #if ENABLE_FEATURE_AR_CREATE |
127 | const char *ar__name; | 127 | const char *ar__name; |
128 | struct archive_handle_t *ar__out; | 128 | struct archive_handle_t *ar__out; |
129 | # if ENABLE_FEATURE_AR_LONG_FILENAMES | ||
130 | char *ar__long_names; | ||
131 | unsigned ar__long_name_size; | ||
132 | # endif | ||
129 | #endif | 133 | #endif |
130 | } archive_handle_t; | 134 | } archive_handle_t; |
131 | /* bits in ah_flags */ | 135 | /* bits in ah_flags */ |
diff --git a/include/libbb.h b/include/libbb.h index 876875045..fb9167ce3 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -681,6 +681,11 @@ int setsockopt_bindtodevice(int fd, const char *iface) FAST_FUNC; | |||
681 | int bb_getsockname(int sockfd, void *addr, socklen_t addrlen) FAST_FUNC; | 681 | int bb_getsockname(int sockfd, void *addr, socklen_t addrlen) FAST_FUNC; |
682 | /* NB: returns port in host byte order */ | 682 | /* NB: returns port in host byte order */ |
683 | unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port) FAST_FUNC; | 683 | unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port) FAST_FUNC; |
684 | #if ENABLE_FEATURE_ETC_SERVICES | ||
685 | # define bb_lookup_std_port(portstr, protocol, portnum) bb_lookup_port(portstr, protocol, portnum) | ||
686 | #else | ||
687 | # define bb_lookup_std_port(portstr, protocol, portnum) (portnum) | ||
688 | #endif | ||
684 | typedef struct len_and_sockaddr { | 689 | typedef struct len_and_sockaddr { |
685 | socklen_t len; | 690 | socklen_t len; |
686 | union { | 691 | union { |
@@ -1645,9 +1650,11 @@ int get_terminal_width_height(int fd, unsigned *width, unsigned *height) FAST_FU | |||
1645 | int get_terminal_width(int fd) FAST_FUNC; | 1650 | int get_terminal_width(int fd) FAST_FUNC; |
1646 | 1651 | ||
1647 | int tcsetattr_stdin_TCSANOW(const struct termios *tp) FAST_FUNC; | 1652 | int tcsetattr_stdin_TCSANOW(const struct termios *tp) FAST_FUNC; |
1648 | #define TERMIOS_CLEAR_ISIG (1 << 0) | 1653 | #define TERMIOS_CLEAR_ISIG (1 << 0) |
1649 | #define TERMIOS_RAW_CRNL (1 << 1) | 1654 | #define TERMIOS_RAW_CRNL_INPUT (1 << 1) |
1650 | #define TERMIOS_RAW_INPUT (1 << 2) | 1655 | #define TERMIOS_RAW_CRNL_OUTPUT (1 << 2) |
1656 | #define TERMIOS_RAW_CRNL (TERMIOS_RAW_CRNL_INPUT|TERMIOS_RAW_CRNL_OUTPUT) | ||
1657 | #define TERMIOS_RAW_INPUT (1 << 3) | ||
1651 | int get_termios_and_make_raw(int fd, struct termios *newterm, struct termios *oldterm, int flags) FAST_FUNC; | 1658 | int get_termios_and_make_raw(int fd, struct termios *newterm, struct termios *oldterm, int flags) FAST_FUNC; |
1652 | int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC; | 1659 | int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC; |
1653 | 1660 | ||