aboutsummaryrefslogtreecommitdiff
path: root/utility.c
AgeCommit message (Collapse)Author
2000-12-05Fixed the comments to match the code and renamed the function to a (hopefully)Mark Whitley
more descriptive name, and as per the style guide.
2000-12-05Applied patch from Matt Kraai to add v*error functions for handling varargMark Whitley
lists in a safe 'n sane fashion.
2000-12-05Use perrorMsg instead of perror and keep removing files if we encounterMatt Kraai
an error.
2000-11-30Note new dependency.Matt Kraai
2000-11-29Add "\r" to utility.c:process_escape_sequence() (from email aboutEric Andersen
"echo vs. optarg" from Larry Doolittle Tue, 28 Nov 2000 10:36:04 -0800) -Erik
2000-11-17Fix up builtin overrides, and hack in the binary search for findingEric Andersen
matching applets into the shell.
2000-11-17Add BB_CMP to xfopenEric Andersen
2000-10-30Fix uname problem that was breaking poweroff.Eric Andersen
2000-10-25Added a new perrorMsg function, cleanup up error handling, fixed TRUE/FALSEMatt Kraai
uses, and other minor fixes.
2000-10-25Added a fatalPerror function to simplify error handling.Matt Kraai
2000-10-16Remove broken error test found by Bryan Rittmeyer <bryan@ixiacom.com>.Matt Kraai
2000-10-09Patch from Matt Kraai so wc will return a proper error codeEric Andersen
when failing to open a file, and will not use file when it didn't open the file. -Erik
2000-10-01Apply patch from Giulio Orsero <giulioo@pobox.com> to ensureEric Andersen
get_last_path_component is defined under all configurations, -Erik
2000-09-27Rewrote head to perservere when it can't open a file, and share codeMatt Kraai
with cat.
2000-09-27Continue concatenating files even if we can't open one.Matt Kraai
2000-09-27Consolidate handling of some fopen failures.Matt Kraai
2000-09-27Rewrote uniq to be less than a third of the size, and fixed some otherMatt Kraai
minor problems.
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-09-25Remove a now unneeded checkEric Andersen
2000-09-23Fix potential memory overrun...Eric Andersen
2000-09-21More portable handling of loop header files, as done in util-linuxEric Andersen
2000-09-14Fix the halt/reboot/poweroff segfault when used from within an initrd...Eric Andersen
-Erik
2000-09-13Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai
segfaulting or handling errors the same way themselves.
2000-09-11Extra defines for arGlenn L McGrath
2000-09-07New ls sorting patch, as written by Sterling Huxley, and then updatedEric Andersen
by kent robotti. I then updated it to use my_getpwuid and my_getgrgid (per busybox policy). -Erik
2000-09-05Fixed for when BB_CP_MV is enabled.Eric Andersen
2000-09-05Add BB_SH to get_last_path_component()... Fix thanks toEric Andersen
Bj�rn Eriksson.
2000-09-01Add an extra sanity check in parse_modeEric Andersen
-Erik
2000-08-28Removed dead regular expression code.Matt Kraai
2000-08-26Compile xstrdup and xstrndup iff they are needed.Matt Kraai
2000-08-25ar.c now uses a linked list to process headers, uses getopt, new internal ↵Glenn L McGrath
function extractAr(srcFD, dstFd, filename) to make it easily accessable to other busybox functions. moved copySubFile from ar.c to utilities.c modified dd.c to use fullWrite modified copyFile in utilities.c to use copySubFile
2000-08-21Yet another patch to fixup lsmodEric Andersen
-Erik
2000-08-21Some leftover stuff I forgot to commit for the lsmod change.Eric Andersen
-Erik
2000-08-11Added fix from David Vrabel <dvrabel@arcom.co.uk> for aEric Andersen
buffer overrun in find_real_root_device(), fixing bug #1019 -Erik
2000-08-10Some #include updates.Eric Andersen
-Erik
2000-08-02Merge in two patches from Dave Cinege:Eric Andersen
the first is a cleanup of tar --exclude the second changes mount so mtab works more as it should, and also allows mount to use the traditional short form (i.e. 'mount / -o remount,rw' now works. While inside tar, I changed it to use getopt... -Erik
2000-08-01Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn'tMatt Kraai
exist. Also allow early search termination (per the comments).
2000-07-28More sh updates (with related changes to everything else). SwitchedEric Andersen
to using getopt and cleaned up the resulting mess. if-then-else-fi is now basically working (given a bunch of constraints). -Erik
2000-07-19Moved some code and add a coupld #defines to support use of dmalloc.Eric Andersen
-Erik
2000-07-17New message added to messages.c: full_versionPavel Roskin
Used where possible
2000-07-17Moved functions used by "lsmod" from cat.c to utility.cPavel Roskin
Adjusted to make lsmod and sh compilable as standalone apps. Comment fixes
2000-07-17Now it's possible to compile Busybox with only one app definedPavel Roskin
(unless it's lsmod, to be fixed by the next commit)
2000-07-14More cleanups.Eric Andersen
-Erik
2000-07-14Use errorMsg rather than fprintf.Matt Kraai
2000-07-12Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cMark Whitley
(maybe I'll remove it later).
2000-07-12Always report the applet name when doing error reporting.Matt Kraai
2000-07-11Forgot to commit these cleanups it seems.Eric Andersen
-Erik
2000-07-11Applied patch from Matt Kraai which does the following:Mark Whitley
- 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
2000-07-10Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009.Eric Andersen
-Erik
2000-07-10Comment on kernel stuffEric Andersen
-Erik