diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-27 10:02:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-27 10:02:48 +0000 |
commit | 70060d25d23278f6b636a535edca4a0c4006decd (patch) | |
tree | 372a280d63bab86ec9ffddc76ec28b27a7a1b3ee /networking | |
parent | edd580a088fe67f33036d3732f66f917b1c0a80b (diff) | |
download | busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.tar.gz busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.tar.bz2 busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.zip |
s/fileno\(stdin\)/STDIN_FILENO/g
s/fileno\(stdout\)/STDOUT_FILENO/g
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ftpgetput.c | 4 | ||||
-rw-r--r-- | networking/nc.c | 2 | ||||
-rw-r--r-- | networking/tftp.c | 2 | ||||
-rw-r--r-- | networking/wget.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index a13aaa228..47ffb5d98 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -154,7 +154,7 @@ static int ftp_recieve(ftp_host_info_t *server, FILE *control_stream, | |||
154 | } | 154 | } |
155 | 155 | ||
156 | if ((local_path[0] == '-') && (local_path[1] == '\0')) { | 156 | if ((local_path[0] == '-') && (local_path[1] == '\0')) { |
157 | fd_local = fileno(stdout); | 157 | fd_local = STDOUT_FILENO; |
158 | do_continue = 0; | 158 | do_continue = 0; |
159 | } | 159 | } |
160 | 160 | ||
@@ -230,7 +230,7 @@ static int ftp_send(ftp_host_info_t *server, FILE *control_stream, | |||
230 | 230 | ||
231 | /* get the local file */ | 231 | /* get the local file */ |
232 | if ((local_path[0] == '-') && (local_path[1] == '\0')) { | 232 | if ((local_path[0] == '-') && (local_path[1] == '\0')) { |
233 | fd_local = fileno(stdin); | 233 | fd_local = STDIN_FILENO; |
234 | } else { | 234 | } else { |
235 | fd_local = bb_xopen(local_path, O_RDONLY); | 235 | fd_local = bb_xopen(local_path, O_RDONLY); |
236 | fstat(fd_local, &sbuf); | 236 | fstat(fd_local, &sbuf); |
diff --git a/networking/nc.c b/networking/nc.c index 9a353c94f..3099763b1 100644 --- a/networking/nc.c +++ b/networking/nc.c | |||
@@ -79,7 +79,7 @@ int nc_main(int argc, char **argv) | |||
79 | #ifdef GAPING_SECURITY_HOLE | 79 | #ifdef GAPING_SECURITY_HOLE |
80 | if (pr00gie) { | 80 | if (pr00gie) { |
81 | /* won't need stdin */ | 81 | /* won't need stdin */ |
82 | close (fileno(stdin)); | 82 | close (STDIN_FILENO); |
83 | } | 83 | } |
84 | #endif /* GAPING_SECURITY_HOLE */ | 84 | #endif /* GAPING_SECURITY_HOLE */ |
85 | 85 | ||
diff --git a/networking/tftp.c b/networking/tftp.c index bd973d79a..bfa9897b9 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -576,7 +576,7 @@ int tftp_main(int argc, char **argv) | |||
576 | result = tftp(cmd, host, remotefile, fd, port, blocksize); | 576 | result = tftp(cmd, host, remotefile, fd, port, blocksize); |
577 | 577 | ||
578 | #ifdef CONFIG_FEATURE_CLEAN_UP | 578 | #ifdef CONFIG_FEATURE_CLEAN_UP |
579 | if (!(fd == fileno(stdout) || fd == fileno(stdin))) { | 579 | if (!(fd == STDOUT_FILENO || fd == STDIN_FILENO)) { |
580 | close(fd); | 580 | close(fd); |
581 | } | 581 | } |
582 | #endif | 582 | #endif |
diff --git a/networking/wget.c b/networking/wget.c index 619c138ba..5c94c58b8 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -794,7 +794,7 @@ progressmeter(int flag) | |||
794 | snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), | 794 | snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), |
795 | "%02d:%02d ETA", i / 60, i % 60); | 795 | "%02d:%02d ETA", i / 60, i % 60); |
796 | } | 796 | } |
797 | write(fileno(stderr), buf, strlen(buf)); | 797 | write(STDERR_FILENO, buf, strlen(buf)); |
798 | 798 | ||
799 | if (flag == -1) { | 799 | if (flag == -1) { |
800 | struct sigaction sa; | 800 | struct sigaction sa; |
@@ -846,7 +846,7 @@ progressmeter(int flag) | |||
846 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 846 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
847 | * SUCH DAMAGE. | 847 | * SUCH DAMAGE. |
848 | * | 848 | * |
849 | * $Id: wget.c,v 1.71 2004/03/15 08:28:53 andersen Exp $ | 849 | * $Id: wget.c,v 1.72 2004/03/27 10:02:43 andersen Exp $ |
850 | */ | 850 | */ |
851 | 851 | ||
852 | 852 | ||