ash: cosmetic cleanups
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c5d0f15dbd
commit
8c52f80397
21
shell/ash.c
21
shell/ash.c
@ -105,7 +105,7 @@
|
|||||||
//config: Enable job control in the ash shell.
|
//config: Enable job control in the ash shell.
|
||||||
//config:
|
//config:
|
||||||
//config:config ASH_ALIAS
|
//config:config ASH_ALIAS
|
||||||
//config: bool "alias support"
|
//config: bool "Alias support"
|
||||||
//config: default y
|
//config: default y
|
||||||
//config: depends on ASH
|
//config: depends on ASH
|
||||||
//config: help
|
//config: help
|
||||||
@ -116,28 +116,28 @@
|
|||||||
//config: default y
|
//config: default y
|
||||||
//config: depends on ASH
|
//config: depends on ASH
|
||||||
//config: help
|
//config: help
|
||||||
//config: Enable getopts builtin in the ash shell.
|
//config: Enable support for getopts builtin in ash.
|
||||||
//config:
|
//config:
|
||||||
//config:config ASH_BUILTIN_ECHO
|
//config:config ASH_BUILTIN_ECHO
|
||||||
//config: bool "Builtin version of 'echo'"
|
//config: bool "Builtin version of 'echo'"
|
||||||
//config: default y
|
//config: default y
|
||||||
//config: depends on ASH
|
//config: depends on ASH
|
||||||
//config: help
|
//config: help
|
||||||
//config: Enable support for echo, builtin to ash.
|
//config: Enable support for echo builtin in ash.
|
||||||
//config:
|
//config:
|
||||||
//config:config ASH_BUILTIN_PRINTF
|
//config:config ASH_BUILTIN_PRINTF
|
||||||
//config: bool "Builtin version of 'printf'"
|
//config: bool "Builtin version of 'printf'"
|
||||||
//config: default y
|
//config: default y
|
||||||
//config: depends on ASH
|
//config: depends on ASH
|
||||||
//config: help
|
//config: help
|
||||||
//config: Enable support for printf, builtin to ash.
|
//config: Enable support for printf builtin in ash.
|
||||||
//config:
|
//config:
|
||||||
//config:config ASH_BUILTIN_TEST
|
//config:config ASH_BUILTIN_TEST
|
||||||
//config: bool "Builtin version of 'test'"
|
//config: bool "Builtin version of 'test'"
|
||||||
//config: default y
|
//config: default y
|
||||||
//config: depends on ASH
|
//config: depends on ASH
|
||||||
//config: help
|
//config: help
|
||||||
//config: Enable support for test, builtin to ash.
|
//config: Enable support for test builtin in ash.
|
||||||
//config:
|
//config:
|
||||||
//config:config ASH_CMDCMD
|
//config:config ASH_CMDCMD
|
||||||
//config: bool "'command' command to override shell builtins"
|
//config: bool "'command' command to override shell builtins"
|
||||||
@ -153,7 +153,7 @@
|
|||||||
//config: default n
|
//config: default n
|
||||||
//config: depends on ASH
|
//config: depends on ASH
|
||||||
//config: help
|
//config: help
|
||||||
//config: Enable "check for new mail" in the ash shell.
|
//config: Enable "check for new mail" function in the ash shell.
|
||||||
//config:
|
//config:
|
||||||
//config:config ASH_OPTIMIZE_FOR_SIZE
|
//config:config ASH_OPTIMIZE_FOR_SIZE
|
||||||
//config: bool "Optimize for size instead of speed"
|
//config: bool "Optimize for size instead of speed"
|
||||||
@ -1880,7 +1880,9 @@ change_lc_ctype(const char *value)
|
|||||||
#endif
|
#endif
|
||||||
#if ENABLE_ASH_MAIL
|
#if ENABLE_ASH_MAIL
|
||||||
static void chkmail(void);
|
static void chkmail(void);
|
||||||
static void changemail(const char *) FAST_FUNC;
|
static void changemail(const char *var_value) FAST_FUNC;
|
||||||
|
#else
|
||||||
|
# define chkmail() ((void)0)
|
||||||
#endif
|
#endif
|
||||||
static void changepath(const char *) FAST_FUNC;
|
static void changepath(const char *) FAST_FUNC;
|
||||||
#if ENABLE_ASH_RANDOM_SUPPORT
|
#if ENABLE_ASH_RANDOM_SUPPORT
|
||||||
@ -9586,8 +9588,7 @@ preadfd(void)
|
|||||||
nr = nonblock_safe_read(g_parsefile->pf_fd, buf, IBUFSIZ - 1);
|
nr = nonblock_safe_read(g_parsefile->pf_fd, buf, IBUFSIZ - 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0 /* disabled: nonblock_safe_read() handles this problem */
|
||||||
/* nonblock_safe_read() handles this problem */
|
|
||||||
if (nr < 0) {
|
if (nr < 0) {
|
||||||
if (parsefile->fd == 0 && errno == EWOULDBLOCK) {
|
if (parsefile->fd == 0 && errno == EWOULDBLOCK) {
|
||||||
int flags = fcntl(0, F_GETFL);
|
int flags = fcntl(0, F_GETFL);
|
||||||
@ -12072,9 +12073,7 @@ cmdloop(int top)
|
|||||||
inter = 0;
|
inter = 0;
|
||||||
if (iflag && top) {
|
if (iflag && top) {
|
||||||
inter++;
|
inter++;
|
||||||
#if ENABLE_ASH_MAIL
|
|
||||||
chkmail();
|
chkmail();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
n = parsecmd(inter);
|
n = parsecmd(inter);
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user