OSDN Git Service

* 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)
commit335eda146d54b3a34aff78ffd0cfba9c5df64ec8
tree6beb1ca8d039c537c43f5163297d5d88d10800ae
parent03c00b5bae458ee2859cffd51c32261c3b1a7106
* 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