ops.cc (stat_type): Define alias for struct stat and use throughout the file.
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 May 2015 18:37:25 +0000 (19:37 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 15 May 2015 18:37:25 +0000 (19:37 +0100)
commit9caf7b27294ac957e59743a84ed1c8811db6f276
tree1e287b05d467be63a9b10d35fbf5993a76550f0a
parent7a37fa90703f62301130a3e1ef7ad4fade1bd786
ops.cc (stat_type): Define alias for struct stat and use throughout the file.

* src/filesystem/ops.cc (stat_type): Define alias for struct stat and
use throughout the file.
(make_file_type): New function.
(file_size(const path&, error_code&)): Report an error for anything
that isn't a regular file.
(status(const path&), symlink_status(const path&)): Do not throw for
file_type::not_found.
(temp_directory_path()): Check additional environment variables.
* testsuite/experimental/filesystem/operations/exists.cc: New.
* testsuite/experimental/filesystem/operations/file_size.cc: New.
* testsuite/experimental/filesystem/operations/status.cc: New.
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
New.

From-SVN: r223224
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/filesystem/operations/file_size.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/filesystem/operations/temp_directory_path.cc [new file with mode: 0644]
libstdc++-v3/testsuite/util/testsuite_fs.h