OSDN Git Service

* configure.ac: Check for chsize and posix_fallocate. Replace
authorian <ian>
Tue, 17 Mar 2009 22:25:28 +0000 (22:25 +0000)
committerian <ian>
Tue, 17 Mar 2009 22:25:28 +0000 (22:25 +0000)
commit9a4dec7dfa2341331a32cf2a328f5e25aea36db2
treeaacc0cdae6c0b93b4883dbb1e0c3e81860e6a783
parent438dcfb21c73bd391df2b3fe4e0ff059f6abf1f1
* 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