aboutsummaryrefslogtreecommitdiff
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* preparatory cleanups for seamless uncompression improvementsDenys Vlasenko2012-03-061-0/+8
| | | | | | | | | | | | unpack_gz_stream_with_info: fix buggy error check man: fix possible accesses past the end of a string move seamless uncompression helpers from read_printf.c to open_transformer.c function old new delta show_manpage 153 212 +59 unpack_gz_stream_with_info 520 539 +19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* blkid: if parameters are given, do not scan /devDenys Vlasenko2012-03-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: add support for PAX-encoded path=LONGFILENAMEDenys Vlasenko2012-02-231-4/+5
| | | | | | | function old new delta get_header_tar 1478 1759 +281 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make unix (local) sockets work without IPv6 enabledJonh Wendell2012-02-091-5/+0
| | | | | | | | | | | | | | | | | The xsocket_type() function had an optional "family" argument that was enabled only if IPv6 is enabled. In the case of the function was called with a valid AF_UNIX argument, and IPv6 is disabled, this argument was silently ignored. This patch makes the "family" argument mandatory, while keeping the old behavior i.e., if AF_UNSPEC is passed, we try first IPv6 (if it's enabled) and fallback to IPv4. Also I changed all callers of xsocket_type() to reflect its new interface. Signed-off-by: Jonh Wendell <jonh.wendell@vexcorp.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: do not treat non-leading '#' chars as start of comment. Closes 4676Denys Vlasenko2012-01-111-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move include <shadow.h> close to pwd.h and grp.h includesDenys Vlasenko2012-01-081-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move Adroid endgrent() and endpwent() NOPS to libbb.hDenys Vlasenko2012-01-082-7/+6
| | | | | | They should be after includes of pwd.h and grp.h Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform.h: define endgrent() and endpwent() as no-ops on AndroidDenys Vlasenko2012-01-063-2/+7
| | | | | | Surprisingly, bionic libc seems to lack these functions. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: remove is_directory's argument which is always NULLDenys Vlasenko2011-12-181-1/+1
| | | | | | | | | | | | function old new delta send_cgi_and_exit 892 890 -2 ln_main 447 445 -2 handle_incoming_and_exit 2784 2780 -4 is_directory 66 59 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 2/-19) Total: -15 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: finish support of classless static routesMichael McTernan2011-12-161-0/+9
| | | | | | | | function old new delta udhcp_str2optset 415 532 +117 Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* suppress a "integer overflow in expression" waring on big endian. Closes 4405Denys Vlasenko2011-12-051-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nommu: fix cases where we mangle argv[0][0]Denys Vlasenko2011-11-221-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: add check for bad off_t size detectionDenys Vlasenko2011-11-171-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: tighten up macro codeDenys Vlasenko2011-11-161-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bb_daemonize_or_rexec(): add flag to double-fork; use it in start-stop-daemonPeter Korsgaard2011-11-091-0/+1
| | | | | | | | | | | | Add a DAEMON_DOUBLE_FORK flag to make bb_daemonize double-fork so it isn't a session leader, and hence doesn't get a controlling tty on Linux if a tty is ever opened, similar to how libdaemon's daemon_fork or the big start-stop-daemon does it - And use it in start-stop-daemon. For details, see http://www.win.tue.nl/~aeb/linux/lk/lk-10.html#ss10.3 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: add support for M-b, M-f, M-d, M-BackspaceDenys Vlasenko2011-11-031-17/+29
| | | | | | | | | | | | function old new delta ctrl_left - 96 +96 ctrl_right - 76 +76 static.esccmds 81 93 +12 read_line_input 3876 3885 +9 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 193/0) Total: 193 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: split decode_base64 off read_base64Leonid Lisovskiy2011-10-281-1/+2
| | | | | | | | | | | function old new delta decode_base64 - 182 +182 read_base64 378 255 -123 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 182/-123) Total: 59 bytes Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: remove unused definesDenys Vlasenko2011-10-241-7/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: add support for DHCP option 212 (RFC 5969)Denys Vlasenko2011-10-191-2/+2
| | | | | | | | | | | | | | | The patch is from OpenWRT people. function old new delta xmalloc_optname_optval 637 874 +237 dhcp_option_strings 237 243 +6 dhcp_optflags 68 70 +2 len_of_option_as_string 12 13 +1 dhcp_option_lengths 12 13 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 247/0) Total: 247 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* disable strverscmp usage if we build against uClibc-0.9.31Oliver Metz2011-10-091-1/+1
| | | | | Signed-off-by: Oliver Metz <oliver.metz@googlemail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rename archive.h to bb_archive.h. no code changesDenys Vlasenko2011-09-221-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add INIT_G()'s. No code changes.Denys Vlasenko2011-09-211-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: expand --help so that it's actually useful.Denys Vlasenko2011-09-191-1/+0
| | | | | | | function old new delta packed_usage 28634 28822 +188 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* losetup: implement -r option. Closes 4033.Denys Vlasenko2011-09-121-1/+1
| | | | | | | | | | function old new delta packed_usage 28595 28633 +38 losetup_main 285 290 +5 singlemount 906 908 +2 set_loop 674 672 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: URL-decode user:password before base64-encoding it into auth hdr. ↵Denys Vlasenko2011-09-111-0/+9
| | | | | | | | | | | | | | | Closes 3625. function old new delta percent_decode_in_place - 152 +152 parse_url 304 317 +13 handle_incoming_and_exit 2795 2798 +3 httpd_main 763 760 -3 decodeString 152 - -152 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/1 up/down: 168/-155) Total: 13 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stop declariong our own dirname prototypeDenys Vlasenko2011-09-101-6/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Android build fixes and alternate (hopefully simpler) defconfig for itDenys Vlasenko2011-09-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking: consolidate the IP checksum code. -129 bytes.Baruch Siach2011-09-071-0/+1
| | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: remove SAVE_HISTORY bit, ->hist_file can be used as indicatorDenys Vlasenko2011-09-041-7/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: add support for history saving on exitDenys Vlasenko2011-09-041-0/+9
| | | | | | Based on the patch by Dennis Groenen <tj.groenen@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fixes for FreeBSD buildMatthias Andree2011-08-281-0/+2
| | | | | Signed-off-by: Matthias Andree <mandree@freebsd.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hostid: fix behavior on identifiers starting with zerosPere Orga2011-08-161-1/+0
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove extra IF_WHO()Denys Vlasenko2011-08-091-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: work around sysinfo.h versus linux/*.h problemsDenys Vlasenko2011-07-261-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: do not use homegrown struct sysinfo.Denys Vlasenko2011-07-251-19/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more tweak for bionicDenys Vlasenko2011-07-081-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform.h: tweaks for cygwinDenys Vlasenko2011-07-081-1/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Use the _unlocked stdio macros only when they're all availableDan Fandrich2011-06-302-21/+25
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: tweak _unlocked hackDenys Vlasenko2011-06-301-36/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Use the built-in getline on more systems that don't have itDan Fandrich2011-06-301-5/+13
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform.c: provide getline implementationTimo Teras2011-06-291-0/+5
| | | | | Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: fix regex search, make it selectable in configWalter Harms2011-06-271-1/+0
| | | | | | | | | | function old new delta char_search 134 214 +80 find_pair 187 169 -18 mycmp 37 - -37 Signed-off-by: Walter Harms <wharms@bfs.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix HAVE_STRVERSCMP check; add check for older uclibc versionsDenys Vlasenko2011-06-211-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* groups: new appletTito Ragusa2011-06-211-1/+0
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add HAVE_STRVERSCMP, guard the only usage of strverscmp with #ifdefDenys Vlasenko2011-06-211-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: use _unlocked variants of stdio I/O.Denys Vlasenko2011-06-201-0/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* parse_config: use getline. BIG speedup with glibc (~40%).Timo Teras2011-06-201-1/+2
| | | | | | | | | | | | | | | | | | | | | function old new delta config_read 559 604 +45 getline - 23 +23 config_close 29 49 +20 find_pair 169 187 +18 showmode 330 338 +8 hash_find 233 234 +1 builtin_umask 133 132 -1 lzo1x_optimize 1434 1429 -5 test_main 253 247 -6 buffer_fill_and_print 196 179 -17 create_J 1849 1826 -23 config_free_data 37 - -37 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 5/5 up/down: 138/-89) Total: 26 bytes Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* procps: remove PSSCAN_STAT define, users were using it incorrectlyDenys Vlasenko2011-06-181-7/+0
| | | | | | Also contains small cleanups ps. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: split bb_get_chunk_from_file and bb_get_chunk_with_continuationDenys Vlasenko2011-06-171-1/+5
| | | | | | | | | | | | | | | | | | This also moves bb_get_chunk_with_continuation into its sole user, parse_config.c. This allows to optimize both functions separately, they need to be optimized for speed. (this need was highlighted by slow modprobe caused in part by slow bb_get_chunk_with_continuation in config parser). function old new delta bb_get_chunk_from_file 7 130 +123 config_read 457 558 +101 bb_get_chunk_with_continuation 194 - -194 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 2/0 up/down: 224/-194) Total: 30 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: simplify Ethernet header includesDan Fandrich2011-06-101-3/+10
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>