re PR libstdc++/66011 (call to '__open_missing_mode' declared with attribute error)
authorJonathan Wakely <jwakely@redhat.com>
Thu, 14 May 2015 13:23:14 +0000 (14:23 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 14 May 2015 13:23:14 +0000 (14:23 +0100)
commita0c4531ccf06e9381083421e9e7c2bdf89aa7f13
tree94fd318f3f4f43eec83cd1a869249e3a989e1762
parent0b9fc9fee84ec9de6de8d95ee670bc121b298331
re PR libstdc++/66011 (call to '__open_missing_mode' declared with attribute error)

PR libstdc++/66011
* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
sendfile.
* config.h.in: Regenerate.
* configure: Regenerate.
* src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
not return after copying contents. Use fchmod, fchmodat, and sendfile
when available.
(current_path, permissions, space): Use errno not return value.

From-SVN: r223196
libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/config.h.in
libstdc++-v3/configure
libstdc++-v3/src/filesystem/ops.cc