aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2013-08-27 16:10:53 +0100
committerRon Yorston <rmy@pobox.com>2013-08-27 16:10:53 +0100
commit3fd34651ea72ea1c335d3170f234cb0517fd897f (patch)
tree36e8fc40cffd464ffda4759020777dd3ca23ca31 /include/libbb.h
parente3ac39098326de084a805d0dd31db9666b734f20 (diff)
parentd6ae4fb446daedfe3073d67be655942e9fa7eb18 (diff)
downloadbusybox-w32-3fd34651ea72ea1c335d3170f234cb0517fd897f.tar.gz
busybox-w32-3fd34651ea72ea1c335d3170f234cb0517fd897f.tar.bz2
busybox-w32-3fd34651ea72ea1c335d3170f234cb0517fd897f.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/include/libbb.h b/include/libbb.h
index f5b7d8dc7..9adb037ca 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -496,9 +496,9 @@ int xmkstemp(char *template) FAST_FUNC;
496off_t fdlength(int fd) FAST_FUNC; 496off_t fdlength(int fd) FAST_FUNC;
497 497
498uoff_t FAST_FUNC get_volume_size_in_bytes(int fd, 498uoff_t FAST_FUNC get_volume_size_in_bytes(int fd,
499 const char *override, 499 const char *override,
500 unsigned override_units, 500 unsigned override_units,
501 int extend); 501 int extend);
502 502
503void xpipe(int filedes[2]) FAST_FUNC; 503void xpipe(int filedes[2]) FAST_FUNC;
504/* In this form code with pipes is much more readable */ 504/* In this form code with pipes is much more readable */
@@ -691,6 +691,13 @@ const char* FAST_FUNC printable_string(uni_stat_t *stats, const char *str);
691 * else it is printed as-is (except for ch = 0x9b) */ 691 * else it is printed as-is (except for ch = 0x9b) */
692enum { PRINTABLE_META = 0x100 }; 692enum { PRINTABLE_META = 0x100 };
693void fputc_printable(int ch, FILE *file) FAST_FUNC; 693void fputc_printable(int ch, FILE *file) FAST_FUNC;
694/* Return a string that is the printable representation of character ch.
695 * Buffer must hold at least four characters. */
696enum {
697 VISIBLE_ENDLINE = 1 << 0,
698 VISIBLE_SHOW_TABS = 1 << 1,
699};
700void visible(unsigned ch, char *buf, int flags) FAST_FUNC;
694 701
695/* dmalloc will redefine these to it's own implementation. It is safe 702/* dmalloc will redefine these to it's own implementation. It is safe
696 * to have the prototypes here unconditionally. */ 703 * to have the prototypes here unconditionally. */
@@ -848,6 +855,9 @@ struct suffix_mult {
848 char suffix[4]; 855 char suffix[4];
849 unsigned mult; 856 unsigned mult;
850}; 857};
858extern const struct suffix_mult bkm_suffixes[];
859#define km_suffixes (bkm_suffixes + 1)
860
851#include "xatonum.h" 861#include "xatonum.h"
852/* Specialized: */ 862/* Specialized: */
853 863
@@ -1125,9 +1135,6 @@ void bb_displayroutes(int noresolve, int netstatfmt) FAST_FUNC;
1125 1135
1126 1136
1127/* Networking */ 1137/* Networking */
1128int create_icmp_socket(void) FAST_FUNC;
1129int create_icmp6_socket(void) FAST_FUNC;
1130/* interface.c */
1131/* This structure defines protocol families and their handlers. */ 1138/* This structure defines protocol families and their handlers. */
1132struct aftype { 1139struct aftype {
1133 const char *name; 1140 const char *name;
@@ -1156,6 +1163,7 @@ struct hwtype {
1156}; 1163};
1157extern smallint interface_opt_a; 1164extern smallint interface_opt_a;
1158int display_interfaces(char *ifname) FAST_FUNC; 1165int display_interfaces(char *ifname) FAST_FUNC;
1166int in_ether(const char *bufp, struct sockaddr *sap) FAST_FUNC;
1159#if ENABLE_FEATURE_HWIB 1167#if ENABLE_FEATURE_HWIB
1160int in_ib(const char *bufp, struct sockaddr *sap) FAST_FUNC; 1168int in_ib(const char *bufp, struct sockaddr *sap) FAST_FUNC;
1161#else 1169#else
@@ -1452,7 +1460,7 @@ void read_key_ungets(char *buffer, const char *str, unsigned len) FAST_FUNC;
1452/* It's NOT just ENABLEd or disabled. It's a number: */ 1460/* It's NOT just ENABLEd or disabled. It's a number: */
1453# if defined CONFIG_FEATURE_EDITING_HISTORY && CONFIG_FEATURE_EDITING_HISTORY > 0 1461# if defined CONFIG_FEATURE_EDITING_HISTORY && CONFIG_FEATURE_EDITING_HISTORY > 0
1454# define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0) 1462# define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0)
1455unsigned size_from_HISTFILESIZE(const char *hp); 1463unsigned size_from_HISTFILESIZE(const char *hp) FAST_FUNC;
1456# else 1464# else
1457# define MAX_HISTORY 0 1465# define MAX_HISTORY 0
1458# endif 1466# endif
@@ -1494,6 +1502,7 @@ line_input_t *new_line_input_t(int flags) FAST_FUNC;
1494 * >0 length of input string, including terminating '\n' 1502 * >0 length of input string, including terminating '\n'
1495 */ 1503 */
1496int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize, int timeout) FAST_FUNC; 1504int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize, int timeout) FAST_FUNC;
1505void show_history(const line_input_t *st) FAST_FUNC;
1497# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT 1506# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT
1498void save_history(line_input_t *st); 1507void save_history(line_input_t *st);
1499# endif 1508# endif
@@ -1825,7 +1834,7 @@ extern const char bb_default_login_shell[] ALIGN1;
1825# define VC_4 "/dev/vc/4" 1834# define VC_4 "/dev/vc/4"
1826# define VC_5 "/dev/vc/5" 1835# define VC_5 "/dev/vc/5"
1827# define VC_FORMAT "/dev/vc/%d" 1836# define VC_FORMAT "/dev/vc/%d"
1828# define LOOP_FORMAT "/dev/loop/%d" 1837# define LOOP_FORMAT "/dev/loop/%u"
1829# define LOOP_NAMESIZE (sizeof("/dev/loop/") + sizeof(int)*3 + 1) 1838# define LOOP_NAMESIZE (sizeof("/dev/loop/") + sizeof(int)*3 + 1)
1830# define LOOP_NAME "/dev/loop/" 1839# define LOOP_NAME "/dev/loop/"
1831# define FB_0 "/dev/fb/0" 1840# define FB_0 "/dev/fb/0"
@@ -1838,7 +1847,7 @@ extern const char bb_default_login_shell[] ALIGN1;
1838# define VC_4 "/dev/tty4" 1847# define VC_4 "/dev/tty4"
1839# define VC_5 "/dev/tty5" 1848# define VC_5 "/dev/tty5"
1840# define VC_FORMAT "/dev/tty%d" 1849# define VC_FORMAT "/dev/tty%d"
1841# define LOOP_FORMAT "/dev/loop%d" 1850# define LOOP_FORMAT "/dev/loop%u"
1842# define LOOP_NAMESIZE (sizeof("/dev/loop") + sizeof(int)*3 + 1) 1851# define LOOP_NAMESIZE (sizeof("/dev/loop") + sizeof(int)*3 + 1)
1843# define LOOP_NAME "/dev/loop" 1852# define LOOP_NAME "/dev/loop"
1844# define FB_0 "/dev/fb0" 1853# define FB_0 "/dev/fb0"