aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-05-13 08:15:58 +0100
committerRon Yorston <rmy@pobox.com>2018-05-13 08:15:58 +0100
commit3ce461fdf3b7adfd44ea058fa0c5ca6d91a5bc5d (patch)
treea527d0db15f34a137fc11df5538c7f2f7c6d72de /include/libbb.h
parent6f7d1af269eed4b42daeb9c6dfd2ba62f9cd47e4 (diff)
parentd80eecb86812c1fbda652f9b995060c26ba0b155 (diff)
downloadbusybox-w32-3ce461fdf3b7adfd44ea058fa0c5ca6d91a5bc5d.tar.gz
busybox-w32-3ce461fdf3b7adfd44ea058fa0c5ca6d91a5bc5d.tar.bz2
busybox-w32-3ce461fdf3b7adfd44ea058fa0c5ca6d91a5bc5d.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h13
1 files changed, 10 insertions, 3 deletions
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;
681int bb_getsockname(int sockfd, void *addr, socklen_t addrlen) FAST_FUNC; 681int 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 */
683unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port) FAST_FUNC; 683unsigned 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
684typedef struct len_and_sockaddr { 689typedef 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
1645int get_terminal_width(int fd) FAST_FUNC; 1650int get_terminal_width(int fd) FAST_FUNC;
1646 1651
1647int tcsetattr_stdin_TCSANOW(const struct termios *tp) FAST_FUNC; 1652int 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)
1651int get_termios_and_make_raw(int fd, struct termios *newterm, struct termios *oldterm, int flags) FAST_FUNC; 1658int get_termios_and_make_raw(int fd, struct termios *newterm, struct termios *oldterm, int flags) FAST_FUNC;
1652int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC; 1659int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC;
1653 1660