aboutsummaryrefslogtreecommitdiff
path: root/utility.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* utility.c must include stdarg.hdwhedon2001-02-231-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1904 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Argh. I should know to compile first.andersen2001-02-231-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1898 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACEandersen2001-02-231-1/+2
| | | | | | | | is enabled. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1896 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another update to the way usage messages are done by Evin Robertsonandersen2001-02-221-12/+10
| | | | | | | | | <nitfol@my-deja.com>, which makes things just a little bit smaller, but makes usage.h more readable/maintainable IMHO. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1879 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-14/+14
| | | | | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few more cleanups from Vladimir.andersen2001-02-181-17/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1853 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Regression testing bugfixes from Larry Doolittle. As an aside,andersen2001-02-161-3/+4
| | | | | | | | | | | can I just say how much I am looking forward to having 0.50 released, so we can address this #define stupidness properly by building a static libbusybox, and then letting the linker sort out the dependancies.... Ahh, that will be much nicer. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1837 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I forgot to add usage.h, so here it is, with a few extra cleanups.andersen2001-02-141-2/+8
| | | | | | | | | | Also update show_usage to handle the updated usage.h. Again, nearly all the work to get usage.h into shape was done by Manuel Novoa III. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1806 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-2/+25
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in ifconfig and routeandersen2001-02-141-0/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1802 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Several cleanups from Manuel Novoa III.andersen2001-02-141-132/+153
| | | | | | | | | | | | | | | get_kernel_revision -- size reduction NOTE: may want to combine with get_kernel_version in insmod??? parse_mode -- size reduction, multiple settings with "," now work correctly, sticky-bit setting now implemented process_escape_sequence -- size reduction, octal code to big for char bug fixed format -- size reduction, val > LONG_MAX and hr = 1 printing bug fixed (was %ld), git-svn-id: svn://busybox.net/trunk/busybox@1800 69ca8d6d-28ef-0310-b511-8ec308f3f277
* BB_DPKG uses copy_filebug12001-02-101-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1788 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make suffix_mult structures const. Thanks to Vladimir N. Oleynik.kraai2001-02-051-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesandersen2001-02-011-16/+4
| | | | | | | | | | to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1739 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Create find_applet_by_name function. Save 32 bytes.kraai2001-02-011-4/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix wget error message and add (and use) chomp library function.kraai2001-02-011-0/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-10/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xfopen now used by wgetandersen2001-01-311-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1730 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix ls behavior for broken or very narrow terminals. Fix my_*andersen2001-01-301-8/+8
| | | | | | | | | functions so they comply with the original interface (i.e. don't exit on error, stringify uids and gids when no amtching name found). -Erik git-svn-id: svn://busybox.net/trunk/busybox@1715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-01-271-0/+8
| | | | | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a patch to make busybox use the normal pwd.h and grp.handersen2001-01-271-86/+43
| | | | | | | | | functions. Add in simple implementations of these functions, which can, optionally, be used instead of the system versions. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1694 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tar, by itself, could fail.andersen2001-01-251-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for dpkg-deb, courtesy of Larry Doolittle.andersen2001-01-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1662 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More regression testing found bugletsandersen2001-01-251-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1660 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More regression-found bug fixesandersen2001-01-241-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1657 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more bugs fixed -- found doing regression testingandersen2001-01-241-3/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add HUMAN_READABLE define for -m and -h support in du, df, and lsrjune2001-01-221-0/+21
| | | | | | | | Add support for -k in du, df, and ls(no define, it's for compatibliity with the GNU utils as bb does -k by default) Fix bug #1084 git-svn-id: svn://busybox.net/trunk/busybox@1635 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use getopt (or getopt_long).kraai2001-01-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1634 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lean up a potential error, thanks to Vladimir N. Oleynik <dzo@simtreas.ru>.andersen2001-01-201-11/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1627 69ca8d6d-28ef-0310-b511-8ec308f3f277
* enable is_direcotry() for dpkg-debbug12001-01-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1525 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Improvements from Vladimir N. Oleynik.kraai2000-12-301-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1507 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use busybox error handling functions wherever possible.kraai2000-12-221-29/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix tar handling of absolute paths and excluded directories.kraai2000-12-191-6/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1470 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote dd.kraai2000-12-181-62/+36
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1469 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing newlines to error messages.kraai2000-12-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1465 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrite nc to be simpler, smaller, and to check syscalls for errors.kraai2000-12-151-1/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1464 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove defines for ar that arent neededbug12000-12-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1462 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Matt Kraai -- a better way to NULL terminate strings for theandersen2000-12-131-0/+2
| | | | | | | | my_* passwd and group routines. I should have thought of doing it this way... git-svn-id: svn://busybox.net/trunk/busybox@1443 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Matt Kraai so basename / will work as expected.andersen2000-12-121-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1435 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some compile fixes found by Larry Doolittleandersen2000-12-121-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1431 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Matt Kraai pointed out that we can rely on strncpy to NULLandersen2000-12-111-1/+1
| | | | | | | terminate shorter cases, so we can save a few cycles... git-svn-id: svn://busybox.net/trunk/busybox@1429 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix non-NULL terminated strings.andersen2000-12-111-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1425 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai to enable proxy support.andersen2000-12-071-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1399 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-53/+53
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed some #define strings to static const char [] variables. Tested lsmarkw2000-12-051-4/+4
| | | | | | | after changing, it worked. git-svn-id: svn://busybox.net/trunk/busybox@1381 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed the comments to match the code and renamed the function to a (hopefully)markw2000-12-051-9/+9
| | | | | | | more descriptive name, and as per the style guide. git-svn-id: svn://busybox.net/trunk/busybox@1379 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Matt Kraai to add v*error functions for handling varargmarkw2000-12-051-21/+21
| | | | | | | lists in a safe 'n sane fashion. git-svn-id: svn://busybox.net/trunk/busybox@1378 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use perrorMsg instead of perror and keep removing files if we encounterkraai2000-12-051-5/+5
| | | | | | | an error. git-svn-id: svn://busybox.net/trunk/busybox@1377 69ca8d6d-28ef-0310-b511-8ec308f3f277