[BusyBox-cvs] busybox/shell cmdedit.c, 1.89, 1.90 hush.c, 1.64, 1.65 lash.c, 1.157, 1.158
Erik Andersen
andersen at busybox.net
Sat Mar 27 10:02:49 UTC 2004
Update of /var/cvs/busybox/shell
In directory nail:/tmp/cvs-serv8801/busybox/shell
Modified Files:
cmdedit.c hush.c lash.c
Log Message:
s/fileno\(stdin\)/STDIN_FILENO/g
s/fileno\(stdout\)/STDOUT_FILENO/g
Index: hush.c
===================================================================
RCS file: /var/cvs/busybox/shell/hush.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- a/hush.c 15 Mar 2004 08:29:12 -0000 1.64
+++ b/hush.c 27 Mar 2004 10:02:45 -0000 1.65
@@ -2825,7 +2825,7 @@
* standard output is a terminal
* Refer to Posix.2, the description of the `sh' utility. */
if (argv[optind]==NULL && input==stdin &&
- isatty(fileno(stdin)) && isatty(fileno(stdout))) {
+ isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) {
interactive++;
}
Index: lash.c
===================================================================
RCS file: /var/cvs/busybox/shell/lash.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- a/lash.c 15 Mar 2004 08:29:12 -0000 1.157
+++ b/lash.c 27 Mar 2004 10:02:45 -0000 1.158
@@ -1668,7 +1668,7 @@
* standard output is a terminal
* Refer to Posix.2, the description of the `sh' utility. */
if (argv[optind]==NULL && input==stdin &&
- isatty(fileno(stdin)) && isatty(fileno(stdout))) {
+ isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) {
interactive=TRUE;
}
setup_job_control();
Index: cmdedit.c
===================================================================
RCS file: /var/cvs/busybox/shell/cmdedit.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- a/cmdedit.c 22 Feb 2004 11:13:28 -0000 1.89
+++ b/cmdedit.c 27 Mar 2004 10:02:45 -0000 1.90
@@ -186,7 +186,7 @@
{
if ((handlers_sets & SET_RESET_TERM) != 0) {
/* sparc and other have broken termios support: use old termio handling. */
- setTermSettings(fileno(stdin), (void *) &initial_settings);
+ setTermSettings(STDIN_FILENO, (void *) &initial_settings);
handlers_sets &= ~SET_RESET_TERM;
}
if ((handlers_sets & SET_WCHG_HANDLERS) != 0) {
More information about the busybox-cvs
mailing list