aboutsummaryrefslogtreecommitdiff
path: root/miscutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - sed -i -e "/\$Id:/d;"aldot2007-01-221-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17464 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use makedev to get device number, else it gives wrong major/minor numbers ↵aldot2007-01-211-2/+2
| | | | | | | | | to devices files on systems which use big device numbers. Closes #919 git-svn-id: svn://busybox.net/trunk/busybox@17430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup codevda2007-01-191-5/+2
| | | | | | | | | | | | (will close all fd's > 2 on daemonization now) getty: fix "getty -" support, and also do not try to chown/chmod "-" telnetd: fix "lost ctty" bug Yet another attempt on saner function names: bb_sanitize_server_stdio(0/1) -> bb_sanitize_stdio() + bb_daemonize(); git-svn-id: svn://busybox.net/trunk/busybox@17390 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random small size optimizationsvda2007-01-121-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17263 69ca8d6d-28ef-0310-b511-8ec308f3f277
* convert calloc to xzallocvda2007-01-031-2/+2
| | | | | | | fix sleep-on-die option git-svn-id: svn://busybox.net/trunk/busybox@17140 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: fix <tab><backspace> bugletvda2006-12-311-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: interpret backspace.vda2006-12-311-0/+13
| | | | | | | | less is officially declared PAGER-capable! ;) (this includes viewing of manpages) git-svn-id: svn://busybox.net/trunk/busybox@17120 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fixes from Yann E. MORIN <yann.morin.1998@anciens.enib.fr>vda2006-12-311-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17116 69ca8d6d-28ef-0310-b511-8ec308f3f277
* done a dozen of randconfig test. guess what? ALL failed...vda2006-12-302-17/+25
| | | | | | | these are resulting fixes git-svn-id: svn://busybox.net/trunk/busybox@17105 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_xget[pw/gr]nam were horribly misnamed - fixed.vda2006-12-281-2/+2
| | | | | | | | | | uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam git-svn-id: svn://busybox.net/trunk/busybox@17095 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2006-12-263-12/+12
| | | | | | | last xcalloc replaced by xzalloc git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: fix regexp search '/' on large filesvda2006-12-251-47/+71
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small stupid changes. no code changesvda2006-12-241-7/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17069 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: implement waiting for input using select(). Rather tricky business.vda2006-12-241-454/+516
| | | | | | | But we do not read entire input anymore up-front. git-svn-id: svn://busybox.net/trunk/busybox@17067 69ca8d6d-28ef-0310-b511-8ec308f3f277
* time: -200 bytes of textvda2006-12-221-84/+96
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17053 69ca8d6d-28ef-0310-b511-8ec308f3f277
* time: fix option parsing bug, size optimizationsvda2006-12-221-28/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17051 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: a few fixes for cases where we overflow status linevda2006-12-211-59/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17034 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: restore TAB display (was showing as inverse I after prev changes :)vda2006-12-211-29/+35
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17033 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: "(null)" is a bit strange. "standard input" is better :)vda2006-12-211-5/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17032 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: how many different kinds of status line we need, three?!vda2006-12-211-43/+40
| | | | | | | | small fixes. [prev commit also added control char filtering on input (e.g. regexp input, filename input for 'E' etc)] git-svn-id: svn://busybox.net/trunk/busybox@17029 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: stop dying on bad regexps, quietly pipe data w/ovda2006-12-211-110/+146
| | | | | | | | 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-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: total cleanup and bugfix.vda2006-12-211-248/+236
| | | | | | | | | | | | | | | | | 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-202-212/+206
| | | | | | | | | | | 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-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17011 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
* bb_makedev: fix for glibc 2.3.2vda2006-12-101-1/+0
| | | | | | | sed: fix C++ style declaration git-svn-id: svn://busybox.net/trunk/busybox@16831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shrink less.aldot2006-12-041-56/+49
| | | | | | | | | | | | | | | | | | | | 01a: svn version 01b: merge past_eof and inp_stdin into flags. 01c: merge match_backwards into flags. 01d: add handling of <HOME> and <END> keys, remove set_tty_raw, use fflush_stdout_and_exit 01e: rewrite special-key handling to be smaller. 01f: changing the format saves 4 bytes (alot of places would benefit from this) text data bss dec hex filename 9034 8 648 9690 25da less.o.01a 9023 8 640 9671 25c7 less.o.01b 9027 8 636 9671 25c7 less.o.01c 9068 8 636 9712 25f0 less.o.01d 8990 8 636 9634 25a2 less.o.01e 8986 8 636 9630 259e less.o.01f git-svn-id: svn://busybox.net/trunk/busybox@16781 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 2vda2006-11-271-67/+57
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 1vda2006-11-271-10/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small fixes:vda2006-11-262-3/+6
| | | | | | | | | 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
* - revert r15563 (pull current version of taskset off the busybox_scratch branch)aldot2006-11-223-0/+107
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16625 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rodata cleanup. "unable to" == "cannot". -300 bytesvda2006-11-182-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16580 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rename: compare_string_array -> index_in_str_arrayvda2006-11-051-4/+4
| | | | | | | | introduce index_in_substr_array and use it in iproute2 git-svn-id: svn://busybox.net/trunk/busybox@16515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* smart_ulltoa5: make available in libbbvda2006-11-051-35/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16510 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mostly style fixesvda2006-11-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16487 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last nail into error_msg() (de)capitalizationvda2006-10-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16451 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rename functions to more understandable namesvda2006-10-262-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove bb_printf and the likevda2006-10-267-69/+81
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16446 69ca8d6d-28ef-0310-b511-8ec308f3f277
* silly size savings and capitalization fixesvda2006-10-261-13/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16438 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use skip_whitespace where appropriatevda2006-10-251-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16435 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - we take exactly one argument.aldot2006-10-241-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* raidautorun: new applet, by:vda2006-10-203-0/+31
| | | | | | | | Thomas Jarosch (email?) and Bernhard Fischer <rep.nop@aon.at> git-svn-id: svn://busybox.net/trunk/busybox@16415 69ca8d6d-28ef-0310-b511-8ec308f3f277
* message string changes, mostly for consistency, also -32 bytes in .rodatavda2006-10-204-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add open_read_close() and similar stuffvda2006-10-144-16/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_get_[chomped]line_from_file wasn't descriptive enough.vda2006-10-122-2/+2
| | | | | | | Renaming... git-svn-id: svn://busybox.net/trunk/busybox@16375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nmeter: new applet. ~4kvda2006-10-113-0/+898
| | | | | | | Fix build proble on x86_64 git-svn-id: svn://busybox.net/trunk/busybox@16364 69ca8d6d-28ef-0310-b511-8ec308f3f277
* attempt to regularize atoi mess.vda2006-10-088-25/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* eject: remove unmounting. It is buggy for many non-trivialvda2006-10-071-12/+8
| | | | | | | mounts, and can be done as shell script. git-svn-id: svn://busybox.net/trunk/busybox@16338 69ca8d6d-28ef-0310-b511-8ec308f3f277
* eject: -T fixvda2006-10-051-16/+20
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16314 69ca8d6d-28ef-0310-b511-8ec308f3f277