summaryrefslogtreecommitdiff
path: root/src/truncate.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-04-09 10:49:38 +0200
committerJim Meyering <meyering@redhat.com>2010-04-09 10:50:43 +0200
commitef5758c3282b3325340d8b601deed5ab5e7ade64 (patch)
tree524d29d97747994b3f3cb1fbbbefbe373cb1c671 /src/truncate.c
parent0a9302e7f796bc59a17f85fed00f0350c8330e12 (diff)
downloadcoreutils-ef5758c3282b3325340d8b601deed5ab5e7ade64.tar.xz
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.
Diffstat (limited to 'src/truncate.c')
-rw-r--r--src/truncate.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/truncate.c b/src/truncate.c
index 70573cc2f..ece52ee76 100644
--- a/src/truncate.c
+++ b/src/truncate.c
@@ -18,12 +18,7 @@
This is backwards compatible with the FreeBSD utility, but is more
flexible wrt the size specifications and the use of long options,
- to better fit the "GNU" environment.
-
- Note if !defined(HAVE_FTRUNCATE) then the --skip-ftruncate configure flag
- was specified or we're in a mingw environment. In these cases gnulib
- emulation will be used and GNULIB_FTRUNCATE is defined. Note if emulation
- can't even be provided ftruncate() will return EIO. */
+ to better fit the "GNU" environment. */
#include <config.h> /* sets _FILE_OFFSET_BITS=64 etc. */
#include <stdio.h>