1
0
mirror of https://github.com/git/git.git synced 2024-09-28 08:49:45 +02:00
git/vcs-svn
Jonathan Nieder 26557fc1b3 vcs-svn: make buffer_copy_bytes return length read
Currently buffer_copy_bytes does not report to its caller whether
it encountered an early end of file.

Add a return value representing the number of bytes read (but not
the number of bytes copied).  This way all three unusual conditions
can be distinguished: input error with buffer_ferror, output error
with ferror(outfile), early end of input by checking the return
value.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2011-03-22 16:40:26 -05:00
..
fast_export.c
fast_export.h
LICENSE
line_buffer.c vcs-svn: make buffer_copy_bytes return length read 2011-03-22 16:40:26 -05:00
line_buffer.h vcs-svn: make buffer_copy_bytes return length read 2011-03-22 16:40:26 -05:00
line_buffer.txt
obj_pool.h
repo_tree.c
repo_tree.h
string_pool.c
string_pool.h
string_pool.txt
svndump.c
svndump.h
trp.h
trp.txt