aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* less: stop dying on bad regexps, quietly pipe data w/ovda2006-12-211-1/+10
| | | | | | | | user interaction if stdout is not a tty. size optimizations git-svn-id: svn://busybox.net/trunk/busybox@17028 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce LONE_CHAR (optimized strcmp with one-char string)vda2006-12-211-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: total cleanup and bugfix.vda2006-12-211-5/+2
| | | | | | | | | | | | | | | | | Doesn't die horribly on binary files anymore. In fact, they _100%_ work now. Control chars are in reverse video, including DEL and that idiocy of VT-10x, Meta-ESC [inventor of which should be prohibited from reproducing]. Regex search is fixed also. When you specify search ('/' key), control chars turn into dots (unhighlighted), and found occurrences highlighted instead. This is reversible. Memory management fixed (was leaky as hell) and optimized. Linewrapping fixed and thoroughly tested. Max buffer size made configurable. ~ 600 bytes saved. git-svn-id: svn://busybox.net/trunk/busybox@17023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: somewhat buggy applet, but nice. Muchly reducedvda2006-12-201-2/+2
| | | | | | | | | | | xstrdup'ing and memory consumption. Made linewrap saner. regex matching code was awful - still buggy, but not as leaky as before. Made buffer size configurable. Killed several static and on-stack buffers. Hopefully eliminated staircase effect on Ctrl-C (unable to reproduce). git-svn-id: svn://busybox.net/trunk/busybox@17012 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove casts from xmalloc()vda2006-12-192-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17011 69ca8d6d-28ef-0310-b511-8ec308f3f277
* su: make /etc/shells check configurablevda2006-12-191-18/+7
| | | | | | | ash: missing ';' git-svn-id: svn://busybox.net/trunk/busybox@17000 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xfuncs.c: dietlibc actually HAS fdprintf!vda2006-12-181-2/+2
| | | | | | | | platform.h: define strchrnul for dietlibc ash: stop using few non-standard functions git-svn-id: svn://busybox.net/trunk/busybox@16998 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nc: add missing castvda2006-12-181-0/+31
| | | | | | | xfuncs: add dprintf for dietlibc git-svn-id: svn://busybox.net/trunk/busybox@16997 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A bunch of defined(__GLIBC__) added. static-linking warning expandedvda2006-12-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16996 69ca8d6d-28ef-0310-b511-8ec308f3f277
* start_stop_daemon: fix bug where any program name was "matching"vda2006-12-171-2/+5
| | | | | | | processes for which readlink(/proc/N/exe) fails git-svn-id: svn://busybox.net/trunk/busybox@16982 69ca8d6d-28ef-0310-b511-8ec308f3f277
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]vda2006-12-161-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16977 69ca8d6d-28ef-0310-b511-8ec308f3f277
* s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/gvda2006-12-163-6/+5
| | | | | | | xstrtou: disallow leading '+' git-svn-id: svn://busybox.net/trunk/busybox@16976 69ca8d6d-28ef-0310-b511-8ec308f3f277
* diff: fix -q exit codevda2006-12-161-6/+6
| | | | | | | last_char_is: sacrifice 9 bytes but avoid double-scan git-svn-id: svn://busybox.net/trunk/busybox@16974 69ca8d6d-28ef-0310-b511-8ec308f3f277
* build system: small fix for "release" target to workvda2006-12-121-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_makedev: fix for glibc 2.3.2vda2006-12-101-0/+1
| | | | | | | sed: fix C++ style declaration git-svn-id: svn://busybox.net/trunk/busybox@16831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - cosmetic change to avoid warnings about eventual padding/packing.aldot2006-12-041-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16780 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sed: improve handling of NULsvda2006-12-021-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16754 69ca8d6d-28ef-0310-b511-8ec308f3f277
* passwd: made smaller by ~130 bytes. size can go negativevda2006-12-011-35/+33
| | | | | | | if current trend will continue ;) git-svn-id: svn://busybox.net/trunk/busybox@16747 69ca8d6d-28ef-0310-b511-8ec308f3f277
* passwd: small size optimization. salt generation improvedvda2006-11-301-1/+0
| | | | | | | (really generated different salts even if called back-to-back). git-svn-id: svn://busybox.net/trunk/busybox@16740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* passwd: rework:vda2006-11-303-13/+13
| | | | | | | | | | | | * do not make backup copy by copying (just retain old file) * correctly fall back to /etc/passwd if user is not in shadow * fix bug with overlong passwd entries * be permissive on some kinds of failures * reduce stack usage * code size: -500 bytes git-svn-id: svn://busybox.net/trunk/busybox@16739 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cut 0.5k off mkfs.minixvda2006-11-292-9/+11
| | | | | | | assorted strtoul fixes (that's what brought me into minix)... git-svn-id: svn://busybox.net/trunk/busybox@16722 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix bug in new str -> num convertorsvda2006-11-281-4/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16704 69ca8d6d-28ef-0310-b511-8ec308f3f277
* erase_mtab: do not limit ourself to 40 mtab entriesvda2006-11-271-32/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16693 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 2vda2006-11-273-10/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 1vda2006-11-272-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* svn add bb_strtonum.c :(vda2006-11-271-0/+147
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* safe_strtoXX interface proved to be a bit unconvenient.vda2006-11-275-181/+13
| | | | | | | | Remove it, introduce saner bb_strtoXX. Saved ~350 bytes. git-svn-id: svn://busybox.net/trunk/busybox@16684 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Closing bug 730. libbb run_parts is using scandir (a GNUism),vda2006-11-262-120/+0
| | | | | | | | and it is used only by run_parts applet, so move it there. Also saved ~30 bytes (prolly gcc autoinlining...). git-svn-id: svn://busybox.net/trunk/busybox@16677 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small fixes:vda2006-11-261-11/+19
| | | | | | | | | fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc. git-svn-id: svn://busybox.net/trunk/busybox@16673 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tee: fix bug: argv[-1] is a no-no!vda2006-11-252-19/+32
| | | | | | | | bb_full_fd_action: optimize die_if_ferror: "<applet>: filename" isn't a good err msg, add "..I/O error" git-svn-id: svn://busybox.net/trunk/busybox@16669 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small improvements in str -> num convertorsvda2006-11-251-3/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16667 69ca8d6d-28ef-0310-b511-8ec308f3f277
* regularize str -> num convertorsvda2006-11-254-237/+267
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small optimizationvda2006-11-241-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: fix multiple -t and/or -v options handling.vda2006-11-241-8/+7
| | | | | | | do not process list of files to tar up in reverse order. git-svn-id: svn://busybox.net/trunk/busybox@16662 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: sanitize option handlingvda2006-11-244-90/+88
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16661 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: fix and sanitize handling of long filenames/linknamesvda2006-11-241-0/+1
| | | | | | | | | | | | (GNU extensions 'K' and 'L'). We correctly handle them when untarring now, but unfortunately we still don't use them when tarring! That stupid 100 char limit is still there! The biggest problem is that we don't support 'pax' tar format. Linux kernel tarballs are in this format... shame git-svn-id: svn://busybox.net/trunk/busybox@16659 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hunt down improper include <>, make mkswap output 4Gb+ friendlyvda2006-11-243-5/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16658 69ca8d6d-28ef-0310-b511-8ec308f3f277
* svn add makedev.c. Forgot as usual... :(vda2006-11-241-0/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: small fixes:vda2006-11-241-15/+19
| | | | | | | | * size-optimize mapping code * kill double close git-svn-id: svn://busybox.net/trunk/busybox@16655 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: cache [ug]id->username/groupname mappings. Cuts down amountvda2006-11-241-18/+48
| | | | | | | | of open/read/close of /etc/passwd and /etc/group dramatically (we were rereading those for each untarred file!!!) git-svn-id: svn://busybox.net/trunk/busybox@16654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: cry murder and bail out if file shrinks under us while we tar it upvda2006-11-241-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* glibc makedev() is a large inline. Save 700+ bytes by wrapping itvda2006-11-241-32/+90
| | | | | | | into a function. git-svn-id: svn://busybox.net/trunk/busybox@16652 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar:vda2006-11-241-1/+0
| | | | | | | | | | | | * unpack: handle tar header fields which are not NUL terminated * pack: handle 4+GB files correctly * pack: refuse to store 101+ softlinks (was truncating link target name) * pack: mask mode with 07777 git-svn-id: svn://busybox.net/trunk/busybox@16650 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),vda2006-11-221-2/+11
| | | | | | | | use them where appropriate. 200 bytes saved git-svn-id: svn://busybox.net/trunk/busybox@16641 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix double mergevda2006-11-221-76/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16628 69ca8d6d-28ef-0310-b511-8ec308f3f277
* telnetd: move generic stuff into libbb. It will make it easyvda2006-11-221-0/+152
| | | | | | | to make other server applets IPv6-aware too. git-svn-id: svn://busybox.net/trunk/busybox@16624 69ca8d6d-28ef-0310-b511-8ec308f3f277
* telnetd: we were having telnetd with is ONLY inetd or ONLY standalone.vda2006-11-221-0/+12
| | | | | | | | What if I need to have both?? This patch introduces CONFIG_FEATURE_TELNETD_STANDALONE: y - both, n - only inetd. git-svn-id: svn://busybox.net/trunk/busybox@16622 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xgethostbyname: more readablevda2006-11-211-5/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_INET_default[] is really just a const "default",vda2006-11-212-19/+21
| | | | | | | nothing INET-specific git-svn-id: svn://busybox.net/trunk/busybox@16612 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rodata cleanup. "unable to" == "cannot". -300 bytesvda2006-11-184-13/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16580 69ca8d6d-28ef-0310-b511-8ec308f3f277