~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to coreutils/stty.c

  • Committer: Denys Vlasenko
  • Author(s): Christian Franke
  • Date: 2023-11-13 10:32:35 UTC
  • Revision ID: git-v1:a63b60bdd6fa26b867c80d44074118babbae7ffd
Cygwin: regenerate defconfig

Signed-off-by: Christian Franke <christian.franke@t-online.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001
11
11
 */
12
12
//config:config STTY
13
 
//config:       bool "stty (8.9 kb)"
 
13
//config:       bool "stty (9.2 kb)"
14
14
//config:       default y
15
15
//config:       help
16
16
//config:       stty is used to change and print terminal line settings.
487
487
#undef MI_ENTRY
488
488
#define MI_ENTRY(N,T,F,B,M) { T, F, M, B },
489
489
 
490
 
static const struct mode_info mode_info[] = {
 
490
static const struct mode_info mode_info[] ALIGN4 = {
491
491
        /* This should be verbatim cut-n-paste copy of the above MI_ENTRYs */
492
492
        MI_ENTRY("evenp",    combination, REV        | OMIT, 0,          0 )
493
493
        MI_ENTRY("parity",   combination, REV        | OMIT, 0,          0 )
855
855
                        }
856
856
                }
857
857
        }
858
 
        fputs(buf, stdout);
 
858
        fputs_stdout(buf);
859
859
        G.current_col += buflen;
860
860
        if (buf[buflen-1] == '\n')
861
861
                G.current_col = 0;
905
905
        }
906
906
}
907
907
 
908
 
static const struct suffix_mult stty_suffixes[] = {
 
908
static const struct suffix_mult stty_suffixes[] ALIGN_SUFFIX = {
909
909
        { "b",  512 },
910
910
        { "k", 1024 },
911
911
        { "B", 1024 },