summaryrefslogtreecommitdiff
path: root/utility.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix from Matt Kraai -- a better way to NULL terminate strings for theEric Andersen2000-12-131-0/+2
| | | | | my_* passwd and group routines. I should have thought of doing it this way...
* Fix from Matt Kraai so basename / will work as expected.Eric Andersen2000-12-121-3/+5
|
* Some compile fixes found by Larry DoolittleEric Andersen2000-12-121-4/+4
|
* Matt Kraai pointed out that we can rely on strncpy to NULLEric Andersen2000-12-111-1/+1
| | | | terminate shorter cases, so we can save a few cycles...
* Fix non-NULL terminated strings.Eric Andersen2000-12-111-0/+1
|
* Patch from Matt Kraai to enable proxy support.Eric Andersen2000-12-071-2/+2
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-53/+53
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Changed some #define strings to static const char [] variables. Tested lsMark Whitley2000-12-051-4/+4
| | | | after changing, it worked.
* Fixed the comments to match the code and renamed the function to a (hopefully)Mark Whitley2000-12-051-9/+9
| | | | more descriptive name, and as per the style guide.
* Applied patch from Matt Kraai to add v*error functions for handling varargMark Whitley2000-12-051-21/+21
| | | | lists in a safe 'n sane fashion.
* Use perrorMsg instead of perror and keep removing files if we encounterMatt Kraai2000-12-051-5/+5
| | | | an error.
* Note new dependency.Matt Kraai2000-11-301-1/+1
|
* Add "\r" to utility.c:process_escape_sequence() (from email aboutEric Andersen2000-11-291-0/+3
| | | | | "echo vs. optarg" from Larry Doolittle Tue, 28 Nov 2000 10:36:04 -0800) -Erik
* Fix up builtin overrides, and hack in the binary search for findingEric Andersen2000-11-171-0/+8
| | | | matching applets into the shell.
* Add BB_CMP to xfopenEric Andersen2000-11-171-1/+3
|
* Fix uname problem that was breaking poweroff.Eric Andersen2000-10-301-1/+3
|
* Added a new perrorMsg function, cleanup up error handling, fixed TRUE/FALSEMatt Kraai2000-10-251-0/+16
| | | | uses, and other minor fixes.
* Added a fatalPerror function to simplify error handling.Matt Kraai2000-10-251-0/+17
|
* Remove broken error test found by Bryan Rittmeyer <bryan@ixiacom.com>.Matt Kraai2000-10-161-5/+0
|
* Patch from Matt Kraai so wc will return a proper error codeEric Andersen2000-10-091-1/+1
| | | | | | when failing to open a file, and will not use file when it didn't open the file. -Erik
* Apply patch from Giulio Orsero <giulioo@pobox.com> to ensureEric Andersen2000-10-011-1/+1
| | | | | get_last_path_component is defined under all configurations, -Erik
* Rewrote head to perservere when it can't open a file, and share codeMatt Kraai2000-09-271-3/+17
| | | | with cat.
* Continue concatenating files even if we can't open one.Matt Kraai2000-09-271-1/+2
|
* Consolidate handling of some fopen failures.Matt Kraai2000-09-271-1/+1
|
* Rewrote uniq to be less than a third of the size, and fixed some otherMatt Kraai2000-09-271-6/+16
| | | | minor problems.
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Remove a now unneeded checkEric Andersen2000-09-251-1/+1
|
* Fix potential memory overrun...Eric Andersen2000-09-231-1/+1
|
* More portable handling of loop header files, as done in util-linuxEric Andersen2000-09-211-5/+4
|
* Fix the halt/reboot/poweroff segfault when used from within an initrd...Eric Andersen2000-09-141-15/+3
| | | | -Erik
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai2000-09-131-8/+4
| | | | segfaulting or handling errors the same way themselves.
* Extra defines for arGlenn L McGrath2000-09-111-4/+4
|
* New ls sorting patch, as written by Sterling Huxley, and then updatedEric Andersen2000-09-071-1/+1
| | | | | | by kent robotti. I then updated it to use my_getpwuid and my_getgrgid (per busybox policy). -Erik
* Fixed for when BB_CP_MV is enabled.Eric Andersen2000-09-051-2/+2
|
* Add BB_SH to get_last_path_component()... Fix thanks toEric Andersen2000-09-051-1/+1
| | | | Bj�rn Eriksson.
* Add an extra sanity check in parse_modeEric Andersen2000-09-011-0/+3
| | | | -Erik
* Removed dead regular expression code.Matt Kraai2000-08-281-76/+0
|
* Compile xstrdup and xstrndup iff they are needed.Matt Kraai2000-08-261-1/+3
|
* ar.c now uses a linked list to process headers, uses getopt, new internal ↵Glenn L McGrath2000-08-251-15/+30
| | | | | | | | | | 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
* Yet another patch to fixup lsmodEric Andersen2000-08-211-1/+1
| | | | -Erik
* Some leftover stuff I forgot to commit for the lsmod change.Eric Andersen2000-08-211-0/+7
| | | | -Erik
* Added fix from David Vrabel <dvrabel@arcom.co.uk> for aEric Andersen2000-08-111-1/+1
| | | | | buffer overrun in find_real_root_device(), fixing bug #1019 -Erik
* Some #include updates.Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Merge in two patches from Dave Cinege:Eric Andersen2000-08-021-4/+4
| | | | | | | | | | 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
* Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn'tMatt Kraai2000-08-011-1/+1
| | | | exist. Also allow early search termination (per the comments).
* More sh updates (with related changes to everything else). SwitchedEric Andersen2000-07-281-1/+9
| | | | | | to using getopt and cleaned up the resulting mess. if-then-else-fi is now basically working (given a bunch of constraints). -Erik
* Moved some code and add a coupld #defines to support use of dmalloc.Eric Andersen2000-07-191-3/+15
| | | | -Erik
* New message added to messages.c: full_versionPavel Roskin2000-07-171-2/+2
| | | | Used where possible
* Moved functions used by "lsmod" from cat.c to utility.cPavel Roskin2000-07-171-4/+27
| | | | | Adjusted to make lsmod and sh compilable as standalone apps. Comment fixes
* Now it's possible to compile Busybox with only one app definedPavel Roskin2000-07-171-11/+20
| | | | (unless it's lsmod, to be fixed by the next commit)