[BusyBox-cvs] busybox/coreutils cat.c,1.28,1.29

Glenn McGrath bug1 at busybox.net
Fri Nov 21 22:24:55 UTC 2003


Update of /var/cvs/busybox/coreutils
In directory winder:/tmp/cvs-serv3728/coreutils

Modified Files:
	cat.c 
Log Message:
As we no longer use function pointers for read in common archiving code 
archive_xread can be replaced with bb_full_read, and archive_copy_file 
with bb_copyfd*
bb_copyfd is split into two functions bb_copyfd_size and bb_copyfd_eof, 
they share a common backend.


Index: cat.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/cat.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- cat.c	19 Mar 2003 09:11:32 -0000	1.28
+++ cat.c	21 Nov 2003 22:24:50 -0000	1.29
@@ -54,7 +54,7 @@
 
 	do {
 		if ((f = bb_wfopen_input(*argv)) != NULL) {
-			int r = bb_copyfd(fileno(f), STDOUT_FILENO, 0);
+			int r = bb_copyfd_eof(fileno(f), STDOUT_FILENO);
 			bb_fclose_nonstdin(f);
 			if (r >= 0) {
 				continue;




More information about the busybox-cvs mailing list