Commit Vladimir's latest version of stty.c. Nice work.

-Erik
This commit is contained in:
Eric Andersen 2001-02-14 18:47:33 +00:00
parent ec45595300
commit 98e599ca06
9 changed files with 2830 additions and 2 deletions

View File

@ -1,5 +1,10 @@
0.50
* Evin Robertson -- new pivot_root applet
* Bjorn Wesen -- new ifconfig and route applet (taken from
work done be Axis Communications).
* Vladimir N. Oleynik -- new stty applet
<lots of other things -- fixme>
-Erik Andersen, not yet released

View File

@ -95,6 +95,7 @@
#define BB_SH
#define BB_SLEEP
#define BB_SORT
//#define BB_STTY
#define BB_SWAPONOFF
#define BB_SYNC
#define BB_SYSLOGD

8
TODO
View File

@ -26,12 +26,16 @@ around to it some time. If you have any good ideas, please let me know.
Possible apps to include some time:
* hwclock
* stty
* group/commonize strings, remove dups (for i18n, l10n)
-----------
Write a fixup_globals function to do just that right before calling
non-forking applets. Or, just always fork...
-----------------------
Running the following:
Run the following:
rm -f busybox && make LDFLAGS+=-nostdlib 2>&1 | \
sed -ne 's/.*undefined reference to `\(.*\)..*/\1/gp' | sort | uniq

View File

@ -308,6 +308,9 @@ const struct BB_applet applets[] = {
#ifdef BB_SORT
APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage)
#endif
#ifdef BB_STTY
APPLET("stty", stty_main, _BB_DIR_BIN, stty_usage)
#endif
#ifdef BB_SWAPONOFF
APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage)
#endif

View File

@ -1243,6 +1243,20 @@ const char sort_usage[] =
;
#endif
#if defined BB_STTY
const char stty_usage[] =
"stty [-a|g] [-F device] [SETTING]..."
#ifndef BB_FEATURE_TRIVIAL_HELP
"\n\nWithout arguments, prints baud rate, line discipline,"
"\nand deviations from stty sane."
"\n -F device open and use the specified device instead of stdin"
"\n -a print all current settings in human-readable form. Or"
"\n -g print in a stty-readable form"
"\n [SETTING] see in documentation"
#endif
;
#endif
#if defined BB_SWAPONOFF
const char swapoff_usage[] =
"swapoff [OPTION] [device]"

1392
coreutils/stty.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -308,6 +308,9 @@ const struct BB_applet applets[] = {
#ifdef BB_SORT
APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage)
#endif
#ifdef BB_STTY
APPLET("stty", stty_main, _BB_DIR_BIN, stty_usage)
#endif
#ifdef BB_SWAPONOFF
APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage)
#endif

1392
stty.c Normal file

File diff suppressed because it is too large Load Diff

14
usage.c
View File

@ -1243,6 +1243,20 @@ const char sort_usage[] =
;
#endif
#if defined BB_STTY
const char stty_usage[] =
"stty [-a|g] [-F device] [SETTING]..."
#ifndef BB_FEATURE_TRIVIAL_HELP
"\n\nWithout arguments, prints baud rate, line discipline,"
"\nand deviations from stty sane."
"\n -F device open and use the specified device instead of stdin"
"\n -a print all current settings in human-readable form. Or"
"\n -g print in a stty-readable form"
"\n [SETTING] see in documentation"
#endif
;
#endif
#if defined BB_SWAPONOFF
const char swapoff_usage[] =
"swapoff [OPTION] [device]"