[BusyBox-cvs] busybox/libbb dump.c,1.9,1.10 print_file.c,1.9,1.10
Erik Andersen
andersen at busybox.net
Sat Mar 27 10:02:45 UTC 2004
- Previous message: [BusyBox-cvs] busybox/archival/libunarchive data_extract_to_stdout.c, 1.4, 1.5
- Next message: [BusyBox-cvs] busybox/networking ftpgetput.c, 1.17, 1.18 nc.c, 1.23, 1.24 tftp.c, 1.26, 1.27 wget.c, 1.71, 1.72
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/busybox/libbb
In directory nail:/tmp/cvs-serv8801/busybox/libbb
Modified Files:
dump.c print_file.c
Log Message:
s/fileno\(stdin\)/STDIN_FILENO/g
s/fileno\(stdout\)/STDOUT_FILENO/g
Index: dump.c
===================================================================
RCS file: /var/cvs/busybox/libbb/dump.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- a/dump.c 15 Mar 2004 08:28:41 -0000 1.9
+++ b/dump.c 27 Mar 2004 10:02:42 -0000 1.10
@@ -311,7 +311,7 @@
struct stat sbuf;
if (statok) {
- if (fstat(fileno(stdin), &sbuf)) {
+ if (fstat(STDIN_FILENO, &sbuf)) {
bb_perror_msg_and_die("%s", fname);
}
if ((!(S_ISCHR(sbuf.st_mode) ||
Index: print_file.c
===================================================================
RCS file: /var/cvs/busybox/libbb/print_file.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- a/print_file.c 15 Mar 2004 08:28:43 -0000 1.9
+++ b/print_file.c 27 Mar 2004 10:02:42 -0000 1.10
@@ -28,7 +28,7 @@
bb_xfflush_stdout();
/* Note: Do not use STDOUT_FILENO here, as this is a lib routine
* and the calling code may have reassigned stdout. */
- if (bb_copyfd_eof(fileno(file), fileno(stdout)) == -1) {
+ if (bb_copyfd_eof(fileno(file), STDOUT_FILENO) == -1) {
/* bb_copyfd outputs any needed messages, so just die. */
exit(bb_default_error_retval);
}
- Previous message: [BusyBox-cvs] busybox/archival/libunarchive data_extract_to_stdout.c, 1.4, 1.5
- Next message: [BusyBox-cvs] busybox/networking ftpgetput.c, 1.17, 1.18 nc.c, 1.23, 1.24 tftp.c, 1.26, 1.27 wget.c, 1.71, 1.72
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the busybox-cvs
mailing list