git-commit-vandalism/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 vcs-svn: teach line_buffer to handle multiple input files 2011-02-26 04:57:59 -06:00
fast_export.h vcs-svn: teach line_buffer to handle multiple input files 2011-02-26 04:57:59 -06:00
LICENSE SVN dump parser 2010-08-14 19:35:38 -07:00
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 vcs-svn: make buffer_skip_bytes return length read 2011-03-22 16:39:54 -05:00
obj_pool.h Add memory pool library 2010-08-14 19:35:37 -07:00
repo_tree.c vcs-svn: simplify repo_modify_path and repo_copy 2011-03-07 00:56:50 -06:00
repo_tree.h vcs-svn: simplify repo_modify_path and repo_copy 2011-03-07 00:56:50 -06:00
string_pool.c Add string-specific memory pool 2010-08-14 19:35:37 -07:00
string_pool.h Add string-specific memory pool 2010-08-14 19:35:37 -07:00
string_pool.txt Add string-specific memory pool 2010-08-14 19:35:37 -07:00
svndump.c vcs-svn: simplify repo_modify_path and repo_copy 2011-03-07 00:56:50 -06:00
svndump.h vcs-svn: Check for errors from open() 2010-11-24 14:51:42 -08:00
trp.h treap: make treap_insert return inserted node 2010-12-07 16:03:55 -08:00
trp.txt treap: make treap_insert return inserted node 2010-12-07 16:03:55 -08:00