aboutsummaryrefslogtreecommitdiff
path: root/miscutils/dc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* dc: fix the "base 2" patch omission of base not being setDenis Vlasenko2008-12-301-1/+3
|
* dc: support for bases 2 and 8, by Nate Case (ncase AT xes-inc.com)Denis Vlasenko2008-10-301-6/+32
| | | | | | | | | | function old new delta print_base 87 176 +89 set_output_base 81 95 +14 static.bases - 5 +5 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 108/0) Total: 108 bytes
* dc: conditionalize parts which require libmDenis Vlasenko2008-10-201-0/+4
|
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* whitespace fixes. no code changesDenis Vlasenko2008-06-251-2/+1
|
* *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/Denis Vlasenko2008-03-261-1/+1
|
* brctl: eliminate stray data objectDenis Vlasenko2008-03-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | brctl: use constant fd to reduce parameter passing runsvdir: do not use data/bss od: reuse bb_argv_dash last: do not go into endless loop on read error mount: make it not fail scripts/find_bad_common_bufsiz check dc: add INIT_G() (no-op for dc, but we want uniform usage of "G trick") function old new delta runsvdir_main 1646 1672 +26 set_pgrp 1 - -1 exitsoon 1 - -1 check 679 678 -1 svnum 4 - -4 svdir 4 - -4 sv 4 - -4 stamplog 4 - -4 rploglen 4 - -4 rplog 4 - -4 mount_main 995 988 -7 static.default_file_list 8 - -8 pfd 8 - -8 logpipe 8 - -8 static.info 20 - -20 brctl_main 767 739 -28 ------------------------------------------------------------------------------ (add/remove: 0/12 grow/shrink: 1/3 up/down: 26/-106) Total: -80 bytes text data bss dec hex filename 793327 662 7412 801401 c3a79 busybox_old 793329 641 7372 801342 c3a3e busybox_unstripped
* *: fix various kinds of damage to letter 'c' in Arkadiusz Mickiewicz' surname.Denis Vlasenko2008-03-171-51/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | chrt,taskset,dc,eject: shrink crontab: call "vi" with just name, no path watchdog: intercept all fatal signals function old new delta xstrtoull_range - 35 +35 static.sg_commands - 18 +18 packed_usage 23698 23712 +14 watchdog_main 148 151 +3 crontab_main 637 638 +1 base 1 - -1 static.ps 4 - -4 pointer 4 - -4 stack_machine 99 92 -7 run_command 273 260 -13 eject_main 360 343 -17 static.C 30 12 -18 ptok 61 38 -23 xstrtol_range 27 - -27 get_token 35 - -35 taskset_main 586 550 -36 chrt_main 411 372 -39 dc_main 158 117 -41 time_main 1127 1037 -90 ------------------------------------------------------------------------------ (add/remove: 2/5 grow/shrink: 3/9 up/down: 71/-355) Total: -284 bytes text data bss dec hex filename 793680 662 7420 801762 c3be2 busybox_old 793327 662 7412 801401 c3a79 busybox_unstripped
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-1/+1
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* - use skip_non_whitespace() where appropriateBernhard Reutner-Fischer2007-04-101-3/+1
|
* dc: use common_bufsiz1 for evaluation stackDenis Vlasenko2007-03-241-18/+17
| | | | | msh: fix "underscore bug" (a_b=1111 didn't work) dnsd: openlog(), so that applet's name is logged
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* use skip_whitespace where appropriateDenis Vlasenko2006-10-251-3/+3
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko2006-10-121-1/+1
| | | | Renaming...
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-1/+1
|
* Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"2006-07-121-0/+4
|
* - remove superfluous call of stack_machine(0) upon exit.Bernhard Reutner-Fischer2006-06-031-1/+0
|
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-031-1/+1
| | | | and eventual platform specific includes in early.
* Patch by Paul Whittaker, make busybox dc compatable with GNU dc. Glenn L McGrath2004-07-241-8/+1
| | | | the following example was broken, echo "1 1 +" | dc
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-3/+3
|
* Goetz Bock writes:Eric Andersen2003-10-221-0/+20
| | | | | | | | | | Dear list, during my quest do pack busybox into an RPM, I've fixed a small bug (missing \n) in dc's usage. And added two additional operations: mod and exp/power. Feel free to drop them.
* "Typo and/or thinko: scanning till the end of NUL terminated stringGlenn L McGrath2003-08-281-1/+1
| | | | should check the byte pointed at not the pointer itself." -junkio@
* Major coreutils update.Manuel Novoa III2003-03-191-5/+5
|
* Support the o, f and p options, patch by Magnus M�rtenssonGlenn L McGrath2002-12-121-1/+34
|
* Patch to avoid warningsAaron Lehmann2001-12-061-11/+11
|
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen2001-03-091-0/+1
| | | | | warnings with glibc 2.2 and use always use xfopen -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | 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
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-3/+3
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-3/+3
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-011-12/+7
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-8/+0
|
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-3/+3
|
* Yanked out the cstring_alloc() and cstring_lineFromFile() functions fromMark Whitley2000-06-281-1/+1
| | | | | | | 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.
* Removed all vestiges of "math"Pavel Roskin2000-06-211-5/+5
|
* + added dc (aka the function formerly known as math)John Beppu2000-06-211-0/+194
+ did all the housekeeping that this change requires.