[BusyBox-cvs] busybox/coreutils cat.c,1.28,1.29
Glenn McGrath
bug1 at busybox.net
Fri Nov 21 22:24:55 UTC 2003
- Previous message: [BusyBox-cvs] busybox/archival/libunarchive Makefile.in, 1.20, 1.21 archive_xread_all.c, 1.2, 1.3 archive_xread_all_eof.c, 1.2, 1.3 data_extract_all.c, 1.15, 1.16 data_extract_to_stdout.c, 1.2, 1.3 get_header_tar.c, 1.28, 1.29 seek_by_char.c, 1.2, 1.3 archive_copy_file.c, 1.4, NONE archive_xread.c, 1.4, NONE
- Next message: [BusyBox-cvs] busybox/include libbb.h, 1.121, 1.122 unarchive.h, 1.21, 1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
- Previous message: [BusyBox-cvs] busybox/archival/libunarchive Makefile.in, 1.20, 1.21 archive_xread_all.c, 1.2, 1.3 archive_xread_all_eof.c, 1.2, 1.3 data_extract_all.c, 1.15, 1.16 data_extract_to_stdout.c, 1.2, 1.3 get_header_tar.c, 1.28, 1.29 seek_by_char.c, 1.2, 1.3 archive_copy_file.c, 1.4, NONE archive_xread.c, 1.4, NONE
- Next message: [BusyBox-cvs] busybox/include libbb.h, 1.121, 1.122 unarchive.h, 1.21, 1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the busybox-cvs
mailing list