diff options
author | Elliott Hughes <enh@google.com> | 2017-12-01 22:43:38 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-12-03 01:29:30 -0600 |
commit | ef213b3d92febeb92e530f708e1647ca5459403c (patch) | |
tree | f51555253cbd2938b429541259be31ef6eb107cc /toys/android/setprop.c | |
parent | 7ce9c2d1f60cb36a2a33dcf420f62d220b28edb2 (diff) | |
download | toybox-ef213b3d92febeb92e530f708e1647ca5459403c.tar.gz |
Add stty(1).
Full POSIX stty with Linux extensions. Output and behavior match coreutils
8.26 as far as I can tell. For some reason busybox 1.22 stty always
shows all the special characters, even when they match "sane". I've
matched coreutils, since "shows differences from sane" is easy to describe
and obviously useful.
Flags in the various arrays are not in the order they're introduced in
POSIX or in the Linux header file: they're in the order that they're
output by coreutils' stty.
The -g output matches coreutils and busybox.
I implemented iuclc, xcase, and olcuc even though they've been removed
from POSIX because the others implement them, and "man stty" defines "raw"
and "sane" in terms of them (where POSIX doesn't define "sane" in any
useful sense).
This builds fine against glibc 2.24, and as far as I can tell all the
constants used were in Linux 2.6 so I'm assuming that there shouldn't
be any #ifdef nonsense needed for any reasonable vintage of C library.
Diffstat (limited to 'toys/android/setprop.c')
0 files changed, 0 insertions, 0 deletions