diff options
author | Hyejin Kim <hyejin0906.kim@samsung.com> | 2015-08-12 11:22:10 +0900 |
---|---|---|
committer | Hyejin Kim <hyejin0906.kim@samsung.com> | 2015-08-12 11:22:10 +0900 |
commit | c55b214458bed6f6c6dc57e3fccfc8dc8558e7ee (patch) | |
tree | 393225b618c69acab92208a350c401c408fcc252 /lib/lib.h | |
parent | c353de2e55d0f64f4b11dbc242f8319674650c54 (diff) | |
parent | 05499787ca89fa4b017c2441e89020799f02e4c1 (diff) | |
download | toybox-c55b214458bed6f6c6dc57e3fccfc8dc8558e7ee.tar.gz toybox-c55b214458bed6f6c6dc57e3fccfc8dc8558e7ee.tar.bz2 toybox-c55b214458bed6f6c6dc57e3fccfc8dc8558e7ee.zip |
Merge remote-tracking branch 'toybox/master' into upstreamupstream
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -160,6 +160,7 @@ long xstrtol(char *str, char **end, int base); long atolx(char *c); long atolx_range(char *numstr, long low, long high); int stridx(char *haystack, char needle); +char *strlower(char *s); int unescape(char c); int strstart(char **a, char *b); off_t fdlength(int fd); @@ -176,7 +177,9 @@ void replace_tempfile(int fdin, int fdout, char **tempname); void crc_init(unsigned int *crc_table, int little_endian); void base64_init(char *p); int yesno(char *prompt, int def); -int human_readable(char *buf, unsigned long long num); +#define HR_SPACE 1 +#define HR_B 2 +int human_readable(char *buf, unsigned long long num, int style); int qstrcmp(const void *a, const void *b); int xpoll(struct pollfd *fds, int nfds, int timeout); @@ -204,6 +207,8 @@ void tty_sigreset(int i); // net.c int xsocket(int domain, int type, int protocol); void xsetsockopt(int fd, int level, int opt, void *val, socklen_t len); +int xconnect(char *host, char *port, int family, int socktype, int protocol, + int flags); // password.c int get_salt(char *salt, char * algo); |