Change `sendfile' to loop until everything has been sent.
authorLudovic Courtès <ludo@gnu.org>
Sun, 7 Apr 2013 21:43:21 +0000 (23:43 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 7 Apr 2013 21:47:38 +0000 (23:47 +0200)
commite0886e0780fc1f3ce1c80d0692c11adf3b68f682
tree662ee84dfa4c708a3c703493929755d3d779ad50
parent254d313a21f06739930032062678ff5360d248fd
Change `sendfile' to loop until everything has been sent.

* libguile/filesys.c (scm_sendfile)[HAVE_SYS_SENDFILE_H &&
  HAVE_SENDFILE]: Compare RESULT with C_COUNT.  Loop until C_COUNT bytes
  have been sent.
* doc/ref/posix.texi (File System): Update the description.  Explain the
  new semantics.
* test-suite/tests/filesys.test ("sendfile"): Rewrite using
  `pass-if-equal'.  Check the return value for all the tests.
  ["file with offset past the end", "file with offset near the end"]:
  New tests.
doc/ref/posix.texi
libguile/filesys.c
test-suite/tests/filesys.test