maint: ftruncate is always available, even without gnulib
commitef5758c3282b3325340d8b601deed5ab5e7ade64
authorJim Meyering <meyering@redhat.com>
Fri, 9 Apr 2010 08:49:38 +0000 (9 10:49 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 9 Apr 2010 08:50:43 +0000 (9 10:50 +0200)
tree524d29d97747994b3f3cb1fbbbefbe373cb1c671
parent0a9302e7f796bc59a17f85fed00f0350c8330e12
maint: ftruncate is always available, even without gnulib

Now that even MinGW provides ftruncate, we know that all
reasonable portability targets provide this function.
Remove the workaround code.  We nearly removed the gnulib
module three years ago:
  http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
and it is now officially "obsolete".
* bootstrap.conf (gnulib_modules): Remove ftruncate.
* src/copy.c (copy_reg): Remove use of HAVE_FTRUNCATE and its
no-longer-used workaround code.
* src/truncate.c: Remove a comment about handling missing ftruncate.
bootstrap.conf
src/copy.c
src/truncate.c