aboutsummaryrefslogtreecommitdiff
path: root/miscutils/dc.c
Commit message (Collapse)AuthorAgeFilesLines
* *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/Gravatar Denis Vlasenko2008-03-261-1/+1
|
* brctl: eliminate stray data objectGravatar Denis 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.Gravatar 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 functionsGravatar Denis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* Audit bb_common_bufsiz usage, add script which looks for misuse.Gravatar Denis Vlasenko2007-06-041-1/+1
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* usage.c: remove reference to busybox.hGravatar Denis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* - use skip_non_whitespace() where appropriateGravatar Bernhard Reutner-Fischer2007-04-101-3/+1
|
* dc: use common_bufsiz1 for evaluation stackGravatar Denis 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() havingGravatar Denis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* use skip_whitespace where appropriateGravatar Denis Vlasenko2006-10-251-3/+3
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Gravatar Denis Vlasenko2006-10-121-1/+1
| | | | Renaming...
* attempt to regularize atoi mess.Gravatar Denis Vlasenko2006-10-081-1/+1
|
* Add one-line GPL boilerplate to numerous (but not all yet) source files.Gravatar "Robert P. J. Day"2006-07-121-0/+4
|
* - remove superfluous call of stack_machine(0) upon exit.Gravatar Bernhard Reutner-Fischer2006-06-031-1/+0
|
* - move #include busybox.h to the very top so we pull in the configGravatar Bernhard Reutner-Fischer2006-06-031-1/+1
| | | | and eventual platform specific includes in early.
* Patch by Paul Whittaker, make busybox dc compatable with GNU dc. Gravatar Glenn L McGrath2004-07-241-8/+1
| | | | the following example was broken, echo "1 1 +" | dc
* Remove trailing whitespace. Update copyright to include 2004.Gravatar Eric Andersen2004-03-151-3/+3
|
* Goetz Bock writes:Gravatar 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 stringGravatar Glenn L McGrath2003-08-281-1/+1
| | | | should check the byte pointed at not the pointer itself." -junkio@
* Major coreutils update.Gravatar Manuel Novoa III2003-03-191-5/+5
|
* Support the o, f and p options, patch by Magnus M�rtenssonGravatar Glenn L McGrath2002-12-121-1/+34
|
* Patch to avoid warningsGravatar Aaron Lehmann2001-12-061-11/+11
|
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupGravatar Eric 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.hGravatar Eric 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 workGravatar Eric 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.Gravatar Matt Kraai2001-01-311-3/+3
|
* Changed names of functions in utility.c and all affected files, to makeGravatar Mark Whitley2000-12-071-3/+3
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Stop using TRUE and FALSE for exit status.Gravatar Matt Kraai2000-12-011-12/+7
|
* Renamed "internal.h" to the more sensible "busybox.h".Gravatar Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Extract usage information into a separate file.Gravatar Matt Kraai2000-07-161-8/+0
|
* Use errorMsg rather than fprintf.Gravatar Matt Kraai2000-07-141-3/+3
|
* Yanked out the cstring_alloc() and cstring_lineFromFile() functions fromGravatar Mark 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"Gravatar Pavel Roskin2000-06-211-5/+5
|
* + added dc (aka the function formerly known as math)Gravatar John Beppu2000-06-211-0/+194
+ did all the housekeeping that this change requires.