summaryrefslogtreecommitdiff
path: root/utility.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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)
* More cleanups.Eric Andersen2000-07-141-9/+9
| | | | -Erik
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-4/+3
|
* Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cMark Whitley2000-07-121-5/+2
| | | | (maybe I'll remove it later).
* Always report the applet name when doing error reporting.Matt Kraai2000-07-121-4/+6
|
* Forgot to commit these cleanups it seems.Eric Andersen2000-07-111-2/+0
| | | | -Erik
* Applied patch from Matt Kraai which does the following:Mark Whitley2000-07-111-0/+16
| | | | | | | - 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
* Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009.Eric Andersen2000-07-101-0/+30
| | | | -Erik
* Comment on kernel stuffEric Andersen2000-07-101-2/+2
| | | | -Erik
* Remove yet more kernel header dependancies.Eric Andersen2000-07-101-2/+0
| | | | -Erik
* Put the GROWBY variable inside the get_line_from_file function, as that is theMark Whitley2000-07-101-1/+2
| | | | | only function where it's used and it's always good to keep the namespace clean. :-)
* From Matt Kraai <kraai@alumni.carnegiemellon.edu>:Eric Andersen2000-07-101-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Howdy, Bug #1006 reports that ln -s /tmp/foo . does not work correctly. In fact, it appears that any instantiation of ln -s FILE... DIRECTORY does not work. The following patch adds support for this form, which then fixes the particular instance noted in the bug report. In the process, I needed the basename function. This appears in the string.h provided by glibc, but not uC-libc. So I wrote my own to go in utility.c, called get_last_path_component. I also modified the basename utility to use this function. At some point it might be desirous to use the basename from the library if it exists, and otherwise compile our own. But I don't know how to do this. Matt
* Fix a bug in get_line_from_file. If the length of the line is (GROWBY * n) +Eric Andersen2000-07-091-1/+1
| | | | | | GROWBY - 1, then it writes the null character just after the buffer. Yipe. Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu> Thanks Matt! -Erik
* Argh. More cross libc cleanup. Should be ok now...Eric Andersen2000-07-081-1/+16
| | | | -Erik
* Update files to reduce dependance on kernel version...Eric Andersen2000-07-081-5/+6
| | | | -Erik
* setkeycodes needs get_console_fd(), so if you disable chvt and deallocvt, butEric Andersen2000-07-061-3/+3
| | | | | | | | leave setkeycodes active, busybox will not link. Also fix a trivial use-before-initialize warning. Both fixes from Jon McClintock <jonm@bluemug.com>. -Erik
* Remove misguided klude around for 2.4.x-test* brokenness. Al ViroEric Andersen2000-07-051-3/+0
| | | | | will be removing this stuff from /proc/mounts real soon now I am assured. -Erik
* * Fix to tr so it recognizes standard escape sequences. Merged commonEric Andersen2000-07-051-0/+45
| | | | | | | escape seq. code from tr and echo into utility.c. Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu>. * This should close Bug #1015. Please test. -Erik
* Yanked out the cstring_alloc() and cstring_lineFromFile() functions fromMark Whitley2000-06-281-48/+27
| | | | | | | utility.c and replaced them with get_line_from_file() from the new grep.c. Also changed declaration in internal.h and replaced instances of cstring_lineFromFile() in dc.c and sort.c with get_line_from_file(). Tested them and they worked fine.
* Better cross libc support.Eric Andersen2000-06-281-0/+1
| | | | -Erik
* Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries inEric Andersen2000-06-261-0/+12
| | | | | /proc/mounts, added a hack to make sysinfo work with both old and new kernels). -Erik
* + utility.cJohn Beppu2000-06-121-1/+1
| | | | | | | CSTRING_BUFFER_LENGTH = 1024 /* so it recurses less often */ + grep.c uses cstring_lineFromFile(), and doesn't ever say Line is too long, anymore
* Added a slightly modified version of Ron Alder's insmod patch.Eric Andersen2000-06-121-3/+3
| | | | | Very cool stuff. -Erik
* Fix /etc/passwd misspelling.Eric Andersen2000-06-021-1/+1
| | | | -Erik
* A number of additional fixed from Pavel Roskin, note some more bugs in theEric Andersen2000-06-021-3/+3
| | | | | | TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox, which is now included. -Erik
* More libc portability updates, add in the website (which has not beenErik Andersen2000-05-191-2/+3
| | | | | archived previously). Wrote 'which' during the meeting today. -Erik
* Some more portability updatesErik Andersen2000-05-171-10/+10
| | | | -Erik
* So much for my evil optimization. Doesn't seem to work. Will testErik Andersen2000-05-131-4/+63
| | | | | more on it later. -Erik
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen2000-05-121-66/+8
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* * cp -fa now works as expected for symlinks (it didn't before)Erik Andersen2000-05-101-11/+9
| | | | | | * zcat works again (wasn't working since option parsing was broken) * more doc updates/more support for BB_FEATURE_SIMPLE_HELP -Erik
* Fix umount dependency on find_real_root_device_nameErik Andersen2000-05-081-1/+1
| | | | -Erik