summaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ps: add -o tty and -o rss supportDenis Vlasenko2007-04-191-7/+23
| | | | | 1373 14 24 1411 583 busybox.t1/procps/ps.o 1462 14 24 1500 5dc busybox.t2/procps/ps.o
* loop device code: readability improvementDenis Vlasenko2007-04-191-10/+14
|
* lineedit: state->hist_file doesn't exist if !FEATURE_EDITING_SAVEHISTORY,Denis Vlasenko2007-04-151-0/+2
| | | | #ifdef it out
* lineedit: nuke two unused variables and code which sets themDenis Vlasenko2007-04-141-9/+0
| | | | | | applets: do not even try to read config if run by real root msh: use named constants (O_RDONLY etc) in open() instead of magic numbers, other minor code size reduction.
* lineedit: do not try to open NULL history fileDenis Vlasenko2007-04-141-2/+2
|
* hush: use NOFORK applets as appropriate. Net reduction of code size.Denis Vlasenko2007-04-141-41/+48
|
* teach find_root_device to deal with /dev/ subdirsDenis Vlasenko2007-04-133-15/+57
| | | | (by "Kirill K. Smirnov" <lich@math.spbu.ru>)
* make xsocket die with address family printed (if VERBOSE_RESOLUTION_ERRORS=y)Denis Vlasenko2007-04-131-1/+12
|
* login: remove setpgrp call (makes it work from shell prompt again).Denis Vlasenko2007-04-122-15/+4
| | | | | login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes.
* pass a copy of argv[i] to NOFORK applets (they may permute it etc).Denis Vlasenko2007-04-121-14/+18
| | | | set/save/restore more shared global variables whan call one applet from another
* - add xsendto and use where appropriate; shrink iplink; sanitize libiproute ↵Bernhard Reutner-Fischer2007-04-121-0/+16
| | | | | | a bit. -916 byte
* style fixes. No code changesDenis Vlasenko2007-04-125-17/+14
|
* bb_full_fd_action: remove potential xmalloc from NOFORK pathDenis Vlasenko2007-04-114-19/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cat: stop using stdio.h opens libbb: introduce & use open[3]_or_warn function old new delta open3_or_warn - 54 +54 bb_cat 115 144 +29 open_or_warn - 25 +25 unlzma 2404 2412 +8 chattr_main 334 339 +5 xstrtoul_range_sfx 251 255 +4 telnet_main 1514 1510 -4 static.opt 4 - -4 qgravechar 122 118 -4 fuser_add_pid 61 54 -7 fuser_add_inode 154 147 -7 writeFileToTarball 1542 1534 -8 refresh 1156 1148 -8 do_show 856 846 -10 read_leases 212 200 -12 setup_redirects 236 222 -14 iproute_list_or_flush 1582 1568 -14 read_config 427 411 -16 write_leases 284 264 -20 hash_file 338 318 -20 copy_file 1760 1740 -20 do_iproute 2610 2588 -22 bb_full_fd_action 320 269 -51 open_to_or_warn 103 49 -54 fuser_main 1660 1596 -64 .rodata 131160 131096 -64 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423) Total: -298 bytes
* fix misplaced #ifDenis Vlasenko2007-04-111-1/+1
|
* add more convenient defines for [NO]MMU:Denis Vlasenko2007-04-111-15/+10
| | | | "#ifndef BB_NOMMU" is a double negative
* random NOMMU fixes. compressed --help really does work for NOMMU! /me happyDenis Vlasenko2007-04-101-0/+3
|
* Rename two config options:Denis Vlasenko2007-04-105-9/+14
| | | | | | | FEATURE_SH_STANDALONE_SHELL => FEATURE_SH_STANDALONE FEATURE_EXEC_PREFER_APPLETS => FEATURE_PREFER_APPLETS Make SH_STANDALONE depend on PREFER_APPLETS. getopt.c: more randomconfig-induced fixes
* make compressed help code NOMMU- and NOFORK-friendly -Denis Vlasenko2007-04-103-101/+59
| | | | no forking anymore, bunzip2 unpack routine now does all it in memory.
* make a few struct bb_applet members conditionalDenis Vlasenko2007-04-108-28/+49
| | | | | | rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig
* audit small applets and mark some of them as NOFORK.Denis Vlasenko2007-04-105-10/+14
| | | | | Put big scary warnings in relevant places.
* style fixes. No code changes.Denis Vlasenko2007-04-101-1/+1
|
* - add libbb function str_tolower to convert a string to lowercase.Bernhard Reutner-Fischer2007-04-102-0/+14
| | | | - shrink wget a bit
* make xfunctions optionally longjump instead of exit.Denis Vlasenko2007-04-095-12/+31
| | | | | use it for making NOFORK more practical. touch: make it a NOFORK applet
* factor out NOFORK/NOEXEC code from find. Use it for xargs too.Denis Vlasenko2007-04-091-3/+39
|
* wait4pid: if passed with pid < 0, do not set errno - it is already set by exec!Denis Vlasenko2007-04-092-34/+33
|
* Implement first instance of NOFORK applet - echoDenis Vlasenko2007-04-092-9/+8
| | | | | | | | | find: use NOFORK/NOEXEC; small -exec buglet also eliminated vfork_daemon_rexec: honor PREFER_APPLETS echo: small size improvements find -exec echo {} \; with PREFER_APPLETS=y runs 4 times faster
* getopt32: fix llist_t options ordering. llist_rev is not unused.Denis Vlasenko2007-04-082-13/+14
| | | | | | | | | | | | | | | | function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes
* find: fix handling of -pruneDenis Vlasenko2007-04-081-7/+7
| | | | recursive_actions: uppercase flag constants
* random small shrinkage and elimination of staticsDenis Vlasenko2007-04-071-1/+1
|
* svn add match_fstype.c :(Denis Vlasenko2007-04-051-0/+44
|
* [u]mount: extend -t option (Roy Marples <uberlord@gentoo.org>)Denis Vlasenko2007-04-051-0/+1
|
* libbb: add xunlink()Denis Vlasenko2007-04-051-0/+6
| | | | patch: do not try to delete same file twice
* nc: port nc 1.10 to busyboxDenis Vlasenko2007-04-053-1/+166
|
* - fix segfault in reset_ino_dev_hashtable() when *hashtable was null.Bernhard Reutner-Fischer2007-04-051-1/+3
| | | | Seen in the testsuite for du -l .../testsuite on exit with CLEAN_UP enabled.
* test: comment out unused codeDenis Vlasenko2007-04-021-6/+22
| | | | | udpsvd: fake it compile tcpsvd: more optimal memorizing of IP's for -C
* tcpsvd: new appletDenis Vlasenko2007-04-012-7/+62
| | | | | | | | | | It's a GPL-ed 'clone' of Dan Bernstein's tcpserver. Author: Gerrit Pape <pape@smarden.org> http://smarden.sunsite.dk/ipsvd/ size tcpsvd.o text data bss dec hex filename 2571 4 16 2591 a1f tcpsvd.o
* - fix bug where we did not reject invalid classes like '[[:alpha'Bernhard Reutner-Fischer2007-03-301-6/+5
| | | | | | | - debloat while at it: text data bss dec hex filename 1554 0 19 1573 625 tr.o.oorig 1357 0 16 1373 55d tr.o
* - fold recurse, depthFirst and dereference params into one param flags.Bernhard Reutner-Fischer2007-03-291-21/+20
| | | | Minor size improvement (-16b for size, -24b according to bloat-o-meter).
* ps: work around libc bug: printf("%.*s\n", MAX_INT, buffer)Denis Vlasenko2007-03-281-3/+3
|
* pidfile creation mode set to 0666 (umask affects it as usual)Denis Vlasenko2007-03-271-1/+1
|
* forgotten svn add...Denis Vlasenko2007-03-271-0/+29
|
* make pidfile writing configurable.Denis Vlasenko2007-03-272-6/+7
| | | | [ui]toa_to_buf: change API. No users yet.
* remove_file: cosmetic code improvement, a few bytes savedDenis Vlasenko2007-03-261-34/+21
|
* zcip: make it work on NOMMU (+ improve NOMMU support machinery)Denis Vlasenko2007-03-262-6/+16
| | | | fsck: fix bad English in a comment
* Attempt to get more applets compile for NOMMU.Denis Vlasenko2007-03-261-4/+6
| | | | | | | TODO_config_nommu documents what I managed to compile so far (yay! msh works! cool). inetd, telnetd, httpd still do not compile. TODO Also make fork(), daemon() produce warnings on compile stage (in addition to erros on link stage).
* libbb: rework NOMMU helper API so that it makes more senseDenis Vlasenko2007-03-262-79/+133
| | | | and easier to use. Doesn't compile - need two more commits.
* add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copyDenis Vlasenko2007-03-251-0/+10
|
* random style fixes (extra spaces deleted)Denis Vlasenko2007-03-242-3/+3
|
* NOMMU re-exec trick shuld not depend on existence of "don't daemonize"Denis Vlasenko2007-03-241-14/+9
| | | | | option for every affected applet (and dnsd, for example, don't have one). Thus rework re-exec support to not require it. Code got smaller too.
* applets.c, xfunc.c: style cleanupDenis Vlasenko2007-03-241-8/+8
|