Commit Vladimir's latest version of stty.c. Nice work.
-Erik
This commit is contained in:
parent
ec45595300
commit
98e599ca06
9 changed files with 2830 additions and 2 deletions
|
@ -1,5 +1,10 @@
|
||||||
0.50
|
0.50
|
||||||
* Evin Robertson -- new pivot_root applet
|
* 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
|
-Erik Andersen, not yet released
|
||||||
|
|
1
Config.h
1
Config.h
|
@ -95,6 +95,7 @@
|
||||||
#define BB_SH
|
#define BB_SH
|
||||||
#define BB_SLEEP
|
#define BB_SLEEP
|
||||||
#define BB_SORT
|
#define BB_SORT
|
||||||
|
//#define BB_STTY
|
||||||
#define BB_SWAPONOFF
|
#define BB_SWAPONOFF
|
||||||
#define BB_SYNC
|
#define BB_SYNC
|
||||||
#define BB_SYSLOGD
|
#define BB_SYSLOGD
|
||||||
|
|
8
TODO
8
TODO
|
@ -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:
|
Possible apps to include some time:
|
||||||
|
|
||||||
* hwclock
|
* hwclock
|
||||||
* stty
|
|
||||||
* group/commonize strings, remove dups (for i18n, l10n)
|
* 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 | \
|
rm -f busybox && make LDFLAGS+=-nostdlib 2>&1 | \
|
||||||
sed -ne 's/.*undefined reference to `\(.*\)..*/\1/gp' | sort | uniq
|
sed -ne 's/.*undefined reference to `\(.*\)..*/\1/gp' | sort | uniq
|
||||||
|
|
|
@ -308,6 +308,9 @@ const struct BB_applet applets[] = {
|
||||||
#ifdef BB_SORT
|
#ifdef BB_SORT
|
||||||
APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage)
|
APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage)
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef BB_STTY
|
||||||
|
APPLET("stty", stty_main, _BB_DIR_BIN, stty_usage)
|
||||||
|
#endif
|
||||||
#ifdef BB_SWAPONOFF
|
#ifdef BB_SWAPONOFF
|
||||||
APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage)
|
APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1243,6 +1243,20 @@ const char sort_usage[] =
|
||||||
;
|
;
|
||||||
#endif
|
#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
|
#if defined BB_SWAPONOFF
|
||||||
const char swapoff_usage[] =
|
const char swapoff_usage[] =
|
||||||
"swapoff [OPTION] [device]"
|
"swapoff [OPTION] [device]"
|
||||||
|
|
1392
coreutils/stty.c
Normal file
1392
coreutils/stty.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -308,6 +308,9 @@ const struct BB_applet applets[] = {
|
||||||
#ifdef BB_SORT
|
#ifdef BB_SORT
|
||||||
APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage)
|
APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage)
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef BB_STTY
|
||||||
|
APPLET("stty", stty_main, _BB_DIR_BIN, stty_usage)
|
||||||
|
#endif
|
||||||
#ifdef BB_SWAPONOFF
|
#ifdef BB_SWAPONOFF
|
||||||
APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage)
|
APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage)
|
||||||
#endif
|
#endif
|
||||||
|
|
14
usage.c
14
usage.c
|
@ -1243,6 +1243,20 @@ const char sort_usage[] =
|
||||||
;
|
;
|
||||||
#endif
|
#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
|
#if defined BB_SWAPONOFF
|
||||||
const char swapoff_usage[] =
|
const char swapoff_usage[] =
|
||||||
"swapoff [OPTION] [device]"
|
"swapoff [OPTION] [device]"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue