* configure.ac: Check for chsize and posix_fallocate. Replace
authorIan Lance Taylor <ian@airs.com>
Tue, 17 Mar 2009 22:25:30 +0000 (22:25 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 17 Mar 2009 22:25:30 +0000 (22:25 +0000)
commit9201d894910e26e87fbfc0af24d9460797b1890f
tree777029282e401e722d33f5fc0528fc02c267979f
parentef4ab7a8185e12b2a2e76982a9fe82c8d0f10a38
* configure.ac: Check for chsize and posix_fallocate.  Replace
ftruncate.
* ftruncate.c: New file, from gnulib.
* output.cc (posix_fallocate): Define dummy version if not
HAVE_POSIX_FALLOCATE.
(Output_file::map): Call posix_fallocate rather than lseek and
write.
* gold.h (ftruncate): Declare if not HAVE_FTRUNCATE.
* configure, Makefile.in, config.in: Rebuild.
gold/ChangeLog
gold/Makefile.in
gold/config.in
gold/configure
gold/configure.ac
gold/ftruncate.c [new file with mode: 0644]
gold/gold.h
gold/output.cc