summaryrefslogtreecommitdiff
path: root/coreutils/stty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: whitespace fixesDenys Vlasenko2010-10-281-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: sort out preprocessor conditionalsJeremie Koenig2010-08-011-125/+214
| | | | | | | | | | * Move the definitions of missing constants to the top of the file. * Fix undefined IDX_xxx on missing termios constants. * FreeBSD has TABDLY, TAB0 and TAB3, but no TAB1 or TAB2 * Omit the definition of set_window_size() if TIOCGWINSZ is not available. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: code shrink -44 bytesDenys Vlasenko2009-12-111-20/+27
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: fix columns command. closes bug 791.Denys Vlasenko2009-12-111-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove a few more cases of argc usage. -89 bytes.Denys Vlasenko2009-11-281-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tidy up O_NONBLOCK usage. use libbb functions in stty.Denys Vlasenko2009-11-111-10/+2
| | | | | | | | | | 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>
* add and use xopen_nonblocking (-18b)Bernhard Reutner-Fischer2009-10-271-1/+1
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more C standard compat fixes from Dan FandrichDenys Vlasenko2009-09-061-1/+1
| | | | | | | function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move libc related stuff out of platform.hDenys Vlasenko2009-07-081-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Patches to enable FreeBSD buildDenys Vlasenko2009-07-051-0/+4
| | | | | | | | | 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>
* mdev: Rob's #if forest removalDenis Vlasenko2009-04-191-3/+3
| | | | | *: remove superfluous conts in "f(type *const param)"
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-2/+2
|
* whitespace fixes. no code changesDenis Vlasenko2008-06-251-5/+4
|
* more -Wall warning fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-131-1/+1
| | | | | | | | | | | | | 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
* stty: fix mishandling of 'control' keywords (Ralf Friedl ↵Denis Vlasenko2008-01-271-20/+4
| | | | <Ralf.Friedl@online.de>)
* stty: reorganize data tables - save 0.5kDenis Vlasenko2007-11-241-151/+376
| | | | | | | | | | | | | | | | | | | | | | 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
* stty: mark variable as staticDenis Vlasenko2007-11-181-1/+1
|
* stty: incorporate strings into struct instead of keeping pointers there.Denis Vlasenko2007-10-111-85/+123
| | | | | | | | | | | | | 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
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-3/+3
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-29/+29
| | | | | | | | | 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
* multiplier suffixes are short, store them directly in struct suffix_multDenis Vlasenko2007-07-271-4/+4
| | | | | | | | | | | | 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
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-12/+10
| | | | | | | | | 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
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-2/+2
| | | | <wharms@bfs.de>)
* whitespace fixesDenis Vlasenko2007-05-301-1/+1
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* stty: fix option parsing bug (spotted by Sascha Hauer <s.hauer@pengutronix.de>)Denis Vlasenko2007-04-191-15/+16
|
* style fixes. No code changes.Denis Vlasenko2007-04-101-3/+3
|
* add some missed statics on constant objects.Denis Vlasenko2007-04-081-9/+9
| | | | | | | | | | 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
* - remove some bss users.Bernhard Reutner-Fischer2007-04-041-17/+22
| | | | | | text data bss dec hex filename 6220 8 14 6242 1862 stty.o.oorig 6219 8 0 6227 1853 stty.o
* - fix buglet introduced in r17351 in find_param(). Closes #1193Bernhard Reutner-Fischer2007-02-041-4/+5
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* - reinstate paranoia check in wrapf().Bernhard Reutner-Fischer2007-01-181-2/+3
|
* stop using global variable needlesslyDenis Vlasenko2007-01-181-28/+30
|
* - remove superfluous define that expanded to "!strcmp"Bernhard Reutner-Fischer2007-01-171-22/+3
| | | | - remove some dead code
* - reuse return code of vsnprintf to avoid pulling in strlenBernhard Reutner-Fischer2007-01-171-3/+3
|
* - merge display_changed() and display_all()Bernhard Reutner-Fischer2007-01-171-69/+22
| | | | This one is a bit risky but did work for me in cursory testing..
* - peruse get_terminal_width_height and remove legacy code for ancientBernhard Reutner-Fischer2007-01-171-69/+10
| | | | slowaris versions.
* - rewrite find_param to use index_in_str_arrayBernhard Reutner-Fischer2007-01-171-1/+21
|
* - manually inline tty_value_to_baud and remove string_to_baud_or_dieBernhard Reutner-Fischer2007-01-171-10/+5
| | | | (cleanup)
* - constify some read-only members and remove superfluous castsBernhard Reutner-Fischer2007-01-171-12/+11
| | | | (cleanup)
* - reuse option_mask32 for state-handling in mainBernhard Reutner-Fischer2007-01-171-36/+33
| | | | - improve check for errors from fcntl
* stty: fix bug reported by Paul Albrecht <albrecht@rdi1.com> -Denis Vlasenko2007-01-121-0/+3
| | | | stty -echo didn't work. Introduced by me :(
* stty: rearrange functions, avoiding the need in forward declarations.Denis Vlasenko2007-01-121-386/+374
| | | | No other code chages.
* stty: fix width of a field for ppc32Denis Vlasenko2007-01-011-9/+14
| | | | | sort: fix -u to match coreutils 6.3 msh: compile fix (my fault)
* rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko2006-11-181-1/+1
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-20/+16
|
* Yet another silly little byte saving. couldn't -> cannotDenis Vlasenko2006-09-291-1/+1
|