aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stty.c
AgeCommit message (Collapse)Author
2009-11-11tidy up O_NONBLOCK usage. use libbb functions in stty.Denys Vlasenko
Added O_RDONLY where improves readability. Note: O_RDONLY == 0, so it is there even if not specified. function old new delta stty_main 1289 1235 -54 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-27add and use xopen_nonblocking (-18b)Bernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-09-06more C standard compat fixes from Dan FandrichDenys Vlasenko
function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-08move libc related stuff out of platform.hDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-05Patches to enable FreeBSD buildDenys Vlasenko
platform.h: fix wrong check for endianness, fix lchown aliasing to chown on uclibc. Code seems to not be affected in my testing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-04-19mdev: Rob's #if forest removalDenis Vlasenko
*: remove superfluous conts in "f(type *const param)"
2008-07-05*: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko
2008-06-25whitespace fixes. no code changesDenis Vlasenko
2008-05-13more -Wall warning fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko
This time it resulted in small code changes: function old new delta nexpr 820 828 +8 tail_main 1200 1202 +2 wrapf 166 167 +1 parse_mount_options 227 209 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 11/-18) Total: -7 bytes
2008-01-27stty: fix mishandling of 'control' keywords (Ralf Friedl ↵Denis Vlasenko
<Ralf.Friedl@online.de>)
2007-11-24stty: reorganize data tables - save 0.5kDenis Vlasenko
function old new delta mode_name - 496 +496 control_name - 91 +91 stty_main 1235 1255 +20 find_mode 45 63 +18 find_control 45 63 +18 do_display 482 493 +11 wrapf 165 166 +1 set_mode 761 759 -2 max_col 4 - -4 device_name 4 - -4 control_info 153 34 -119 mode_info 1700 680 -1020 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 5/3 up/down: 655/-1149) Total: -494 bytes text data bss dec hex filename 777037 937 9100 787074 c0282 busybox_old 776551 929 9100 786580 c0094 busybox_unstripped
2007-11-18stty: mark variable as staticDenis Vlasenko
2007-10-11stty: incorporate strings into struct instead of keeping pointers there.Denis Vlasenko
static: text data bss dec hex filename 767535 974 9420 777929 bdec9 busybox_old 767403 974 9420 777797 bde45 busybox_unstripped dynamic -fpic: text data bss dec hex filename 718954 14030 12032 745016 b5e38 busybox_old 720278 12534 12032 744844 b5d8c busybox_unstripped
2007-10-11add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-09-27introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko
2007-08-12trylink: produce even more info about final link stageDenis Vlasenko
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
2007-07-27multiplier suffixes are short, store them directly in struct suffix_multDenis Vlasenko
function old new delta xstrtoul_range_sfx 226 217 -9 xstrtoull_range_sfx 291 280 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-20) Total: -20 bytes text data bss dec hex filename 669128 2668 13616 685412 a7564 busybox_old 669108 2668 13616 685392 a7550 busybox_unstripped
2007-07-24Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko
which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
2007-06-25Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko
<wharms@bfs.de>)
2007-05-30whitespace fixesDenis Vlasenko
2007-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-04-19stty: fix option parsing bug (spotted by Sascha Hauer <s.hauer@pengutronix.de>)Denis Vlasenko
2007-04-10style fixes. No code changes.Denis Vlasenko
2007-04-08add some missed statics on constant objects.Denis Vlasenko
fix few #ifndef ENABLE_xxx # size busybox_old busybox_unstripped text data bss dec hex filename 677152 2920 18208 698280 aa7a8 busybox_old 676420 2920 18208 697548 aa4cc busybox_unstripped
2007-04-04- remove some bss users.Bernhard Reutner-Fischer
text data bss dec hex filename 6220 8 14 6242 1862 stty.o.oorig 6219 8 0 6227 1853 stty.o
2007-02-04- fix buglet introduced in r17351 in find_param(). Closes #1193Bernhard Reutner-Fischer
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-01-18- reinstate paranoia check in wrapf().Bernhard Reutner-Fischer
2007-01-18stop using global variable needlesslyDenis Vlasenko
2007-01-17- remove superfluous define that expanded to "!strcmp"Bernhard Reutner-Fischer
- remove some dead code
2007-01-17- reuse return code of vsnprintf to avoid pulling in strlenBernhard Reutner-Fischer
2007-01-17- merge display_changed() and display_all()Bernhard Reutner-Fischer
This one is a bit risky but did work for me in cursory testing..
2007-01-17- peruse get_terminal_width_height and remove legacy code for ancientBernhard Reutner-Fischer
slowaris versions.
2007-01-17- rewrite find_param to use index_in_str_arrayBernhard Reutner-Fischer
2007-01-17- manually inline tty_value_to_baud and remove string_to_baud_or_dieBernhard Reutner-Fischer
(cleanup)
2007-01-17- constify some read-only members and remove superfluous castsBernhard Reutner-Fischer
(cleanup)
2007-01-17- reuse option_mask32 for state-handling in mainBernhard Reutner-Fischer
- improve check for errors from fcntl
2007-01-12stty: fix bug reported by Paul Albrecht <albrecht@rdi1.com> -Denis Vlasenko
stty -echo didn't work. Introduced by me :(
2007-01-12stty: rearrange functions, avoiding the need in forward declarations.Denis Vlasenko
No other code chages.
2007-01-01stty: fix width of a field for ppc32Denis Vlasenko
sort: fix -u to match coreutils 6.3 msh: compile fix (my fault)
2006-11-18rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-09-29Yet another silly little byte saving. couldn't -> cannotDenis Vlasenko
2006-09-19stty: fix few bugs found in testingDenis Vlasenko
2006-09-19stty: reorder code, reducing need in forward declarations.Denis Vlasenko
added few missed bits of error checking for parameters.
2006-09-19stty: convert "enum mode_type" into unnamed enumDenis Vlasenko
(reduces code obfuscation); deindent set_mode; add _or_die suffixes to few functions
2006-09-19stty: reduce #ifdef forestDenis Vlasenko
2006-09-19stty: simplify linewrapping code a bitDenis Vlasenko
2006-09-19stty: style fixesDenis Vlasenko
2006-09-19stty: fix a longstanding FIXME (was able to die half-way setting term params)Denis Vlasenko