diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-03-27 10:02:48 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-03-27 10:02:48 +0000 |
commit | 79e940e10ce8e62cbbbba1f52e9e03e090fd51bc (patch) | |
tree | 372a280d63bab86ec9ffddc76ec28b27a7a1b3ee /shell | |
parent | d3f5f326fc058b244ce08af69c4c7ed0e97d84b8 (diff) | |
download | busybox-w32-79e940e10ce8e62cbbbba1f52e9e03e090fd51bc.tar.gz busybox-w32-79e940e10ce8e62cbbbba1f52e9e03e090fd51bc.tar.bz2 busybox-w32-79e940e10ce8e62cbbbba1f52e9e03e090fd51bc.zip |
s/fileno\(stdin\)/STDIN_FILENO/g
s/fileno\(stdout\)/STDOUT_FILENO/g
git-svn-id: svn://busybox.net/trunk/busybox@8663 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cmdedit.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 2 | ||||
-rw-r--r-- | shell/lash.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index bf945f7e7..cbe1eeb6c 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -186,7 +186,7 @@ static void cmdedit_reset_term(void) | |||
186 | { | 186 | { |
187 | if ((handlers_sets & SET_RESET_TERM) != 0) { | 187 | if ((handlers_sets & SET_RESET_TERM) != 0) { |
188 | /* sparc and other have broken termios support: use old termio handling. */ | 188 | /* sparc and other have broken termios support: use old termio handling. */ |
189 | setTermSettings(fileno(stdin), (void *) &initial_settings); | 189 | setTermSettings(STDIN_FILENO, (void *) &initial_settings); |
190 | handlers_sets &= ~SET_RESET_TERM; | 190 | handlers_sets &= ~SET_RESET_TERM; |
191 | } | 191 | } |
192 | if ((handlers_sets & SET_WCHG_HANDLERS) != 0) { | 192 | if ((handlers_sets & SET_WCHG_HANDLERS) != 0) { |
diff --git a/shell/hush.c b/shell/hush.c index 5da975746..0a32099c7 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -2825,7 +2825,7 @@ int hush_main(int argc, char **argv) | |||
2825 | * standard output is a terminal | 2825 | * standard output is a terminal |
2826 | * Refer to Posix.2, the description of the `sh' utility. */ | 2826 | * Refer to Posix.2, the description of the `sh' utility. */ |
2827 | if (argv[optind]==NULL && input==stdin && | 2827 | if (argv[optind]==NULL && input==stdin && |
2828 | isatty(fileno(stdin)) && isatty(fileno(stdout))) { | 2828 | isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) { |
2829 | interactive++; | 2829 | interactive++; |
2830 | } | 2830 | } |
2831 | 2831 | ||
diff --git a/shell/lash.c b/shell/lash.c index d2d4298fb..e20c2a20e 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -1668,7 +1668,7 @@ int lash_main(int argc_l, char **argv_l) | |||
1668 | * standard output is a terminal | 1668 | * standard output is a terminal |
1669 | * Refer to Posix.2, the description of the `sh' utility. */ | 1669 | * Refer to Posix.2, the description of the `sh' utility. */ |
1670 | if (argv[optind]==NULL && input==stdin && | 1670 | if (argv[optind]==NULL && input==stdin && |
1671 | isatty(fileno(stdin)) && isatty(fileno(stdout))) { | 1671 | isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) { |
1672 | interactive=TRUE; | 1672 | interactive=TRUE; |
1673 | } | 1673 | } |
1674 | setup_job_control(); | 1674 | setup_job_control(); |