Commit Graph

542 Commits

Author SHA1 Message Date
5651bfc204 ash: starting second round of cleanups. #1 2007-02-23 21:08:58 +00:00
bc54cffc83 ash: cleanup part 9 2007-02-23 01:05:52 +00:00
4d2183bee1 ash: cleanup part 8 2007-02-23 01:05:38 +00:00
4fe15f3d9e ash: cleanup part 7 2007-02-23 01:05:26 +00:00
a6704933dd ash: cleanup part 6 2007-02-23 01:05:15 +00:00
5c67e3ed90 ash: cleanup part 5 2007-02-23 01:05:03 +00:00
fe1f00a7a7 ash: cleanup part 4 2007-02-23 01:04:50 +00:00
9650f36210 ash: cleanup part 3 2007-02-23 01:04:37 +00:00
aa74445514 ash: cleanup part 2 2007-02-23 01:04:22 +00:00
0c032a49b9 ash: cleanup part 1 2007-02-23 01:03:40 +00:00
a624c11d5e ash: move ash_main() and helpers to end of ash.c, more fuctions renamed,
superfluous casts from memory allocators removed
2007-02-19 22:45:43 +00:00
2da584fc4e ash: more renaming and style fixes 2007-02-19 22:44:05 +00:00
b012b10dbd ash: rearrange code to reduce forward references, rename some functions 2007-02-19 22:43:01 +00:00
e5570da2cf ash: tiny style fixes 2007-02-19 22:41:55 +00:00
5cedb75aa7 ash: de-obfuscate code, add 'static' keyword, etc. 2007-02-18 19:56:41 +00:00
131ae177a7 ash: convert #ifdef CONFIG_ to #if ENABLE_ 2007-02-18 13:00:19 +00:00
a0f82e928a ash: fix indentation and style. no code changes 2007-02-18 12:35:30 +00:00
06af216528 suppress warnings about easch <applet>_main() having
no preceding prototype
2007-02-03 17:28:39 +00:00
38f6319421 cmdedit is not a 'command' editing anymore, it's just editing (generic),
so rename stuff accordingly.
2007-01-22 09:03:07 +00:00
8e1c71529c Convert cmdedit into more generic line input facility
(make history and completion optional at runtime).
Use it for fdisk, as an example.
Some unrelated fixes in fdisk are also here.
2007-01-22 07:21:38 +00:00
2f0c0d0b88 Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our own
executable if we asked to exec someting with argv[0] == known_applet"
Use it in init. Also respect PATH in init, remove explicit "/sbin" etc
from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>
2007-01-21 00:41:04 +00:00
7f0d7ae4f5 fix subtle bug inherited from dash 2007-01-18 01:12:57 +00:00
f7996f3b70 Trailing whitespace removal over entire tree 2007-01-11 17:20:00 +00:00
62a6983a81 execute "safe applets" exev if not standalone shell
(patch by "Eric Spakman" <E.Spakman@inter.nl.net>)
2007-01-10 00:24:50 +00:00
8f27c34c28 ash: is_safe_applet mustn't affect disabled applets 2006-12-26 21:31:11 +00:00
666da5e2c6 merge post-1.3.0 fixes 2006-12-26 18:17:42 +00:00
bf0a201008 style fixes
last xcalloc replaced by xzalloc
2006-12-26 10:42:51 +00:00
0ee3999d13 random tiny size savings 2006-12-24 15:23:28 +00:00
f4dff77355 less: implement waiting for input using select(). Rather tricky business.
But we do not read entire input anymore up-front.
2006-12-24 07:14:17 +00:00
bf66fbc8e2 introduce LONE_CHAR (optimized strcmp with one-char string) 2006-12-21 13:23:14 +00:00
15b213ef5a su: make /etc/shells check configurable
ash: missing ';'
2006-12-19 00:20:20 +00:00
7cfecc4b36 xfuncs.c: dietlibc actually HAS fdprintf!
platform.h: define strchrnul for dietlibc
ash: stop using few non-standard functions
2006-12-18 22:32:45 +00:00
83e5d6f772 A bunch of defined(__GLIBC__) added. static-linking warning expanded 2006-12-18 21:49:06 +00:00
9f739445cd inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid] 2006-12-16 23:49:13 +00:00
097c324f59 fix remaining survivors of the return(a) cleanup 2006-11-27 16:59:15 +00:00
d9e15f2068 style cleanup: return(a) -> return a, part 2 2006-11-27 16:49:55 +00:00
079f8afa0a style cleanup: return(a) -> return a, part 1 2006-11-27 16:49:31 +00:00
fcdb00f735 httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net! 2006-11-21 00:09:37 +00:00
a7189f01a4 add -Wundef, fix uncovered bugs 2006-11-17 20:29:00 +00:00
5f03158f66 ash: fix segfault in ash.
patch by walter harms <wharms@bfs.de>
2006-10-16 01:33:16 +00:00
cba9ef5523 fixes from Vladimir Dronnikov <dronnikov@gmail.ru> 2006-10-10 21:00:47 +00:00
7d219aab70 build system overhaul 2006-10-05 10:17:08 +00:00
8f8f268cfd bb_applet_name -> applet_name 2006-10-03 21:00:43 +00:00
e175ff252f several fixes from openWRT project 2006-09-26 17:41:00 +00:00
88621d7398 Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damage
(the e2fsprogs directory is too twisty and evil to easily fix, but I plan
to rewrite it anyway so I'll just bump that up in priority a bit).
2006-08-29 19:41:06 +00:00
d921b2ecc0 Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes...  General cleanup pass.  What I've
been doing for the last couple days.

And it conflicts!  I've removed httpd.c from this checkin due to somebody else
touching that file.  It builds for me.  I have to catch a bus.  (Now you know
why I'm looking forward to Mercurial.)
2006-08-03 15:41:12 +00:00
534374755d Cleaup read() and write() variants, plus a couple of new functions like
xlseek and fdlength() for the new mkswap.
2006-07-16 08:14:35 +00:00
c9c1a41c58 A couple things that got tangled up in my tree, easier to check in both than
untangle them:

Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the
signal list to that required by posix (they can specify the numbers for
the rest if they really need them).  (This is preparatory cleanup for adding
a timeout applet like Roberto Foglietta wants.)

Export the itoa (added due to Denis Vlasenko, although it's not quite his
preferred implementation) from xfuncs.c so it's actually used, and remove
several other redundant implementations of itoa and utoa() in the tree.
2006-07-12 19:17:55 +00:00
f296f0b77d Bug fix from Vladimir Oleynic via Paul Fox for:
echo "+bond0" > /sys/class/net/bonding_masters
while true; do
  echo hello
done
2006-07-06 01:09:21 +00:00
177c9f3128 Get rid of all "#if 0" content. 2006-07-01 14:30:28 +00:00