Commit Graph

  • 52681b48dc Added a note in the "Tips and Pointer" section on the correct way to test for string equivalence with strcmp(). Mark Whitley 2000-07-25 20:30:00 +00:00
  • fad9c1198a Finish off fixing up the memleaks (I think). Added the beginnings of some if-then-else-fi support (nonfunctional and turned off) -Erik Eric Andersen 2000-07-25 18:06:52 +00:00
  • b040d4f3da Use BB_FEATURE_CLEAN_UP where appropriate -Erik Eric Andersen 2000-07-25 18:01:20 +00:00
  • b9ea02c04b Add in BB_FEATURE_CLEAN_UP, which is whether to clean up mem leaks and close files, or not. Usually safe to leave it off and let the OS clean up... -Erik Eric Andersen 2000-07-25 17:59:37 +00:00
  • d34595d857 Remove some noise. -Erik Eric Andersen 2000-07-25 17:58:01 +00:00
  • e5db406690 Clean up $1=$prefix -Erik Eric Andersen 2000-07-25 16:47:03 +00:00
  • 40bfc76385 First revision of the Busybox Style Guide and an accompanying .indent.pro file. Mark Whitley 2000-07-24 22:36:06 +00:00
  • e99f7500e0 chroot can now call the builtin shell Pavel Roskin 2000-07-24 20:15:30 +00:00
  • ea824fb937 Fixed stdin/stdout paths so things like tar cvf - /etc/* | gzip -c9 >test.tgz will now work. Fix thanks to Dave Cinege <dcinege@psychosis.com> with some adjustments by me to be mroe GNU-like. -Erik Eric Andersen 2000-07-21 22:17:39 +00:00
  • bf960f58e2 Added 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com> -Erik Eric Andersen 2000-07-21 21:32:12 +00:00
  • 7df345e149 Bump version number. -Erik Eric Andersen 2000-07-21 21:27:11 +00:00
  • ec8d60f0f8 Add in the LinuxMagic VPN Firewall -Erik Eric Andersen 2000-07-21 17:22:19 +00:00
  • 0010ee45e3 Fixed usage info for "cut" Pavel Roskin 2000-07-21 15:10:57 +00:00
  • c768ab490e Took -V out of the sed_usage string. Mark Whitley 2000-07-20 23:54:42 +00:00
  • ced2cefcca * syslogd can now log messages to a remote host -- patch thanks to Gyepi Sam <gyepi@praxis-sw.com> -Erik Eric Andersen 2000-07-20 23:41:24 +00:00
  • 1f45b268cb As per a discussion on the mailing list between Matt and Pavel. I have removed the -V (version) flag from busybox sed. It is unnecessary because sed is not a standalone and should therefore be independently reporting a version number. Moreover, it is extra code that we just don't need. Mark Whitley 2000-07-20 23:08:40 +00:00
  • 1ac435c15e Converted option parsing to getopt(). Also added some explanatory comments. Mark Whitley 2000-07-20 23:06:27 +00:00
  • 51154bacbe Adjusted install.sh to use relative symlinks, and to optionally create hardlinks. Added a makefile target to create hardlinks. -Erik Eric Andersen 2000-07-20 21:57:11 +00:00
  • 3950596e1e Converted option parsing to using getopt(). Also managed to remove an extraneous logic loop that existed only for the purpose of the special case of only one file. I replaced it with a variable to keep track of the number of files read. Mark Whitley 2000-07-20 00:08:10 +00:00
  • 99e370f0c6 Whoops. Forgot to #include <getopt.h>. Mark Whitley 2000-07-20 00:03:38 +00:00
  • aa4f108338 Converted option parsing to getopt() and made some minor formatting changes. Mark Whitley 2000-07-19 19:38:13 +00:00
  • 27a804246a Centralize handling of --help. Matt Kraai 2000-07-19 19:24:01 +00:00
  • 869057238b Added some missing declarations and fixed some typos. I have to remember to compile *before* committing. Matt Kraai 2000-07-19 18:20:02 +00:00
  • 2f46b664b7 Add usage messages for applets without them. Matt Kraai 2000-07-19 18:01:00 +00:00
  • 91a4400fd5 Avoid trying to free NULL ptrs. Comment on malloc usages. -Erik Eric Andersen 2000-07-19 17:37:57 +00:00
  • a16c66335e Use FatalError() -Erik Eric Andersen 2000-07-19 17:36:27 +00:00
  • ae6eae02dd Moved some code and add a coupld #defines to support use of dmalloc. -Erik Eric Andersen 2000-07-19 17:35:54 +00:00
  • 52d6fa3bb3 Funny. Head was getting installed to the wrong spot. -Erik Eric Andersen 2000-07-19 17:34:40 +00:00
  • 1d255be78d Updated to add support for dmalloc, and adjusted for better cross compiler support. -Erik Eric Andersen 2000-07-19 17:33:54 +00:00
  • 2ef880b236 Consolodated some common code into print_matched_line to make 'grep_file' a little more terse & clean. Also made a few minor formatting changes. Mark Whitley 2000-07-18 21:02:06 +00:00
  • a9d69fb568 Removed now incorrect message about NFS not working with Linux 2.[34].x kernels. It does work now, -Erik Eric Andersen 2000-07-18 18:54:08 +00:00
  • 8f122431f5 Added support for the -c (count matches) option. Made it so it works just like GNU grep. Mark Whitley 2000-07-18 18:37:01 +00:00
  • 6efc48c1ae Sigh -- can't sleep. Clean up some mem leaks, fixed some bugs. -Erik Eric Andersen 2000-07-18 08:16:39 +00:00
  • 9c5fcc3408 New message added to messages.c: full_version Used where possible Pavel Roskin 2000-07-17 23:45:12 +00:00
  • cc8a66b113 Moved functions used by "lsmod" from cat.c to utility.c Adjusted to make lsmod and sh compilable as standalone apps. Comment fixes Pavel Roskin 2000-07-17 20:18:42 +00:00
  • 97562bd9d7 - Added support for backreferences in substitution expressions up to nine (\1, \2...\9). This touched a lot of places in this file and I added a new function 'print_subst_w_backrefs' in order to keep 'do_subst_command' a little more tidy. Mark Whitley 2000-07-17 20:06:42 +00:00
  • 21ddb38fcf Now it's possible to compile Busybox with only one app defined (unless it's lsmod, to be fixed by the next commit) Pavel Roskin 2000-07-17 19:31:54 +00:00
  • a1d187a8a8 Backtick support to infinite (memory limited) levels of nesting is now implemented... So now busybox shell can do cool stuff like: Eric Andersen 2000-07-17 19:14:41 +00:00
  • bc0aed79a8 It is now possible to select in busybox.def.h whether minixfs version 2 is to be supported. Pavel Roskin 2000-07-17 17:52:00 +00:00
  • 47d4926244 The result of getopt() is "int" and should be treated as such Pavel Roskin 2000-07-17 16:17:19 +00:00
  • bf181b9338 Extract usage information into a separate file. Matt Kraai 2000-07-16 20:57:15 +00:00
  • 3bd8bd89ee Don't use strings directly in calls to usage(). This is in preparation for their extraction to a separate file. Matt Kraai 2000-07-14 23:28:47 +00:00
  • 464c5de00d Fixed a couple of buglets: - add_cmd_str: segv's were being generated if there was a '# comment' line (and probably other kinds of lines, too) that was not followed by a semi-colon or whitespace - parse_edit_cmd: was returning a wrong number (too low) for the index; it was not accounting for backslashes eaten, for the fact that we start at the 3rd index in the string, or for the fact that we add an extra newline. - parse_cmd_str: was returning a wrong number (again, too low) for the index in the case of single-letter commands (p,d). There was some over-compensation for this in the 'return' stmt at the end which also needed some help. - load_cmd_file: was not eating trailing newlines off the line read from the command file. This had the deleterious effect of printing an extra newlines after text displayed from edit (i,a,c) commands. Mark Whitley 2000-07-14 23:24:00 +00:00
  • 70705d7c96 - Added support for semicolon delimited command lines. (woo-hoo!) - Obsoleted the trim_str function (#if 0'ed out -- maybedelete later) in favor of strrspn. - Obsoleted the strrspn function (#if 0'ed out as well) as soon as I discovered that it wasn't needed either. - Fixed a subtle bug in parse_subst_cmd where it would choke with an error if there was any trailing space after the s/match/replace/ expression. Mark Whitley 2000-07-14 19:06:30 +00:00
  • add09fd558 Getopt'ed by Marc Nijdam <marc_nijdam@hp.com> -Erik Eric Andersen 2000-07-14 18:39:08 +00:00
  • 17ad45aace Getopt'rd by Marc Nijdam <marc_nijdam@hp.com> -Erik Eric Andersen 2000-07-14 18:38:26 +00:00
  • df4532bfa3 More fixes for "signed vs. unsigned" warnings. Pavel Roskin 2000-07-14 17:24:58 +00:00
  • ff5a9033f9 Reduced the number of "signed vs. unsigned" warnings. Sometimes such warnings matter (esp. on PPC with char default to unsigned) Pavel Roskin 2000-07-14 16:23:32 +00:00
  • f626dcbc84 More fixes for "missing initializers" Pavel Roskin 2000-07-14 15:55:41 +00:00
  • 9027bcf2f4 Fixed a warning about missing initializer Pavel Roskin 2000-07-14 15:44:25 +00:00
  • 93c0d9f090 The result of getopt() should not be converted to "char" - it breaks on PPC Pavel Roskin 2000-07-14 15:18:57 +00:00
  • fad04fdd12 More cleanups. -Erik Eric Andersen 2000-07-14 06:49:52 +00:00
  • b870af09ae Fix argument parsing. Matt Kraai 2000-07-14 06:47:33 +00:00
  • d6912c97de Be more pedantic aboutthe terminating null applet. -Erik Eric Andersen 2000-07-14 06:29:10 +00:00
  • 58361a44b5 uid and gid were unsigned, but were compared vs signed values (-1) -Erik Eric Andersen 2000-07-14 06:27:54 +00:00
  • e7413a9cde A couple of minor warning cleanups. -Erik Eric Andersen 2000-07-14 06:19:41 +00:00
  • d537a95fdb Use errorMsg rather than fprintf. Matt Kraai 2000-07-14 01:51:25 +00:00
  • 4ac6cb534d Fix some stupid memory bugs. -Erik Eric Andersen 2000-07-14 01:13:37 +00:00
  • ec10b9d534 Add in redimentary backtick suport (doesn't work properly yet, but is close). -Erik Eric Andersen 2000-07-14 01:13:11 +00:00
  • 34623db618 It dawned on me that I would need to grow a char buffer one extra char bigger to accomodate a trailing '\n'ewline that I append to it later one. This is only necessary for the case of one inserted, appended, or changed line, but it's still necessary. Mark Whitley 2000-07-14 00:49:59 +00:00
  • 02008346c0 Added error checking for edit commands; only a beginning address can be specified. Mark Whitley 2000-07-14 00:13:52 +00:00
  • 94074a980c Added support for (a)ppend, (i)nsert, and (c)hange commands to sed. Mark Whitley 2000-07-14 00:00:15 +00:00
  • 496e33feeb Fixed bug where sed '/foo/p' was printing "invalid command". Mark Whitley 2000-07-13 22:52:02 +00:00
  • 4f7fe77d07 (Something I should have done in the previous checkin...) Also broke out substitution command execution from do_sed_command() and put it in it's own do_subst_command() function. Mark Whitley 2000-07-13 20:01:58 +00:00
  • 06f3529ada Minor code reorg: Changed the interface to index_of_next_unescaped_slash to an interface that seems a little more sensible to me. Also broke out s/// expression parsing into it's own subroutine. Mark Whitley 2000-07-13 19:58:04 +00:00
  • 156959ea93 Fix uninitialized variable. -Erik Eric Andersen 2000-07-13 19:49:12 +00:00
  • f4c022649b Patch from Marc Nijdam <marc_nijdam@hp.com> > First (of many more) patch of cp_mv to getopt use. I'm using the most > simplistic approach, just get getopt used, then worry about a cleaner > option parsing style using getopt later. > > Marc Eric Andersen 2000-07-13 18:42:58 +00:00
  • 55380700d8 Added a smallish TODO comment. Mark Whitley 2000-07-13 17:20:23 +00:00
  • 00143ba921 From Matt Kraai <kraai@alumni.carnegiemellon.edu> > Here is a patch so that tr can handle NULL characters as well. Give it > a shot and let me know what you think. It is against the latest CVS > version. > > In my tests, the following now works as expected. > > tr '\0' '\n' > > Later, > Matt Eric Andersen 2000-07-13 16:40:41 +00:00
  • ac48461da9 Correct argument parsing and other minor cleanups. Matt Kraai 2000-07-13 06:33:12 +00:00
  • 37653aaf9c Added some smallish comments to help folks understand why we have two tables of builtins and the reasoning behind it. Mark Whitley 2000-07-12 23:36:17 +00:00
  • c41e8c840f Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c (maybe I'll remove it later). Mark Whitley 2000-07-12 23:35:21 +00:00
  • 6f96e674b9 Patch from Jon McClintock <jonm@bluemug.com> >The attached patch adds the ability to parse the actual mode specifier in >fbset. So now > > fbset -n 640x480-72 > >Will actually work. I don't know if I've reinvented the wheel though... Eric Andersen 2000-07-12 23:01:04 +00:00
  • be84cd4ef6 Always report the applet name when doing error reporting. Matt Kraai 2000-07-12 17:02:35 +00:00
  • e58771e73c Use global applet_name instead of local versions. Matt Kraai 2000-07-12 15:38:49 +00:00
  • e714bce003 Use global applet_name instead of local versions. Matt Kraai 2000-07-12 00:53:06 +00:00
  • 3ecbe9f4dc The applet name isn't constant. Matt Kraai 2000-07-12 00:43:28 +00:00
  • 97426e082a Changed verbiage. -Erik Eric Andersen 2000-07-11 23:06:48 +00:00
  • 8fbaeece53 Replaced projects with products/projects. -Erik Eric Andersen 2000-07-11 23:05:38 +00:00
  • 68fda241d2 Added the Kerbango Internet Radio to projects/products using BusyBox. -Erik Eric Andersen 2000-07-11 23:03:40 +00:00
  • 858c1adf2b Applied patch from Matt Kraai to call destroy_cmd_strs in atexit(), rather than peppering it throughout the code. Mark Whitley 2000-07-11 21:38:47 +00:00
  • 7719008a85 Added applet_name to contain the applet name. Matt Kraai 2000-07-11 20:03:24 +00:00
  • aec27bca98 Final updates for release. -Erik Eric Andersen 2000-07-11 18:18:40 +00:00
  • 960be79964 Final update for the release. Eric Andersen 2000-07-11 18:06:01 +00:00
  • be909b1cd5 Forgot to commit these cleanups it seems. -Erik Eric Andersen 2000-07-11 17:52:22 +00:00
  • d006c9e630 More changelog updates -Erik Eric Andersen 2000-07-11 17:45:42 +00:00
  • 9ebccb2891 Added changelog entries for grep/sed/regex changes. Mark Whitley 2000-07-11 17:43:42 +00:00
  • f1f6d58598 Some changelog updates. -Erik Eric Andersen 2000-07-11 17:42:56 +00:00
  • 0c838af50b Re-enable ln -n in the help. -Erik Eric Andersen 2000-07-11 17:38:27 +00:00
  • 195fa15caf Another patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>: > > The following patch allows ln -n to function like GNU. It also fixes a > typo with my previous patch to add support for ln FILE DIRECTORY. And > it removes some code that checks the maximum length of the filenames. I > can't figure out why that code is necessary. Anyone know? > > Matt Eric Andersen 2000-07-11 17:35:32 +00:00
  • 61dc057183 Added 'dumpkmap' to allow people to dump a binary keymap, which can then be loaded in by 'loadkmap' -- submitted by Arne Bernin <arne@matrix.loopback.org> -Erik Eric Andersen 2000-07-11 17:29:36 +00:00
  • df5f6ba115 Applied patch from Matt Kraai which does the following: - adds case-insensitive matching in sed s/// epxressions - consolodates common regcomp code in grep & sed into bb_regcomp and put in utility.c - cleans up a bunch of cruft Mark Whitley 2000-07-11 16:53:56 +00:00
  • da9841efc1 Fix dead link. -Matt Matt Kraai 2000-07-11 16:09:01 +00:00
  • da1d1e763d Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009. -Erik Eric Andersen 2000-07-10 23:39:44 +00:00
  • cc54d12ef7 Removed all trace of hand-tooled regexp routines. Bye bye, baby. Mark Whitley 2000-07-10 23:07:54 +00:00
  • dd23b8bb43 Added a rule to make tags files for vi(m). Mark Whitley 2000-07-10 23:00:47 +00:00
  • c674d70699 Comment on kernel stuff -Erik Eric Andersen 2000-07-10 22:57:14 +00:00
  • 6315ce603b Brand, new sed that uses libc regex routines. There is some common code used by both sed & grep that should be put into utility.c as per Mat Kraai's suggestions/patch on the mailing list. Specifically, a common regex_compile() and a regex_subst() function need to be made. Mark Whitley 2000-07-10 22:55:51 +00:00
  • 85c552035e More linux kernel header file removal. -Erik Eric Andersen 2000-07-10 22:46:55 +00:00
  • 9b2297a34e Remove yet more kernel header dependancies. -Erik Eric Andersen 2000-07-10 20:08:44 +00:00